Skip to content

Instantly share code, notes, and snippets.

@novel
Created April 13, 2014 05:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save novel/10569989 to your computer and use it in GitHub Desktop.
Save novel/10569989 to your computer and use it in GitHub Desktop.
/usr/sbin/bhyve -c 1 -m 214 -A -I -H -P -s 0:0,hostbridge -s 4:0,virtio-net,tap0,mac=52:54:00:e7:0f:14 -s 5:0,virtio-net,tap1,mac=52:54:00:cf:1a:91 -s 1:0,ahci-hd,/home/novel/bhyve_freebsd.img -s 2:0,ahci-hd,/home/novel/test.img -s 3:0,virtio-blk,/home/novel/test.img -s 31,lpc -l com1,/dev/nmdm0A bhyve-mutli
<domain type='bhyve'>
<name>bhyve-mutli</name>
<uuid>df5be4e2-a104-11e3-aeb0-50e5492bd3dc</uuid>
<memory>219136</memory>
<currentMemory>219136</currentMemory>
<vcpu>1</vcpu>
<os>
<type>hvm</type>
</os>
<features>
<apic/>
<acpi/>
</features>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash>
<devices>
<disk type='file'>
<driver name='file' type='raw'/>
<source file='/home/novel/bhyve_freebsd.img'/>
<target dev='hda' bus='sata'/>
</disk>
<disk type='file'>
<driver name='file' type='raw'/>
<source file='/home/novel/test.img'/>
<target dev='hda' bus='sata'/>
</disk>
<disk type='file'>
<driver name='file' type='raw'/>
<source file='/home/novel/test.img'/>
<target dev='vda' bus='virtio'/>
</disk>
<interface type='bridge'>
<model type='virtio'/>
<source bridge="virbr0"/>
</interface>
<interface type='bridge'>
<model type='virtio'/>
<source bridge="virbr0"/>
</interface>
<serial type='nmdm'>
<source master='/dev/nmdm0A' slave='/dev/nmdm0B'/>
</serial>
</devices>
</domain>
~
<domain type='bhyve'>
<name>bhyve-mutli</name>
<uuid>df5be4e2-a104-11e3-aeb0-50e5492bd3dc</uuid>
<memory unit='KiB'>219136</memory>
<currentMemory unit='KiB'>219136</currentMemory>
<vcpu placement='static'>1</vcpu>
<os>
<type arch='x86_64'>hvm</type>
<boot dev='hd'/>
</os>
<features>
<acpi/>
<apic/>
</features>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash>
<devices>
<disk type='file' device='disk'>
<driver name='file' type='raw'/>
<source file='/home/novel/bhyve_freebsd.img'/>
<target dev='hda' bus='sata'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/>
</disk>
<disk type='file' device='disk'>
<driver name='file' type='raw'/>
<source file='/home/novel/test.img'/>
<target dev='hda' bus='sata'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
</disk>
<disk type='file' device='disk'>
<driver name='file' type='raw'/>
<source file='/home/novel/test.img'/>
<target dev='vda' bus='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</disk>
<controller type='pci' index='0' model='pci-root'/>
<controller type='sata' index='0'/>
<interface type='bridge'>
<mac address='52:54:00:e7:0f:14'/>
<source bridge='virbr0'/>
<model type='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
</interface>
<interface type='bridge'>
<mac address='52:54:00:cf:1a:91'/>
<source bridge='virbr0'/>
<model type='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
</interface>
<serial type='nmdm'>
<source master='/dev/nmdm0A' slave='/dev/nmdm0B'/>
<target port='0'/>
</serial>
<console type='nmdm'>
<source master='/dev/nmdm0A' slave='/dev/nmdm0B'/>
<target type='serial' port='0'/>
</console>
</devices>
</domain>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment