Re: Re: Image available to download for a definite amount of tim

Home Page Forums Network Management ZeroShell Development vmware image Re: Re: Image available to download for a definite amount of tim

#48413
ran
Member

@schoopy wrote:

Dear All,

I finally built a vmware image dedicated to development. Unfortunately the image size is about 1.5 GB. it can be found at http://130.223.122.55/~tschuepb/ZeroShell/.

For convert vmware image Zeroshell-dev-beta12-vmware.tar.bz2 to hdd image:

bunzip2 Zeroshell-dev-beta12-vmware.tar.bz2
tar -xvf Zeroshell-dev-beta12-vmware.tar
cd Zeroshell-dev-beta12-vmware
qemu-img convert -O raw Zeroshell4GB-cl1-000009-cl1.vmdk Zeroshell4GB-cl1-000009-cl1.hdd

For mount image partitions:

losetup /dev/loop0 Zeroshell4GB-cl1-000009-cl1.hdd
kpartx -a -v /dev/loop0
mkdir /mnt/p1
mkdir /mnt/p2
mkdir /mnt/p3
mkdir /mnt/p4
mount /dev/mapper/loop0p1 /mnt/p1
mount /dev/mapper/loop0p2 /mnt/p2
mount /dev/mapper/loop0p3 /mnt/p3
mount /dev/mapper/loop0p4 /mnt/p4

Unmount:


unmount /mnt/p1
unmount /mnt/p2
unmount /mnt/p3
unmount /mnt/p4
kpartx -d /dev/loop0
losetup -d /dev/loop0