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

Stefan Priebe s.priebe at profihost.ag
Thu Jan 8 06:52:28 CET 2015


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



More information about the pve-devel mailing list