Proxmox 9 export VM?

dhcolesj

Member
Mar 9, 2022
25
7
8
59
I've found a few threads about exporting, but some are old, and others never mention the correct (or what seems like correct) commands to export a VM (disk, settings etc).
I need to export 1 VM back into Red Hat Virtualization as it's the only one I'm concerned with in our POC setup.
I need to re-use the hardware for another purpose for a bit, but need to keep this VM.
I can't find anything in the Docs that give a clear way to export (import yes, but no export)
Anyone know of a good doc location or process to do this? (I have backups I can use later, but they're of no help for the present).
 
I don't know about specific documentation, but the process is easy:
a) if the disk is not already a qcow, convert the disk. Save/copy/move the disk to location of your choosing.
b) review and save the VM config (qm config [vmid])
c) if it helps, save the kvm command: qm showcmd 9018
d) create a VM in your target hypervisor that matches characteristics of the PVE VM
e) import the disk through that hypervisors' interface

There is not much else to it. Have a copy of everything and see if it starts.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
  • Like
Reactions: Johannes S
Yea, I was concerned about the specifics, and found that RHV does raw, so I'm trying just using the raw disk without conversion.
my other question was about exporting the disk with the VM powered off, and it doesn't look like that's possible. which is interesting.
Unless there's another command besides the qemu-img convert . . . (it wouldn't find the disk image)
 
I tried the "convert" command, qemu-disk convert I think it was, that got all the disks for running VMs, and I think if I had looked for where the storage was primarily controlled (sorry forget the term, been testing too many platforms) I probably could have from there.
But, no worries, I was able to get all of my VMs exported by making sure all apps/services were stopped.
To get the VM settings themselves, I copied the vmid.conf files from "/etc/pve/nodes/svrnamea/qemu-server/".
May not be the "top tier" way, but I have a NFS mount that I have a few backups of each VM that I could use if I could rebuild the Proxmox environment again.
the problem getting it going here hasn't been technical, it's been the company. They really need to get a valid Sales team to be able to get on calls.
but, that's another hurdle not for here. :D

is there a way to do it with a node powered off?