summaryrefslogtreecommitdiff
path: root/tests/cli-test-xml/compare/virt-install-many-devices.xml
blob: b7522b94aa199d73922699453ffc71f447c37565 (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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
<domain type="kvm">
  <name>foobar</name>
  <uuid>00000000-1111-2222-3333-444444444444</uuid>
  <metadata>
    <libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
      <libosinfo:os id="http://fedoraproject.org/fedora/unknown"/>
    </libosinfo:libosinfo>
  </metadata>
  <memory>65536</memory>
  <currentMemory>65536</currentMemory>
  <vcpu placement="static">4</vcpu>
  <os>
    <type arch="x86_64" machine="q35">hvm</type>
  </os>
  <features>
    <acpi/>
    <apic/>
    <vmport state="off"/>
  </features>
  <cpu>
    <topology sockets="4" cores="1" threads="1"/>
  </cpu>
  <clock offset="utc">
    <timer name="rtc" tickpolicy="catchup"/>
    <timer name="pit" tickpolicy="delay"/>
    <timer name="hpet" present="no"/>
  </clock>
  <pm>
    <suspend-to-mem enabled="no"/>
    <suspend-to-disk enabled="no"/>
  </pm>
  <devices>
    <emulator>/usr/bin/qemu-kvm</emulator>
    <disk type="file" device="disk">
      <driver name="qemu" type="raw" cache="writeback" io="threads"/>
      <source file="/dev/default-pool/UPPER"/>
      <target dev="vda" bus="virtio"/>
      <serial>WD-WMAP9A966149</serial>
      <shareable/>
      <boot order="2"/>
    </disk>
    <disk type="file" device="disk">
      <driver name="qemu" type="qcow2" discard="unmap" detect_zeroes="unmap" error_policy="enospace"/>
      <source file="/dev/default-pool/new1.img"/>
      <target dev="vdb" bus="virtio"/>
      <readonly/>
    </disk>
    <disk type="file" device="cdrom">
      <target dev="sda" bus="sata"/>
      <driver copy_on_read="on"/>
      <iotune>
        <read_bytes_sec>1</read_bytes_sec>
        <write_bytes_sec>5</write_bytes_sec>
        <read_iops_sec>2</read_iops_sec>
        <write_iops_sec>6</write_iops_sec>
      </iotune>
      <geometry cyls="16383" heads="16" secs="63" trans="lba"/>
      <readonly/>
    </disk>
    <disk type="file" device="disk">
      <driver name="qemu" type="qcow2"/>
      <source file="/var/lib/libvirt/images/foobar.qcow2"/>
      <target dev="vdc" bus="virtio"/>
    </disk>
    <disk type="block" device="disk">
      <driver name="qemu" type="raw" cache="none" io="native"/>
      <source dev="/iscsi-pool/diskvol1"/>
      <target dev="vdd" bus="virtio"/>
      <iotune>
        <total_bytes_sec>10</total_bytes_sec>
        <total_iops_sec>20</total_iops_sec>
      </iotune>
    </disk>
    <disk type="file" device="disk">
      <driver name="qemu" type="raw"/>
      <source file="/dev/default-pool/iso-vol">
        <seclabel model="dac">
          <label>foo,bar,baz</label>
        </seclabel>
        <seclabel model="selinux" relabel="no"/>
      </source>
      <target dev="vde" bus="virtio"/>
    </disk>
    <disk type="file" device="disk">
      <driver name="qemu" type="raw"/>
      <source file="/dev/default-pool/iso-vol" startupPolicy="optional"/>
      <target dev="vdf" bus="virtio"/>
    </disk>
    <disk type="volume" device="disk">
      <driver name="qemu" type="raw"/>
      <source volume="some-rbd-vol" pool="rbd-ceph"/>
      <target dev="vdg" bus="virtio"/>
    </disk>
    <disk type="network" device="disk">
      <driver name="qemu" type="raw"/>
      <auth username="admin">
        <secret type="ceph" uuid="f65cc5a8-b77b-4254-9030-d50a528fb456"/>
      </auth>
      <source protocol="rbd" name="rbd-sourcename/foobar">
        <host name="ceph-mon-1.example.com" port="6789"/>
        <host name="ceph-mon-2.example.com" port="6789"/>
        <host name="ceph-mon-3.example.com" port="6789"/>
      </source>
      <target dev="vdh" bus="virtio"/>
    </disk>
    <disk type="network" device="disk">
      <driver name="qemu"/>
      <source protocol="http" name="/path/to/my/file">
        <host name="example.com" port="8000"/>
      </source>
      <target dev="vdi" bus="virtio"/>
    </disk>
    <disk type="network" device="disk">
      <driver name="qemu"/>
      <source protocol="nbd">
        <host transport="unix" socket="/tmp/socket"/>
      </source>
      <target dev="sdb" bus="scsi"/>
      <blockio logical_block_size="512" physical_block_size="512"/>
    </disk>
    <disk type="network" device="disk">
      <driver name="qemu"/>
      <source protocol="gluster" name="test-volume/some/dir/test-gluster.qcow2">
        <host name="192.168.1.100"/>
      </source>
      <target dev="vdj" bus="virtio"/>
    </disk>
    <disk type="network" device="disk">
      <driver name="qemu"/>
      <source protocol="nbd">
        <host transport="unix" socket="/var/foo/bar/socket"/>
      </source>
      <target dev="sdc" bus="usb" removable="on"/>
    </disk>
    <disk type="network" device="disk">
      <driver name="qemu"/>
      <source protocol="http" name="my/path">
        <host name="1:2:3:4:1:2:3:4" port="5522"/>
      </source>
      <target dev="vdk" bus="virtio"/>
    </disk>
    <disk type="network" device="disk">
      <driver name="qemu" type="raw"/>
      <source protocol="gluster" name="test-volume/some/dir/test-gluster.raw">
        <host name="192.168.1.100"/>
      </source>
      <target dev="vdl" bus="virtio"/>
    </disk>
    <disk type="dir" device="floppy">
      <driver name="qemu"/>
      <source dir="/var"/>
      <target dev="fda" bus="fdc"/>
    </disk>
    <disk type="file" device="disk">
      <driver name="qemu" type="qcow2"/>
      <source file="/dev/default-pool/new2.img"/>
      <target dev="vdm" bus="virtio"/>
    </disk>
    <disk type="file" device="disk">
      <driver name="qemu" type="qcow2"/>
      <source file="/tmp/brand-new.img"/>
      <target dev="vdn" bus="virtio"/>
    </disk>
    <disk type="block" device="lun">
      <driver name="qemu" type="raw"/>
      <source dev="/dev/disk-pool/diskvol7">
        <reservations managed="no">
          <source type="unix" path="/var/run/test/pr-helper0.sock" mode="client"/>
        </reservations>
      </source>
      <target dev="sdd" bus="scsi"/>
    </disk>
    <controller type="usb" index="0" model="ich9-ehci1">
      <address type="pci" domain="0" bus="0" slot="4" function="7"/>
    </controller>
    <controller type="usb" index="0" model="ich9-uhci1">
      <master startport="0"/>
      <address type="pci" domain="0" bus="0" slot="4" function="0" multifunction="on"/>
    </controller>
    <controller type="usb" index="0" model="ich9-uhci2">
      <master startport="2"/>
      <address type="pci" domain="0" bus="0" slot="4" function="1"/>
    </controller>
    <controller type="usb" index="0" model="ich9-uhci3">
      <master startport="4"/>
      <address type="pci" domain="0" bus="0" slot="4" function="2"/>
    </controller>
    <controller type="scsi" index="0" model="virtio-scsi">
      <driver queues="4"/>
    </controller>
    <controller type="xenbus" index="0" maxGrantFrames="64"/>
    <filesystem type="mount" accessmode="mapped">
      <source dir="/source"/>
      <target dir="/target"/>
    </filesystem>
    <filesystem type="template" accessmode="passthrough">
      <source name="template_name"/>
      <target dir="/"/>
    </filesystem>
    <filesystem type="file" accessmode="squash">
      <source file="/tmp/somefile.img"/>
      <target dir="/mount/point"/>
    </filesystem>
    <interface type="user">
      <source portgroup="foo"/>
      <mac address="12:34:56:78:11:22"/>
      <model type="virtio"/>
      <rom bar="on" file="/tmp/foo"/>
      <link state="down"/>
    </interface>
    <interface type="bridge">
      <source bridge="foobar"/>
      <mac address="00:11:22:33:44:55"/>
      <model type="virtio"/>
      <driver name="qemu" queues="3"/>
    </interface>
    <interface type="bridge">
      <source bridge="ovsbr"/>
      <mac address="00:11:22:33:44:55"/>
      <model type="virtio"/>
      <virtualport type="openvswitch">
        <parameters profileid="demo" interfaceid="09b11c53-8b5c-4eeb-8f00-d84eaa0aaa3b"/>
      </virtualport>
      <link state="up"/>
    </interface>
    <interface type="direct" trustGuestRxFilters="yes">
      <source dev="eth5" mode="vepa"/>
      <mac address="00:11:22:33:44:55"/>
      <target dev="mytap12"/>
      <model type="virtio"/>
      <virtualport type="802.1Qbg">
        <parameters managerid="12" typeid="1193046" typeidversion="1" instanceid="09b11c53-8b5c-4eeb-8f00-d84eaa0aaa3b"/>
      </virtualport>
      <mtu size="1500"/>
      <boot order="1"/>
    </interface>
    <interface type="user">
      <mac address="00:11:22:33:44:55"/>
      <model type="virtio"/>
      <address type="spapr-vio" reg="0x500"/>
    </interface>
    <interface type="vhostuser">
      <source type="unix" path="/tmp/vhost1.sock" mode="server"/>
      <mac address="00:11:22:33:44:55"/>
      <model type="virtio"/>
    </interface>
    <interface type="user">
      <mac address="00:11:22:33:44:55"/>
      <model type="virtio"/>
      <address type="ccw" cssid="0xfe" ssid="0" devno="01"/>
    </interface>
    <smartcard mode="passthrough" type="spicevmc"/>
    <smartcard mode="host" type="tcp"/>
    <smartcard mode="passthrough" type="spicevmc"/>
    <smartcard mode="passthrough" type="tcp">
      <source mode="bind" host="1.2.3.4" service="5678"/>
      <protocol type="telnet"/>
    </smartcard>
    <serial type="tcp">
      <source mode="bind" host="127.0.0.1" service="2222"/>
      <protocol type="telnet"/>
      <log file="/tmp/foo.log" append="on"/>
    </serial>
    <serial type="nmdm">
      <source master="/dev/foo1" slave="/dev/foo2"/>
    </serial>
    <parallel type="udp">
      <source mode="bind" host="127.0.0.1" service="1234"/>
      <source mode="connect" host="0.0.0.0" service="1234"/>
    </parallel>
    <parallel type="unix">
      <source mode="bind" path="/tmp/foo-socket">
        <seclabel model="none" relabel="no"/>
        <seclabel model="dac" relabel="yes">
          <label>foobar</label>
        </seclabel>
      </source>
    </parallel>
    <console type="pty">
      <target type="virtio"/>
    </console>
    <channel type="pty">
      <target type="guestfwd" address="127.0.0.1" port="10000"/>
    </channel>
    <channel type="pty">
      <target type="virtio" name="org.linux-kvm.port1"/>
    </channel>
    <channel type="spicevmc">
      <target type="virtio" name="com.redhat.spice.0"/>
    </channel>
    <input type="keyboard" bus="usb"/>
    <input type="tablet" bus="usb"/>
    <tpm model="tpm-crb">
      <backend type="emulator" version="2.0"/>
    </tpm>
    <graphics type="sdl" display=":3.4" xauth="/tmp/.Xauthority"/>
    <graphics type="spice" port="-1" tlsPort="-1" autoport="yes">
      <image compression="off"/>
    </graphics>
    <graphics type="vnc" port="5950" keymap="ja" listen="1.2.3.4" passwd="foo"/>
    <graphics type="spice" port="5950" tlsPort="5950" keymap="ja" listen="1.2.3.4">
      <image compression="off"/>
    </graphics>
    <graphics type="spice" port="-1" tlsPort="-1" autoport="yes">
      <image compression="glz"/>
      <streaming mode="filter"/>
      <clipboard copypaste="yes"/>
      <mouse mode="client"/>
      <filetransfer enable="yes"/>
    </graphics>
    <graphics type="spice">
      <gl enable="yes" rendernode="/dev/dri/by-path/pci-0000:00:02.0-render"/>
      <image compression="off"/>
      <listen type="socket"/>
    </graphics>
    <graphics type="spice">
      <gl enable="yes" rendernode="/dev/dri/by-path/pci-0000:00:02.0-render"/>
      <image compression="off"/>
      <listen type="none"/>
    </graphics>
    <graphics type="spice">
      <gl enable="yes" rendernode="/dev/dri/foo"/>
      <image compression="off"/>
      <listen type="none"/>
    </graphics>
    <graphics type="spice" port="-1" tlsPort="-1" autoport="yes">
      <image compression="off"/>
      <listen type="address" address="1.2.3.4"/>
    </graphics>
    <graphics type="spice" port="-1" tlsPort="-1" autoport="yes">
      <image compression="off"/>
      <listen type="network" network="default"/>
    </graphics>
    <graphics type="spice">
      <image compression="off"/>
      <listen type="socket" socket="/tmp/foobar"/>
    </graphics>
    <sound model="ich9"/>
    <sound model="ac97"/>
    <sound model="ich9">
      <codec type="micro"/>
      <codec type="duplex"/>
      <codec type="output"/>
    </sound>
    <video>
      <model type="cirrus"/>
    </video>
    <video>
      <model type="qxl" vram="3" heads="4" vgamem="1" ram="2" vram64="65">
        <acceleration accel3d="yes"/>
      </model>
    </video>
    <hostdev mode="subsystem" type="pci" managed="yes">
      <source>
        <address domain="0" bus="0" slot="25" function="0"/>
      </source>
      <rom bar="off"/>
      <boot order="4"/>
    </hostdev>
    <hostdev mode="subsystem" type="usb" managed="yes">
      <source>
        <vendor id="0x0781"/>
        <product id="0x5151"/>
      </source>
    </hostdev>
    <hostdev mode="subsystem" type="usb" managed="yes">
      <source>
        <vendor id="0x04b3"/>
        <product id="0x4485"/>
      </source>
    </hostdev>
    <hostdev mode="subsystem" type="pci" managed="yes">
      <source>
        <address domain="0" bus="21" slot="0" function="1"/>
      </source>
    </hostdev>
    <hostdev mode="subsystem" type="pci" managed="yes">
      <source>
        <address domain="2" bus="21" slot="0" function="2"/>
      </source>
    </hostdev>
    <hostdev mode="subsystem" type="pci" managed="yes">
      <source>
        <address domain="0" bus="21" slot="0" function="3"/>
      </source>
    </hostdev>
    <hostdev mode="subsystem" type="usb" managed="yes">
      <source>
        <vendor id="0x0781"/>
        <product id="0x5151"/>
      </source>
      <driver name="vfio"/>
    </hostdev>
    <hostdev mode="subsystem" type="usb" managed="yes">
      <source>
        <vendor id="0x04b3"/>
        <product id="0x4485"/>
      </source>
    </hostdev>
    <hostdev mode="subsystem" type="scsi" managed="no">
      <source>
        <adapter name="scsi_host0"/>
        <address bus="0" target="0" unit="0"/>
      </source>
    </hostdev>
    <hostdev mode="subsystem" type="usb" managed="yes">
      <source>
        <vendor id="0x03f0"/>
        <product id="0x7e04"/>
        <address bus="1" device="20"/>
      </source>
    </hostdev>
    <hostdev mode="subsystem" type="usb" managed="yes">
      <source>
        <vendor id="0x03f0"/>
        <product id="0x7e04"/>
        <address bus="1" device="21"/>
      </source>
    </hostdev>
    <redirdev bus="usb" type="spicevmc"/>
    <redirdev bus="usb" type="tcp">
      <source host="localhost" service="4000"/>
    </redirdev>
    <redirdev bus="usb" type="tcp">
      <source host="127.0.0.1" service="4002"/>
      <boot order="3"/>
    </redirdev>
    <redirdev bus="usb" type="spicevmc"/>
    <redirdev bus="usb" type="unix">
      <source path="/tmp/foo.socket"/>
      <log file="/tmp/123.log"/>
    </redirdev>
    <rng model="virtio">
      <backend model="egd" type="tcp">
        <source host="127.0.0.1" service="8000"/>
      </backend>
    </rng>
    <panic model="isa">
      <address type="isa" iobase="507"/>
    </panic>
    <vsock model="virtio">
      <cid address="17"/>
    </vsock>
  </devices>
  <qemu:commandline xmlns:qemu="http://libvirt.org/schemas/domain/qemu/1.0">
    <qemu:arg value="-display"/>
    <qemu:arg value="gtk,gl=on"/>
    <qemu:arg value="-device"/>
    <qemu:arg value="vfio-pci,addr=05.0,sysfsdev=/sys/class/mdev_bus/0000:00:02.0/f321853c-c584-4a6b-b99a-3eee22a3919c"/>
    <qemu:arg value="-set"/>
    <qemu:arg value="device.video0.driver=virtio-vga"/>
    <qemu:env name="DISPLAY" value=":0.1"/>
  </qemu:commandline>
</domain>