forked from jonpanozzo/OpenELEC
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOpenELEC.xml
More file actions
executable file
·78 lines (69 loc) · 1.97 KB
/
OpenELEC.xml
File metadata and controls
executable file
·78 lines (69 loc) · 1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<domain type='kvm' id='2' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
<name>OpenELEC</name>
<memory unit='MiB'>{{MEMORY}}</memory>
<currentMemory unit='MiB'>{{MEMORY}}</currentMemory>
<memoryBacking>
<nosharepages/>
<locked/>
</memoryBacking>
<vcpu placement='static'>{{VCPUS}}</vcpu>
<cputune>
{{CPU_TUNE}}
</cputune>
<os>
<type arch='x86_64' machine='{{MACHINE_TYPE}}'>hvm</type>
<boot dev='hd'/>
<bootmenu enable='no'/>
</os>
<features>
<acpi/>
<apic/>
<pae/>
<hap/>
<kvm>
<hidden state='on'/>
</kvm>
</features>
<cpu mode='host-passthrough'>
<topology sockets='2' cores='{{VCPUS}}' threads='2'/>
</cpu>
<clock offset='localtime'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash>
<iothreads>{{VCPUS}}</iothreads>
<devices>
<emulator>/usr/bin/qemu-system-x86_64</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='raw' cache='directsync'/>
<source file='/mnt/cache/.vms/kvm/OpenELEC/OpenELEC-unRAID.x86_64-5.0.4.img'/>
<target dev='hda' bus='virtio'/>
<alias name='virtio-disk0'/>
<readonly/>
</disk>
<filesystem type='mount' accessmode='passthrough'>
<source dir='/mnt/user'/>
<target dir='unraid'/>
{{MOUNT_READONLY}}
</filesystem>
<filesystem type='mount' accessmode='passthrough'>
<source dir='/mnt/cache/.apps/OpenELEC'/>
<target dir='storage'/>
</filesystem>
<interface type='bridge'>
<mac address='{{NET_MAC}}'/>
<source bridge='{{NET_BRIDGE}}'/>
<model type='virtio'/>
<rom bar='off'/>
</interface>
{{USB_DEVICES}}
</devices>
<seclabel type='none' model='none'/>
<qemu:commandline>
<qemu:arg value='-device'/>
<qemu:arg value='ioh3420,bus=pci{{PCI_PCIE}}.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1'/>
{{PCI_DEVICES}}
<qemu:arg value='-set'/>
<qemu:arg value='device.virtio-disk0.x-data-plane=on'/>
</qemu:commandline>
</domain>