summaryrefslogtreecommitdiff
path: root/tests/data/xmlparse/change-disk-in.xml
blob: adba6146160c068cc69bb8869a66be423a8e20aa (plain)
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<domain type="xen">
  <name>TestGuest</name>
  <currentMemory>204800</currentMemory>
  <memory>409600</memory>
  <uuid>12345678-1234-1234-1234-123456789012</uuid>
  <os>
    <type arch="i686">hvm</type>
    <loader>/usr/lib/xen/boot/hvmloader</loader>
    <boot dev="hd"/>
  </os>
  <features>
    <acpi/><apic/>
  </features>
  <clock offset="utc"/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <vcpu>5</vcpu>
  <devices>
    <emulator>/usr/lib/xen/bin/qemu-dm</emulator>
    <disk type="file" device="disk">
      <source file="/tmp/test.img"/>
      <target dev="hda" bus="ide"/>
      <serial>WD-WMAP9A966149</serial>
    </disk>
    <disk type="block" device="disk">
      <source dev="/dev/null">
        <seclabel model='selinux' relabel='no'/>
        <seclabel model='dac'/>
      </source>
      <target dev="hdb" bus="ide"/>
    </disk>
    <disk type="block" device="cdrom">
      <source dev="/dev/null"/>
      <target dev="hdc" bus="ide"/>
      <driver name='phy' error_policy='stop'/>
      <readonly/>
    </disk>
    <disk type="block" device="lun">
      <driver name='qemu' type='raw'/>
      <source dev='/dev/sda'/>
      <target dev='hdd' bus='scsi'/>
      <readonly/>
    </disk>
    <disk type="block" device="cdrom">
      <target dev="sda" bus="scsi"/>
      <readonly/>
    </disk>
    <disk type="block" device="floppy">
      <target dev="fda" bus="fdc"/>
      <iotune>
        <read_iops_sec>1</read_iops_sec>
        <read_bytes_sec>2</read_bytes_sec>
        <write_iops_sec>3</write_iops_sec>
        <write_bytes_sec>4</write_bytes_sec>
      </iotune>
    </disk>
    <disk type="block" device="floppy">
      <driver name="phy" cache="none"/>
      <source dev="/dev/null"/>
      <target dev="fdb" bus="fdc"/>
    </disk>
    <disk type="block" device="disk">
      <driver name="qemu" type="qcow2" cache="none"/>
      <source dev="/dev/null"/>
      <target dev="vda" bus="virtio"/>
    </disk>
    <disk type='volume' device='disk'>
      <driver name='qemu'/>
      <source pool='defaultPool' volume='foobar'/>
      <target dev='vdb' bus='virtio'/>
      <readonly/>
    </disk>
    <disk type='network' device='disk'>
      <driver name='qemu' type='raw'/>
      <source protocol='rbd' name='pool/image'>
        <host name='mon1.example.org' port='6321'/>
        <host name='mon2.example.org' port='6322'/>
        <host name='mon3.example.org' port='6322'/>
      </source>
      <target dev='vdc' bus='virtio'/>
    </disk>
    <disk type='network' device='disk'>
      <driver name='qemu' type='raw'/>
      <source protocol='nbd'>
        <host transport='unix' socket='/var/run/nbdsock'/>
      </source>
      <target dev='vdd' bus='virtio'/>
    </disk>
    <input type="mouse" bus="ps2"/>
    <graphics type="vnc" display=":3.4" xauth="/tmp/.Xauthority"/>
    <console type="pty"/>
  </devices>
</domain>