Dobrica Pavlinušić's random unstructured stuff
vmware: Revision 1

Convert filesystem to vmware image


dpavlin@arh-hw:~/backuppc$ kvm-img create -f vmdk backuppc.vmdk 2G
Formatting 'backuppc.vmdk', fmt=vmdk size=2147483648 compat6=off 

dpavlin@arh-hw:~/backuppc$ kvm-nbd -p 1024 -v backuppc.vmdk &

dpavlin@arh-hw:~/backuppc$ sudo nbd-client localhost 1024 /dev/nbd0
Negotiation: ..size = 2097152KB
bs=1024, sz=2097152


arh-hw:/home/dpavlin/backuppc# fdisk /dev/nbd0

arh-hw:/home/dpavlin/backuppc# mkfs.ext4 /dev/nbd0p1

arh-hw:/home/dpavlin/backuppc# mkdir /mnt/vmware
arh-hw:/home/dpavlin/backuppc# mount /dev/nbd0p1 /mnt/vmware/

arh-hw:/home/dpavlin/backuppc# cp -arv /mnt/backuppc/rootfs/ /mnt/vmware/