[virt-tools-list] virt-install: looking for option to get rombar='off' in guest xml

Cole Robinson crobinso at redhat.com
Wed Jan 20 15:57:28 UTC 2016


On 01/19/2016 05:33 PM, P.A.M. van Dam (Pascal) wrote:
> On Tue, Nov 17, 2015 at 09:41:50AM -0500, Cole Robinson wrote:
>> On 11/17/2015 06:03 AM, P.A.M. van Dam (Pascal) wrote:
>>> Good morning all,
>>>
>>> I've one small question. Due to the nature of my tests with UEFI/OVMF and iSCSI booting I need to get the
>>> item <rom bar='off'\> (e.g. disable network adapter rom) in my guests xml. Editing it by hand is not really my preferred way. Which option(s) should
>>> I give virt-install to realise this for me?
>>>
>>
>> The virt-install/virt-xml option --hostdev rom_bar=on|off
>>
>> You can set it for existing VMs host devices with virt-xml like:
>>
>>   sudo virt-xml $VMNAME --edit all --hostdev rom_bar=off
>>
>> - Cole
> 
> Good evening all,
> 
> Thanks for the answer, but I am afraid it does not work for my case. If I read this correctly it is used for hostdev devices, so devices that get passed through from
> the host to the guest. I need to introduce the "rom_bar=off" attribute to a virtual driver.
> 
> E.g.
> 
>     <interface type='bridge'>
>       <mac address='52:54:00:0b:db:64'/>
>       <source bridge='br0'/>
>       <model type='virtio'/>
>       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
>     </interface>
> 
> must become:
> 
>     <interface type='bridge'>
>       <mac address='52:54:00:0b:db:64'/>
>       <source bridge='br0'/>
>       <model type='virtio'/>
>       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
>       <rom bar='off'/>
>     </interface>
> 
> 
> Preferably by adding an extra option during virt-install. Is this possible?
> 
> Many thanks for your help!
> 

Ah sorry, I didn't realize <interface> also had a <rom> element. There isn't a
way to set it yet but I just added it upstream:

commit 7f7ff0c3449f81a92a7c61fda883fef785155c7b
Author: Cole Robinson <crobinso at redhat.com>
Date:   Wed Jan 20 10:53:23 2016 -0500

    cli: add --network rom_bar and --network rom_file



Thanks,
Cole




More information about the virt-tools-list mailing list