linuxinstall/xml

66 lines
1.3 KiB
Plaintext
Raw Normal View History

2024-02-22 01:09:11 +01:00
<domain type='kvm'>
<name>sandbox</name>
<!-- Resources -->
<memory unit='B'>1073741824</memory>
<vcpu placement='static'>1</vcpu>
<cpu mode='host-passthrough'/>
<!-- OS -->
<os>
<type arch='x86_64' machine='q35'>hvm</type>
<bootmenu enable='no'/>
</os>
<!-- Features -->
<features>
<acpi/>
<apic/>
</features>
<!-- Clock -->
<clock offset='utc'>
<timer name='rtc' tickpolicy='catchup'/>
<timer name='pit' tickpolicy='delay'/>
<timer name='hpet' present='no'/>
</clock>
<!-- Behavior -->
<on_poweroff>destroy</on_poweroff>
<on_reboot>destroy</on_reboot>
<on_crash>destroy</on_crash>
<pm>
<suspend-to-mem enabled='yes'/>
<suspend-to-disk enabled='yes'/>
</pm>
<!-- Devices -->
<devices>
<emulator>/usr/bin/qemu-system-x86_64</emulator>
<!-- Disks -->
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2'/>
<source file='/var/lib/sandbox/containers/test'/>
<target dev='sda' bus='sata'/>
<boot order='1'/>
</disk>
<!-- ISOs -->
<!-- VNC -->
<graphics type='vnc' port='5900' autoport='no' listen='0.0.0.0' passwd='test'/>
<!-- PCIs -->
<hostdev mode='subsystem' type='pci' managed='yes'>
<source>
<address domain='0x0000' bus='0x00' slot='0x00' function='0x0'/>
</source>
</hostdev>
<!-- Misc -->
<watchdog model='itco' action='poweroff'/>
<memballoon model='none'/>
</devices>
</domain>