Contact
- Email: [email protected]
Table
- Prerequisites
- Summary
- PC Prerequisites
- Linux Terminal Steps
- qemu-units installation
- .OVA Convert Section 1
- .vmdk Convert Section 2
Prerequisites
- Have a Virtual Machine install
- Have Kali install
Summary
This tutorial allows you to convert ova and vmdk virtual machines to qcow2 to used it in environments that used qcow2 format as VMs.
Type of VMs | Description |
---|---|
VM | Stand for Virtual Machine |
name.ova | The .ova file is one type of VM extension mainly used in Virtual Box or VMware. |
name.vmdk | The .vmdk file is one type of VM extension mainly used in VMware and it have two extra files with it .ovf and .mf |
PC Prerequisite
- Make sure that if any
disk
was mounted to the VM that is removed from thedevice setting
on theVirtual Machine
program (Virtualbox
,VMware
) and that thedisplay setting
is set toauto
since I have seen that give problem when the resolution is set to a specific resolution. Any extradevice
that was mounted needs to beremove
too.
- First make sure the
VM
ispower off
. - On
VMware
right click on theVM
you want toconvert
andclick
onsetting
. - Then make sure that
CD/DVD (IDE)
is set toAuto detect
. - Then make sure that
Display
is set toAuto detect
as well.
- On
Virtualbox
go tosetting
on thetop left area of the program
. - Then go to
storage
and make sure isempty
like the picture bellow. - Here as long as you
did not change
thedisplay setting
that should be ok if you did set todefault
again.
Start the Conversion on a linux (Ubuntu,Kali,Other) Terminal
- First step is to export the machine you want to convert to either
VM Formats to conversts |
---|
vm.ova |
vm.vmdk |
- Make sure that the VM file you want to converts is on the a Linux machine that have qemu.utils install to make it easier to convert the vm.
Make sure qemu-utils are install
- To make sure you have qemu-img install.
- open terminal
- type
qemu-img
and pressenter
- you should get sometime alone the line of
qemu-img: not enought arguments
this will let you know that qemu-utils are install on your linux computer - otherwise on the same
terminal
runsudo apt-get update
after that is done runsudo apt-get install qemu-utils
- Next step is to
navigates
to thefolder
that have theVM you exported
and want toconvert
. - if you have
vm.ova
followsection 1
otherwise
go tosection 2
Section 1
- Here is how to
extract
a.ova
to.vmdk
so you can continue onsection 2
- After navigating to the folder run
tar -xvf inputVM.ova
theVM.ova
would be the name of your vm that you want to covert so that might vary for you VM. - This might take a
while
todecompress
depending on theside
of thevm
. - This will give you the
.ovf
.mf
.vmdk
that you need to convert now you can move tosection 2
Section 2
- Here is the step to convert .vmdk to .qcow2
- First step when you have the
VM.vmdk
is to run theqemu-img
command to convert from.vmdk
to.qcom2
- Open terminal and
navigate to the folder
that have theVM.vmdk
you want toconvert
.
- Then run the command
qemu-img convert -O qcow2 inputVM.vmdk outputVM.qcow2
. - This
will take some time depending on the size of the VM
andcomputer processing power
.