Vmware-kvm-migration

Aus crazylinux.de
Version vom 7. April 2013, 01:18 Uhr von Jonathan (Diskussion | Beiträge) (init)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Zur Navigation springen Zur Suche springen

we need to migrate our vm from vmware server 1.0 to kvm (libvirt)

If your VMWare image exists as multi-vmdk-file then you have to convert it first, and this is done with the vmware-vdiskmanager

vmware-vdiskmanager -r Ubuntu.vmdk -t 0 Ubuntu-2.vmdk
qemu-img convert Ubuntu-2.vmdk -O qcow2 Ubuntu-2.qemu

bridge device is virbr0 (created automatically)!

#edit IPs...
virsh net-edit default

Convert vmx-file to xml

vmware2libvirt -f Ubuntu.vmx > Ubunut-2.xml

edit disk, add type...

<disk type='file' device='disk'>
 <driver name='qemu' type='qcow2'/>
 <source file='/srv/www/xxxx.tld/image/debian/debian.qemu'/>
 <target dev='hda' bus='ide'/>
 <address type='drive' controller='0' bus='0' unit='0'/>
</disk>

to connect to your machine graphically (remote via ssh) you can start

virt-manager

Links

http://blog.mymediasystem.net/uncategorized/vmware-kvm-migration-guide/