V
3  
Tags
There are no tags for this page.
Attachments
Dobrica Pavlinušić's random unstructured stuff
vmware

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

 

Upload Files

Click "Browse" to find the file you want to upload. When you click "Upload file" your file will be uploaded and added to the list of attachments for this page.

Maximum file size: 50MB

 
 
 
File Name Author Date Uploaded Size

Save Page As

Enter a meaningful and distinctive title for your page.

Page Title:

Tip: You'll be able to find this page later by using the title you choose.

Page Already Exists

There is already a page named XXX. Would you like to:

Save with a different name:

Save the page with the name "XXX"

Append your text to the bottom of the existing page named: "XXX"

Upload Files

Click "Browse" to find the file you want to upload. When you click "Add file" this file will be added to the list of attachments for this page, and uploaded when you save the page.

 
 
 
Add Tags

Enter a tag and click "Add tag". The tag will be saved when you save the page.

Tag: 

Suggestions: