Dobrica Pavlinušić's random unstructured stuff
vmware: Revision 3
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/ # configure kernel and grub arh-hw:/home/dpavlin# echo do_initrd = Yes > /tmp/backuppc/etc/kernel-img.conf arh-hw:/home/dpavlin# chroot /tmp/backuppc arh-hw:/# apt-get install linux-image-2.6-amd64 grub-pc kvm -vnc :1 -cdrom ../debian-squeeze-live-beta2-amd64-rescue.iso -hda backuppc.vmdk -boot d |