Vmware-kvm-migration

Aus crazylinux.de
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