Vmware-kvm-migration: Unterschied zwischen den Versionen

Aus crazylinux.de
Zur Navigation springen Zur Suche springen
(init)
 
K (added links)
Zeile 35: Zeile 35:


<source lang="bash">virt-manager</source>
<source lang="bash">virt-manager</source>
= Links =
= Links =
http://blog.mymediasystem.net/uncategorized/vmware-kvm-migration-guide/
* http://blog.mymediasystem.net/uncategorized/vmware-kvm-migration-guide/
* http://wiki.hetzner.de/index.php/Netzkonfiguration_f%C3%BCr_Xen_und_KVM_mit_libvirt
* http://wiki.hetzner.de/index.php/KVM_mit_libvirt

Version vom 7. April 2013, 02:21 Uhr

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