mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-30 17:45:23 +00:00
0c8df11071
Implement support for passing custom command line arguments to bhyve using the 'bhyve:commandline' element: <bhyve:commandline> <bhyve:arg value='-newarg'/> </bhyve:commandline> * Define virDomainXMLNamespace for the bhyve driver, which at this point supports only the 'commandline' element described above, * Update command generation code to inject these command line arguments between driver-generated arguments and the vmname positional argument. Signed-off-by: Roman Bogorodskiy <bogorodskiy@gmail.com> Reviewed-by: John Ferlan <jferlan@redhat.com>
28 lines
837 B
XML
28 lines
837 B
XML
<domain type='bhyve' xmlns:bhyve="http://libvirt.org/schemas/domain/bhyve/1.0">
|
|
<name>bhyve</name>
|
|
<uuid>df3be7e7-a104-11e3-aeb0-50e5492bd3dc</uuid>
|
|
<memory>219136</memory>
|
|
<vcpu>1</vcpu>
|
|
<os>
|
|
<type>hvm</type>
|
|
</os>
|
|
<devices>
|
|
<disk type='file'>
|
|
<driver name='file' type='raw'/>
|
|
<source file='/tmp/freebsd.img'/>
|
|
<target dev='hda' bus='sata'/>
|
|
<address type='drive' controller='0' bus='0' target='2' unit='0'/>
|
|
</disk>
|
|
<interface type='bridge'>
|
|
<mac address='52:54:00:b9:94:02'/>
|
|
<model type='virtio'/>
|
|
<source bridge="virbr0"/>
|
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
|
|
</interface>
|
|
</devices>
|
|
<bhyve:commandline>
|
|
<bhyve:arg value='ARGUMENT1'/>
|
|
<bhyve:arg value='ARGUMENT2'/>
|
|
</bhyve:commandline>
|
|
</domain>
|