Created
August 21, 2018 00:38
-
-
Save waTeim/72192dbcb0efee646f91fbcff7148f2d to your computer and use it in GitHub Desktop.
libvirt template for macOS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'> | |
| <name>HOSTNAME</name> | |
| <memory unit='KiB'>7812500</memory> | |
| <currentMemory unit='KiB'>7812500</currentMemory> | |
| <vcpu placement='static'>4</vcpu> | |
| <os> | |
| <type arch='x86_64' machine='pc-q35-2.11'>hvm</type> | |
| <loader readonly='yes' type='pflash'>/usr/local/share/OVMF/OSX-KVM/OVMF_CODE.fd</loader> | |
| <nvram template='/usr/local/share/OVMF/OSX-KVM/OVMF_VARS.fd'>/var/lib/libvirt/qemu/nvram/HOSTNAME_VARS.fd</nvram> | |
| <boot dev='hd'/> | |
| <bootmenu enable='yes'/> | |
| </os> | |
| <features> | |
| <acpi/> | |
| <apic/> | |
| <pae/> | |
| </features> | |
| <cpu mode='custom' match='exact' check='partial'> | |
| <model fallback='allow'>Penryn</model> | |
| <topology sockets='1' cores='4' threads='1'/> | |
| </cpu> | |
| <clock offset='utc'/> | |
| <on_poweroff>destroy</on_poweroff> | |
| <on_reboot>restart</on_reboot> | |
| <on_crash>destroy</on_crash> | |
| <devices> | |
| <emulator>/usr/bin/qemu-system-x86_64</emulator> | |
| <disk type='file' device='disk'> | |
| <driver name='qemu' type='raw'/> | |
| <source file='/var/lib/libvirt/images/HOSTNAME/disk0.img'/> | |
| <target dev='hda' bus='sata'/> | |
| <address type='drive' controller='0' bus='0' target='0' unit='0'/> | |
| </disk> | |
| <controller type='usb' index='0' model='ich9-ehci1'> | |
| <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x7'/> | |
| </controller> | |
| <controller type='usb' index='0' model='ich9-uhci1'> | |
| <master startport='0'/> | |
| <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0' multifunction='on'/> | |
| </controller> | |
| <controller type='usb' index='0' model='ich9-uhci2'> | |
| <master startport='2'/> | |
| <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x1'/> | |
| </controller> | |
| <controller type='usb' index='0' model='ich9-uhci3'> | |
| <master startport='4'/> | |
| <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x2'/> | |
| </controller> | |
| <controller type='sata' index='0'> | |
| <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/> | |
| </controller> | |
| <controller type='pci' index='0' model='pcie-root'/> | |
| <controller type='pci' index='1' model='dmi-to-pci-bridge'> | |
| <model name='i82801b11-bridge'/> | |
| <address type='pci' domain='0x0000' bus='0x00' slot='0x1e' function='0x0'/> | |
| </controller> | |
| <controller type='pci' index='2' model='pci-bridge'> | |
| <model name='pci-bridge'/> | |
| <target chassisNr='2'/> | |
| <address type='pci' domain='0x0000' bus='0x01' slot='0x01' function='0x0'/> | |
| </controller> | |
| <interface type='bridge'> | |
| <source bridge='br0'/> | |
| <model type='e1000-82545em'/> | |
| <address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x0'/> | |
| </interface> | |
| <input type='mouse' bus='ps2'/> | |
| <input type='keyboard' bus='ps2'/> | |
| <graphics type='sdl' display='unix:1'/> | |
| <video> | |
| <model type='vga' vram='524288' heads='1' primary='yes'/> | |
| <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/> | |
| </video> | |
| <memballoon model='none'/> | |
| </devices> | |
| <qemu:commandline> | |
| <qemu:arg value='-usb'/> | |
| <qemu:arg value='-device'/> | |
| <qemu:arg value='usb-mouse,bus=usb-bus.0'/> | |
| <qemu:arg value='-device'/> | |
| <qemu:arg value='usb-kbd,bus=usb-bus.0'/> | |
| <qemu:arg value='-smbios'/> | |
| <qemu:arg value='type=2'/> | |
| <qemu:arg value='-cpu'/> | |
| <qemu:arg value='Penryn,vendor=GenuineIntel,kvm=on,+invtsc,vmware-cpuid-freq=on'/> | |
| </qemu:commandline> | |
| </domain> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment