diff options
Diffstat (limited to 'features/domains')
-rw-r--r-- | features/domains/default.xml | 64 | ||||
-rw-r--r-- | features/domains/default_net.xml | 13 | ||||
-rw-r--r-- | features/domains/disk.xml | 5 | ||||
-rw-r--r-- | features/domains/fs_share.xml | 6 | ||||
-rw-r--r-- | features/domains/storage_pool.xml | 6 | ||||
-rw-r--r-- | features/domains/volume.xml | 14 |
6 files changed, 108 insertions, 0 deletions
diff --git a/features/domains/default.xml b/features/domains/default.xml new file mode 100644 index 00000000..3d25576f --- /dev/null +++ b/features/domains/default.xml @@ -0,0 +1,64 @@ +<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'> + <name>TailsToaster</name> + <memory unit='KiB'>1310720</memory> + <currentMemory unit='KiB'>1310720</currentMemory> + <vcpu>1</vcpu> + <os> + <type arch='x86_64' machine='pc-0.15'>hvm</type> + <boot dev='cdrom'/> + </os> + <features> + <acpi/> + <apic/> + <pae/> + </features> + <clock offset='utc'/> + <on_poweroff>destroy</on_poweroff> + <on_reboot>restart</on_reboot> + <on_crash>restart</on_crash> + <devices> + <emulator>/usr/bin/qemu-system-x86_64</emulator> + <disk type='file' device='cdrom'> + <driver name='qemu' type='raw'/> + <source file=''/> + <target dev='hdc' bus='ide'/> + <readonly/> + <address type='drive' controller='0' bus='1' target='0' unit='0'/> + </disk> + <controller type='usb' index='0' model='ich9-ehci1'> + <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x7'/> + </controller> + <controller type='usb' index='0' model='ich9-uhci1'> + <master startport='0'/> + <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0' multifunction='on'/> + </controller> + <controller type='ide' index='0'> + <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/> + </controller> + <interface type='network'> + <mac address='52:54:00:ac:dd:ee'/> + <source network='TailsToasterNet'/> + <model type='virtio'/> + <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> + <link state='up'/> + </interface> + <serial type='tcp'> + <source mode="bind" host='127.0.0.1' service='1337'/> + <target port='0'/> + </serial> + <input type='tablet' bus='usb'/> + <input type='mouse' bus='ps2'/> + <graphics type='vnc' port='-1' autoport='yes'/> + <sound model='ich6'> + <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> + </sound> + <video> + <model type='qxl' vram='9216' heads='1'/> + <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> + </video> + <memballoon model='virtio'> + <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/> + </memballoon> + </devices> +</domain> + diff --git a/features/domains/default_net.xml b/features/domains/default_net.xml new file mode 100644 index 00000000..d37935b8 --- /dev/null +++ b/features/domains/default_net.xml @@ -0,0 +1,13 @@ +<network> + <name>TailsToasterNet</name> + <forward mode='nat'/> + <bridge name='virbr10' stp='on' delay='0' /> + <ip address='10.2.1.1' netmask='255.255.255.0'> + <dhcp> + <range start='10.2.1.2' end='10.2.1.254' /> + <host mac="52:54:00:ac:dd:ee" name="amnesia" ip="10.2.1.2" /> + </dhcp> + </ip> + <ip family="ipv6" address="fc00::1" prefix="7" /> +</network> + diff --git a/features/domains/disk.xml b/features/domains/disk.xml new file mode 100644 index 00000000..8193fea3 --- /dev/null +++ b/features/domains/disk.xml @@ -0,0 +1,5 @@ +<disk type='file' device='disk'> + <driver name='qemu' type=''/> + <source file=''/> + <target dev='' bus=''/> +</disk> diff --git a/features/domains/fs_share.xml b/features/domains/fs_share.xml new file mode 100644 index 00000000..718755ea --- /dev/null +++ b/features/domains/fs_share.xml @@ -0,0 +1,6 @@ +<filesystem type='mount' accessmode='passthrough'> + <driver type='path' wrpolicy='immediate'/> + <source dir=''/> + <target dir=''/> + <readonly/> +</filesystem> diff --git a/features/domains/storage_pool.xml b/features/domains/storage_pool.xml new file mode 100644 index 00000000..3e12f8b6 --- /dev/null +++ b/features/domains/storage_pool.xml @@ -0,0 +1,6 @@ +<pool type="dir"> + <name>TailsToasterStorage</name> + <target> + <path></path> + </target> +</pool> diff --git a/features/domains/volume.xml b/features/domains/volume.xml new file mode 100644 index 00000000..9159c268 --- /dev/null +++ b/features/domains/volume.xml @@ -0,0 +1,14 @@ +<volume> + <name></name> + <allocation>0</allocation> + <capacity unit="b"></capacity> + <target> + <path></path> + <format type='qcow2'/> + <permissions> + <owner></owner> + <group></group> + <mode>0774</mode> + </permissions> + </target> +</volume> |