~springfield-team/charms/precise/vsm/trunk

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' >
     <name>${VSM_NAME}</name>
     ${VSM_MEM_STR}
     <vcpu placement='static'>${VSM_NUM_VCPUS}</vcpu>
     <cputune>
          ${VSM_VCPU1_PIN_STR}
          ${VSM_VCPU2_PIN_STR}
          <quota>-1</quota>
     </cputune>

     <os>
          <type arch='x86_64' machine='pc-1.0'>hvm</type>
          <boot dev='hd'/>
          <boot dev='cdrom'/>
     </os>

     <features> <acpi/> <apic/> <pae/> </features>

     <clock offset='localtime'/>
     <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='disk'>
               <driver name='qemu' type='raw'/>
               <source file='${diskfile}'/>
               <target dev='hda' bus='ide'/>
          </disk>

          <disk type='file' device='cdrom'>
               <driver name='qemu' type='raw'/>
               <source file='${finaliso}'/>
               <target dev='hdb' bus='ide'/>
               <readonly/>
          </disk>

          <controller type='ide' index='0'>
                    <alias name='ide0'/>
                    <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
          </controller>

          <interface type='bridge'>
                    ${VSM_CMAC_STR}
                    <source bridge='${ovsbridge}'/>
                    <virtualport type='openvswitch' />
                    <target dev='${VSM_CTRL_IF}'/>
                    <model type='e1000'/>
          </interface>

          <interface type='bridge'>
                    ${VSM_MMAC_STR}
                    <source bridge='${ovsbridge}'/>
                    <virtualport type='openvswitch' />
                    <target dev='${VSM_MGMT_IF}'/>
                    <model type='e1000'/>
          </interface>

          <interface type='bridge'>
                    ${VSM_PMAC_STR}
                    <source bridge='${ovsbridge}'/>
                    <virtualport type='openvswitch' />
                    <target dev='${VSM_PKT_IF}'/>
                    <model type='e1000'/>
          </interface>

          <console type='pty' tty='/dev/pts/${consolepts}'>
                   <source path='/dev/pts/${consolepts}'/>
                   <target port='0'/>
          </console>

          <input type='mouse' bus='ps2'/>
          <graphics type='vnc' port='${VSM_VNC_PORT}' autoport='${VSM_VNC_AUTO}' listen='0.0.0.0' keymap='en-us'>
          </graphics>

      </devices>
</domain>