-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsmall.erb
More file actions
46 lines (46 loc) · 1.16 KB
/
Copy pathsmall.erb
File metadata and controls
46 lines (46 loc) · 1.16 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
<domain type='kvm'>
<name><%= vm_name %></name>
<uuid><%= vm_uuid %></uuid>
<memory><%= vm_ram %></memory>
<currentMemory><%= vm_ram %></currentMemory>
<vcpu>1</vcpu>
<os>
<type arch='<%= vm_arch %>'>hvm</type>
</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>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2'/>
<source file='<%= vm_disk %>'/>
<target dev='vda' bus='virtio'/>
<boot order='1'/>
</disk>
<disk type='file' device='cdrom'>
<source file='<%= vm_iso %>'/>
<target dev='hdb' bus='ide'/>
<readonly/>
<boot order='2'/>
</disk>
<interface type='bridge'>
<mac address='<%= vm_mac %>'/>
<source bridge='virbr0'/>
<model type='virtio'/>
</interface>
<serial type='pty'>
<target port='0'/>
</serial>
<console type='pty'>
<target port='0'/>
</console>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' port='-1' autoport='yes' keymap='en-us'/>
</devices>
</domain>