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

Alexandre DERUMIER aderumier at odiso.com
Thu Jan 8 08:28:33 CET 2015


>>If we set strict=on qemu only tries the devices we explicitly set to 
>>boot. So network is not tried even without the romfile option. 

Indeed, this seem to be the right way

https://bugzilla.redhat.com/show_bug.cgi?id=903204
http://www.redhat.com/archives/libvir-list/2013-November/msg01237.html


----- Mail original -----
De: "Stefan Priebe" <s.priebe at profihost.ag>
À: "dietmar" <dietmar at proxmox.com>, "pve-devel" <pve-devel at pve.proxmox.com>
Envoyé: Jeudi 8 Janvier 2015 06:52:28
Objet: Re: [pve-devel] qemu / kvm romfile code in QemuServer breaks	migration

Am 08.01.2015 um 06:14 schrieb Dietmar Maurer: 
>> 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? 
>> 
> 
> Just tested, and 'romfile=," is stil required - else the VM starts to boot from 
> network. 
> Not sure if there is a better solution to disable net boot? 

What's wrong with: 
push @$cmd, '-boot', "menu=on,strict=on"; 

If we set strict=on qemu only tries the devices we explicitly set to 
boot. So network is not tried even without the romfile option. 

Greets, 
Stefan 

_______________________________________________ 
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