[pve-devel] disable-efi-enable-pxe-roms.patch break livemigration from old qemu guest without pxe

Alexandre DERUMIER aderumier at odiso.com
Thu Oct 22 16:36:33 CEST 2015


>>but I don't known how to tell to qemu to not use pxe rom at all. 
I didn't look the patch,
but the exact problem is that we live migration from

pxe-virtio.rom  to efi-virtio.rom

so it could be possible to pass

-global virtio-net-pci.romfile=pxe-virtio.rom  to live migration.

But the problem is that currently we can rely on qemu machine version to known what hardware is used.

(So I think it could be better to enable this on next qemu version (2.5))

"
if (qemu_machine_feature_enabled ($machine_type, $kvmver, 2, 5)) {
    -global virtio-net-pci.romfile=efi-virtio.rom
}
"

----- Mail original -----
De: "aderumier" <aderumier at odiso.com>
À: "pve-devel" <pve-devel at pve.proxmox.com>
Envoyé: Jeudi 22 Octobre 2015 16:09:22
Objet: [pve-devel] disable-efi-enable-pxe-roms.patch break livemigration from old qemu guest without pxe

Hi, 

I see that this commit 
https://git.proxmox.com/?p=pve-qemu-kvm.git;a=blobdiff;f=debian/patches/series;h=465145ad464d52543e1e5283a346fb72766dfa08;hp=68ce08fdc2cb82cca7df911067d49cfd8c5ce2bc;hb=3d265b4e6f7135f535682dc6b60ccb396076523a;hpb=b422a7df8575c63573106b3ac101f1a8125819da 

remove this patch. 
disable-efi-enable-pxe-roms.patch 


This break livemigration from old qemu with virtio-net (without pxe rom) to new qemu with virtio-net (with pxe rom) 



" 
kvm: Length mismatch: 0000:00:12.0/virtio-net-pci.rom: 0x10000 in != 0x40000: Invalid argument 
kvm: error while loading state for instance 0x0 of device 'ram' 
kvm: load of migration failed: Invalid argument 
" 


I have seen on some forum that this can be passed to qemu target process 

-global virtio-net-pci.romfile=pxe-virtio.rom.2.2 for example, but I don't known how to tell to qemu to not use pxe rom at all. 


Also that mean in the future, we need to keep all roms version (with some suffix like this example), or migration will break. 


_______________________________________________ 
pve-devel mailing list 
pve-devel at pve.proxmox.com 
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 


More information about the pve-devel mailing list