[pve-devel] qemu / kvm romfile code in QemuServer breaks migration

Stefan Priebe - Profihost AG s.priebe at profihost.ag
Wed Jan 7 15:21:31 CET 2015


Hi,

today i wanted to migrate a VM which does not have network in their boot
order.

This resulted in the following error of the KVM process:
kvm: Unknown ramblock "0000:00:12.0/virtio-net-pci.rom", cannot accept
migration
qemu: warning: error while loading state for instance 0x0 of device 'ram'
kvm: load of migration failed: Invalid argument

I've seen that QemuServer has generated params like those:
-device
virtio-net-pci,romfile=,mac=1E:A8:FA:E9:23:44,netdev=net1,bus=pci.0,addr=0x13,id=net1


They come from the following piece of code:
# qemu > 0.15 always try to boot from network - we disable that by
# not loading the pxe rom file
 $extra = ($bootorder !~ m/n/) ? "romfile=," : '';
...
 $tmpstr =
"$device,${extra}mac=$net->{macaddr},netdev=$netid$pciaddr,id=$netid";

Is this still valid or does this still makes any sense?

Stefan


More information about the pve-devel mailing list