Lost /etc/pve/qemu-server config - how to recover (ZFS)

pyellowbird

New Member
Apr 23, 2021
2
0
1
56
Hello friends,

my PVE boot disk just died. Re-installed PVE on new disk.
Found out I do not have a backup of /etc/pve/qemu-server.
ZFS pool with vms is still available
$ zfs list
zfs-pool-01 2.63T 39.6T 559G /zfs-pool-01
zfs-pool-01/vm-1-disk-0 81.6G 39.7T 18.1G -
zfs-pool-01/vm-1-disk-1 65.3G 39.7T 32.2M -
...
(These are mostly Windows 10 virtual machines)

How can I re-create the qemu config files, esp. attach ZFS?
(
Many thanks in advance,
yb
 
Last edited:
if you have backups, you can extract the config from there. if not, you need to manually recreate it (e.g., create VM with the desired ID but no disk, then run qm rescan XXX and re-attach the found disks)
 
Thank you Fabian! The rescan was really helpful. Some machines came up just fine by now.
Unforunately one WIndows 2008/R2 installation is being picky and complains about hardware changes... Wonder what hardware has been configured before. But certainly that's not a PVE issue. I'll try several settings now.
yb