Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
hypervisor:base:xcp-xapi [2015/03/29 03:54]
admin [Create the Virtual Hard Disk (VDI)]
hypervisor:base:xcp-xapi [2015/03/29 04:46]
admin [kpartx for Mapping Partition Tables]
Line 255: Line 255:
  
 ---- ----
-===== Create and Access ​VDI from Dom0 =====+===== Create and Access ​File Based VDI from Dom0 =====
 ---- ----
  
Line 342: Line 342:
 kpartx lets you inspect an img file, showing its contained partitions using the -l command: kpartx lets you inspect an img file, showing its contained partitions using the -l command:
 <​code>​ <​code>​
-> kpartx /​opt/​xen/​X-Local-ISO/<​image_file_name>​.img+> kpartx ​-l /​opt/​xen/​X-Local-ISO/<​image_file_name>​.img
 loop0p1 : 0 122880 /dev/loop0 8192 loop0p1 : 0 122880 /dev/loop0 8192
 loop0p3 : 0 1536000 /dev/loop0 131072 loop0p3 : 0 1536000 /dev/loop0 131072
Line 348: Line 348:
 </​code>​ </​code>​
 ---- ----
 +
 +=== Add the partition mappings to the recognized devices in /​dev/​mapper/​ ===
 +<​code>​
 +> kpartx -av /​run/​sr-mount/​26b9d87b-f344-1c8d-c5c5-a155d4e4e2e0/​72e00fc6-98bb-48fe-ab4d-b52d1ef721b5.vhd
 +</​code>​
 ==== END ==== ==== END ====
 ---- ----