Ben's notes

Linux, Unix, network, radio...

User Tools

Site Tools


migrate_from_vmware_to_kvm

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
migrate_from_vmware_to_kvm [2016/05/24 18:02] – [Migrate from VMWare to KVM] adminmigrate_from_vmware_to_kvm [2016/05/25 12:24] admin
Line 2: Line 2:
  
 =====Migrate from VMWare to KVM===== =====Migrate from VMWare to KVM=====
-Shutdown guest, download vmdk image.+** Note: complex (hardware) VM configurations might not work as well. ** 
 + 
 +  * Shutdown guest, download vmdk image.
   * Download [[http://bazaar.launchpad.net/%7Eubuntu-virt/virt-goodies/trunk/annotate/head%3A/vmware2libvirt| vmware2libvirt]]   * Download [[http://bazaar.launchpad.net/%7Eubuntu-virt/virt-goodies/trunk/annotate/head%3A/vmware2libvirt| vmware2libvirt]]
 ===Steps=== ===Steps===
Line 75: Line 77:
   * Convert vmx to xml:<code>vmware2libvirt -f Offsec\ VM.vmx > offsecvm.xml</code>   * Convert vmx to xml:<code>vmware2libvirt -f Offsec\ VM.vmx > offsecvm.xml</code>
   * Change other settings as needed.   * Change other settings as needed.
-    * network (MAC address) +    * VM name. 
-    * source file (qcow2) +    * network (MAC address). 
-    * emulator: ''/usr/libexec/qemu-kvm'' +    * source file (qcow2). 
-  * Import the XML:<code></code> +    * emulator: ''/usr/libexec/qemu-kvm''. 
-driver name='qemu' type='raw' +  * Import the XML, define the VM:<code>virsh define offsecvm.xml</code> 
-source file='/path/Kali-Linux-1.1.0c-vm-amd64.vmdk' +  * Edit the VM and change:<code>virsh edit vmoffsec</code> 
- +    * <code>driver name='qemu' type='qcow2' 
-Change raw and vmdk to qcow2 +source file='/path/to-qcow2-file'</code> 
- +  * Start the vm:<code>virsh start vmoffsec</code> 
-driver name='qemu' type='qcow2' +  * Auto start at boot:<code>virsh autostart vmoffsec</code>
-source file='/path/Kali-Linux-1.1.0c-vm-amd64.qcow2' +
- +
- +
-  * +
migrate_from_vmware_to_kvm.txt · Last modified: 2021/10/09 15:14 by 127.0.0.1