Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
vmware [2009/01/16 13:56] cyc |
vmware [2009/12/14 23:39] (current) 193.164.137.40 |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== VMware tips ====== | ====== VMware tips ====== | ||
- | |||
- | [[: | ||
Line 18: | Line 16: | ||
+ | ===== Converting ' | ||
+ | |||
+ | example: | ||
+ | $ cd / | ||
+ | $ for i in `ls *[0-9].vmdk`; | ||
+ | $ cat *.raw >> guestos.img | ||
+ | |||
+ | ===== Migration with vmware-vdiskmanager (from vmware to KVM) ===== | ||
+ | **vmware files** | ||
+ | < | ||
+ | $ ls | ||
+ | nvram | ||
+ | opt-zimbra-s001.vmdk | ||
+ | opt-zimbra-s002.vmdk | ||
+ | opt-zimbra-s003.vmdk | ||
+ | opt-zimbra-s004.vmdk | ||
+ | opt-zimbra-s005.vmdk | ||
+ | opt-zimbra-s006.vmdk | ||
+ | opt-zimbra-s007.vmdk | ||
+ | opt-zimbra-s008.vmdk | ||
+ | </ | ||
+ | |||
+ | creating a temp disk and convert allocated - non-parted VMware disks | ||
+ | |||
+ | $ mkdir haha | ||
+ | $ vmware-vdiskmanager -r Zimbra-Training-VM.vmdk -t 2 haha/ | ||
+ | $ vmware-vdiskmanager -r opt-zimbra.vmdk -t 2 haha/ | ||
+ | |||
+ | and get | ||
+ | |||
+ | $ ls haha/ | ||
+ | | ||
+ | |||
+ | Converting .. | ||
+ | |||
+ | $ qemu-img convert -c -O qcow2 haha/ | ||
+ | $ qemu-img convert -c -O qcow2 haha/ | ||
+ | |||
+ | after sucessful run under KVM (uinstall vmware-tools) | ||
+ | # vmware-uninstall-tools.pl | ||
+ | # reboot | ||
===== Backing up virtual machines on VMware Server 2.0 ===== | ===== Backing up virtual machines on VMware Server 2.0 ===== | ||
Line 31: | Line 70: | ||
Here is an example of the script. You will have to modify at least usernames and paths, maybe more, but it will give you an idea of how it can be done. | Here is an example of the script. You will have to modify at least usernames and paths, maybe more, but it will give you an idea of how it can be done. | ||
- | <code bash> | + | <code bash|f backup.sh> |
#!/bin/bash | #!/bin/bash | ||
# | # |