File: virt-xml-add-disk-basic.xml

package info (click to toggle)
virt-manager 1%3A5.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 20,404 kB
  • sloc: python: 45,877; xml: 29,099; makefile: 17; sh: 6
file content (13 lines) | stat: -rw-r--r-- 416 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
     <vsock model="virtio">
       <cid auto="no" address="5"/>
     </vsock>
+    <disk type="file" device="disk">
+      <source file="/pool-dir/testvol1.img"/>
+      <target dev="vdf" bus="virtio"/>
+    </disk>
   </devices>
   <seclabel type="dynamic" model="selinux" relabel="yes"/>
   <keywrap>

Domain 'test-for-virtxml' defined successfully.
Changes will take effect after the domain is fully powered off.