mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 15:15:25 +00:00
6a9c7468de
When generating a domain XML from native command (i.e. via the connectDomainXMLFromNative call), we should use interface type 'bridge' rather than 'ethernet' because we only support bridges at this point. As we don't have bridge name explicitly specified on the command line, just use 'virbr0' as a default.
29 lines
879 B
XML
29 lines
879 B
XML
<domain type='bhyve'>
|
|
<name>bhyve</name>
|
|
<uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
|
|
<memory unit='KiB'>219136</memory>
|
|
<currentMemory unit='KiB'>219136</currentMemory>
|
|
<vcpu placement='static'>1</vcpu>
|
|
<os>
|
|
<type>hvm</type>
|
|
</os>
|
|
<clock offset='localtime'/>
|
|
<on_poweroff>destroy</on_poweroff>
|
|
<on_reboot>destroy</on_reboot>
|
|
<on_crash>destroy</on_crash>
|
|
<devices>
|
|
<interface type='bridge'>
|
|
<mac address='52:54:00:00:00:00'/>
|
|
<source bridge='virbr0'/>
|
|
<target dev='tap0'/>
|
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/>
|
|
</interface>
|
|
<interface type='bridge'>
|
|
<mac address='fe:ed:ad:ea:df:15'/>
|
|
<source bridge='virbr0'/>
|
|
<target dev='tap1'/>
|
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
|
|
</interface>
|
|
</devices>
|
|
</domain>
|