Migrazione da VMWare a KVM

From RVM Wiki
Revision as of 17:11, 18 August 2011 by Gabriele.vivinetto (talk | contribs) (New page: {{Stub}} * Fermare VMWARE sudo invoke-rc.d vmware stop * Rimuovere avvio Vmware sudo update-rc.d -f vmware remove * Riavviare sudo reboot * Installare kvm ed i tools command line s...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Attenzione questo articolo è ancora incompleto.
Sentiti libero di contribuire cliccando sul tasto edit.
  • Fermare VMWARE
sudo invoke-rc.d vmware stop
  • Rimuovere avvio Vmware
sudo update-rc.d -f vmware remove
  • Riavviare
sudo reboot
  • Installare kvm ed i tools command line
sudo aptitude install qemu-kvm libvirt-bin
  • Installare bridge-utils:
sudo apt-get install bridge-utils
  • Creare il bridge
sudoedit /etc/network/interfaces
auto eth0
iface eth0 inet manual

auto br0
iface br0 inet static
    # copy parameters of old eth0
        address 192.168.254.111
        netmask 255.255.255.0
        gateway 192.168.254.254
        network 192.168.254.0
        broadcast 192.168.254.255
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 127.0.0.1
        dns-search rvmgroup.local
        bridge_ports eth0
        bridge_fd 9
        bridge_hello 2
        bridge_maxage 12
        bridge_stp off
  • Installare convertitori
sudo apt-get install virt-goodies
  • Convertire i vmdk splittati
cd /files/kvm/rvmserver
sudo vmware-vdiskmanager -r /files/vmware/rvmserver.rvmgroup.local/rvmserver-sda.vmdk -t0 sda.vmdk
  • Convertire la virtual machine (SEMBRA CHE LA CONVERSIONE CREI UNA VM CON PRESTAZIONI POVERISSME)
sudo vmware2libvirt -f /files/vmware/rvmserver.rvmgroup.local/rvmserver.vmx | sudo tee rvmserver.xml >/dev/null
  • Editare il file xml, correggendo il path del disco
sudoedit rvmserver.xml
  • Importare la macchina
sudo virsh -c qemu:///system define rvmserver.xml
  • Collegarsi con virt-manager dal desktop Ubuntu, come root (occorre poter accedere come root via ssh)
  • Da virt-manager
    • Impostare la nuova scheda di rete come bridged
    • Impostare il nuovo display VNC
    • Far partire la VM
  • Preparare la iso dei drivers Virtio
http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/bin/virtio-win-0.1-mm34.iso

Riferimenti