1
0
Fork 0
mirror of https://github.com/foxlet/macOS-Simple-KVM.git synced 2024-11-24 12:09:41 +01:00
macOS-Simple-KVM/tools/template.xml.in

114 lines
4.1 KiB
XML
Raw Normal View History

<domain type="kvm" xmlns:qemu="http://libvirt.org/schemas/domain/qemu/1.0">
2019-05-06 11:47:31 +02:00
<name>macOS-Simple-KVM</name>
<uuid>UUID</uuid>
<title>macOS</title>
<memory unit="KiB">2097152</memory>
<currentMemory unit="KiB">2097152</currentMemory>
<vcpu placement="static">4</vcpu>
2019-05-06 11:47:31 +02:00
<os>
<type arch="x86_64" machine="MACHINE">hvm</type>
<loader readonly="yes" type="pflash">VMDIR/firmware/OVMF_CODE.fd</loader>
2019-05-06 11:47:31 +02:00
<nvram>VMDIR/firmware/OVMF_VARS-1024x768.fd</nvram>
<boot dev="hd" />
2019-05-06 11:47:31 +02:00
</os>
<features>
<acpi />
<apic />
<vmport state="off" />
2019-05-06 11:47:31 +02:00
</features>
<cpu>
<topology sockets="1" cores="4" threads="1" />
2019-05-06 11:47:31 +02:00
</cpu>
<clock offset="utc">
<timer name="rtc" tickpolicy="catchup" />
<timer name="pit" tickpolicy="delay" />
<timer name="hpet" present="no" />
2019-05-06 11:47:31 +02:00
</clock>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash>
<pm>
<suspend-to-mem enabled="no" />
<suspend-to-disk enabled="no" />
2019-05-06 11:47:31 +02:00
</pm>
<devices>
<emulator>/usr/bin/qemu-system-x86_64</emulator>
<disk type="file" device="disk">
<driver name="qemu" type="qcow2" />
<source file="VMDIR/ESP.qcow2" />
<target dev="sda" bus="sata" />
<address type="drive" controller="0" bus="0" target="0" unit="0" />
2019-05-06 11:47:31 +02:00
</disk>
<disk type="file" device="disk">
<driver name="qemu" type="raw" />
<source file="VMDIR/BaseSystem.img" />
<target dev="sdb" bus="sata" />
<address type="drive" controller="0" bus="0" target="0" unit="1" />
2019-05-06 11:47:31 +02:00
</disk>
<controller type="usb" index="0" model="ich9-ehci1">
<address type="pci" domain="0x0000" bus="0x00" slot="0x1d" function="0x7" />
2019-05-06 11:47:31 +02:00
</controller>
<controller type="usb" index="0" model="ich9-uhci1">
<master startport="0" />
<address type="pci" domain="0x0000" bus="0x00" slot="0x1d" function="0x0" multifunction="on" />
2019-05-06 11:47:31 +02:00
</controller>
<controller type="usb" index="0" model="ich9-uhci2">
<master startport="2" />
<address type="pci" domain="0x0000" bus="0x00" slot="0x1d" function="0x1" />
2019-05-06 11:47:31 +02:00
</controller>
<controller type="usb" index="0" model="ich9-uhci3">
<master startport="4" />
<address type="pci" domain="0x0000" bus="0x00" slot="0x1d" function="0x2" />
2019-05-06 11:47:31 +02:00
</controller>
<controller type="sata" index="0">
<address type="pci" domain="0x0000" bus="0x00" slot="0x1f" function="0x2" />
2019-05-06 11:47:31 +02:00
</controller>
<interface type="user">
<mac address="52:54:00:92:d4:7b" />
<model type="e1000-82545em" />
<address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x0" />
2019-05-06 11:47:31 +02:00
</interface>
<serial type="pty">
<target type="isa-serial" port="0">
<model name="isa-serial" />
2019-05-06 11:47:31 +02:00
</target>
</serial>
<console type="pty">
<target type="serial" port="0" />
2019-05-06 11:47:31 +02:00
</console>
<input type="tablet" bus="usb">
<address type="usb" bus="0" port="1"/>
</input>
<input type="keyboard" bus="usb">
<address type="usb" bus="0" port="2" />
2019-05-06 11:47:31 +02:00
</input>
<graphics type="spice" autoport="yes">
<listen type="address" />
<image compression="off" />
2019-05-06 11:47:31 +02:00
</graphics>
<sound model="ich9">
<address type="pci" domain="0x0000" bus="0x00" slot="0x1b" function="0x0" />
2019-05-06 11:47:31 +02:00
</sound>
<video>
<model type="vga" vram="131072" heads="1" primary="yes"/>
<address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x0"/>
2019-05-06 11:47:31 +02:00
</video>
<redirdev bus="usb" type="spicevmc">
<address type="usb" bus="0" port="3" />
2019-05-06 11:47:31 +02:00
</redirdev>
<redirdev bus="usb" type="spicevmc">
<address type="usb" bus="0" port="4" />
2019-05-06 11:47:31 +02:00
</redirdev>
<memballoon model="none" />
2019-05-06 11:47:31 +02:00
</devices>
<seclabel type="dynamic" model="selinux" relabel="yes"/>
2019-05-06 11:47:31 +02:00
<qemu:commandline>
<qemu:arg value="-cpu" />
<qemu:arg value="Penryn,kvm=on,vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on,+pcid,+ssse3,+sse4.2,+popcnt,+avx,+aes,+xsave,+xsaveopt,check" />
<qemu:arg value="-device" />
<qemu:arg value="isa-applesmc,osk=ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc" />
<qemu:arg value="-smbios" />
<qemu:arg value="type=2" />
2019-05-06 11:47:31 +02:00
</qemu:commandline>
</domain>