Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision |
computing:proxmux [2023/06/18 18:43] – oemb1905 | computing:proxmux [2023/12/17 23:48] – oemb1905 |
---|
| |
vzdump <vmID> | vzdump <vmID> |
| vzdump <vmID> --dumpdir /mnt/backups/machines/pve-images/<vmname> |
| |
This will create a VM in .vma format. To convert it to a raw disk, use the python tool [[https://github.com/jancc/vma-extractor/blob/master/vma.py|vma.py]]. Example syntax is: | This will create a VM in .vma format. Then, you can extract the vma to a raw image as follows: |
| |
python3 vma.py vzdump-qemu-101-2023_06_18-12_17_40.vma /mnt/backups/vma | vma extract /var/lib/vz/dump/vzdump-qemu-101-2023_06_18-12_17_40.vma /mnt/backups/vma-extract |
| |
You can also use vma extract as follows: | Optionallly, you can use the python tool [[https://github.com/jancc/vma-extractor/blob/master/vma.py|vma.py]]. I don't see any value in using this, however, as it is much slower than the native tool and is also just in raw format. Example syntax is: |
| |
| python3 vma.py vzdump-qemu-101-2023_06_18-12_17_40.vma /mnt/backups/vma |
| |
| In order to see where the virtual machine's zdevs are, run the following: |
| |
| zfs list |
| |
| To delete one (be careful), use the following |
| |
Dreamhost - prepare haacknet for home router. | zfs destroy pool/dataset |
| |
| I've migrated my Windows VM here for testing to avoid cumbersome EFI/TPM setup on virt-manager. Here's a page from ProxMux wiki on best practices for [[https://pve.proxmox.com/wiki/Windows_10_guest_best_practices|Windows VMs]]. Once thing I noticed when doing the Windows install is that PVE makes two more vdevs for the TPM / EFI, so you get something like the following in ''zfs list'': |
| |
| vms/vm-102-disk-0 |
| vms/vm-102-disk-1 |
| vms/vm-102-disk-2 |
| |
| Be careful not to delete those thinking wrongly that they are extraneous - those are obviously required for booting, but it might not be clear upon first look. Also, I chose to install those on the ''zpool'' and PVE's default was to store those locally - so they will likely not appear if you did not pick the option to store them on the pool. |
| |
--- //[[jonathan@haacksnetworking.org|oemb1905]] 2023/06/17 16:44// | --- //[[jonathan@haacksnetworking.org|oemb1905]] 2023/06/19 17:40// |