I have a Cloudstack VHD template I want to modify - now what?

vdfuse -f virtdisk.vhd /somedir
losetup /dev/loop0 /somedir/Partition2

file Partition2
Partition2: LVM2 PV (Linux Logical Volume Manager), UUID: 20dMth-jvua-lFfN-j1a9-4iar-acFF-xoI3Pa, size: 20949499904
pvscan

lvm vgchange -ay

       2 logical volume(s) in volume group "VolGroup" now active
lvs
  LV      VG       Attr   LSize  Origin Snap%  Move Log Copy%  Convert
  lv_root VolGroup -wi-a- 11.80g                                      
  lv_swap VolGroup -wi-a-  7.70g       
mount /dev/mapper/VolGroup-lv_root /mount/lv_root

when done:
vgchange -an
losetup -d /dev/loop0

DONE!

Comments

Popular Posts