How to Remove VMs from PVE

spetrillo

Member
Feb 15, 2024
185
7
18
Hello all,

In VMware you can shut down the vms, and move the full directory off. You can then move it to a new server and just re-import the vm into that server. Can I do the same in Proxmox and how would I do this.

Thanks,
Steve
 
Hi @spetrillo ,
The short answer is: no, you cannot do the same with Proxmox.

The long answer: you can do something similar in some* situations.
* depends on the storage format you use for your VM disks/images.

The configuration file is located in /etc/pve/qemu-server. However, you are unlikely to be able to simply transfer the file (ID collisions, storage, etc).

The correct answer is: use Built-in (vzdump) or PBS backup and restore to new host.

Good luck

PS I forgot that there is also, now, "qm remote-migrate" option (man qm).


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
Last edited:
If I use the built in vzdump can I move those backups off to another storage medium and then bring them back? I want to rebuild my PVE server.
 
Thanks...that worked like a charm. I would assume, that after I rebuild my PVE that I can just move these back to /var/lib/vz/dump and then restore them?
 
I can just move these back to /var/lib/vz/dump and then restore them
I've done many times what you describe, not actually to that host (default) backup location, but to another directory-type storage (configured as backup-type storage in Proxmox backend) and as soon as you copy the file/s over, they will appear in the GUI as backups that can be restored. So I see no problem there.

However, take leesteken's advice very seriously; Test out those backups by actually restoring them (different VMID/system?) before doing anything irreversible - like deleting files/configs/VMs/LXCs etc. A surprise by meaning is unanticipated!
 
  • Like
Reactions: spetrillo

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!