-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathVM_TEMPLATE.xml
More file actions
57 lines (55 loc) · 1.64 KB
/
VM_TEMPLATE.xml
File metadata and controls
57 lines (55 loc) · 1.64 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
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
<!--
This template is used for the all VM in cloudlet.
In OpenStack extension, we follow what is defined in OpenStack logic.
You can edit anything except the followings
1. We use qemu64 CPU model to have compatibilities across different CPU
2. We use raw disk to precise get the modified disk
Above two things are adjusted automatically in the code
(at _convert_xml in cloudlet.py)
-->
<name>cloudlet</name>
<title>cloudlet</title>
<description>Nephele</description>
<uuid>abc</uuid>
<memory>8388608</memory>
<currentMemory>8388608</currentMemory>
<vcpu>4</vcpu>
<cpu>
<!--
qemu64 model is enforced at the source code
(_convert_xml in cloudlet.py)
svm should not be added since it is not supported in x86
(QEMU bug)
<cpu match='exact'>
<model fallback='forbid'>qemu64</model>
<feature policy="disable" name="svm"/>
-->
<topology sockets='1' cores='4' threads='1'/>
</cpu>
<os>
<type arch='x86_64' machine='pc-1.0'>hvm</type>
</os>
<devices>
<emulator>/usr/bin/qemu-system-x86_64</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='raw'/>
<source file='/fake/path' />
<target dev='hda' bus='ide' />
</disk>
<disk type='file' device='cdrom'>
<driver name='qemu' type='raw'/>
<source file='/fake/path' />
<target dev='hdc' />
</disk>
<graphics type='vnc' port='-1' autoport='yes' keymap='en-us' listen='127.0.0.1'/>
<interface type='user'>
<model type='virtio' />
</interface>
</devices>
<features>
<acpi/>
</features>
<qemu:commandline>
</qemu:commandline>
</domain>