Saturday, October 3, 2015

OVA files over PROXMOX

Maybe you need to load an *.OVA file into proxmox, so you can do the following:



1.- Download (anywhere) the OVA file: (I use wget)
root@cdn32gw:/OVAfile# wget http://dl.l2lk3.net/download/VM/Cor8-DEMO-1.0.ova

2.- Untar downloaded file to get the VMDK (hdd) file:

root@cdn32gw:/OVAfile# tar -xvf Cor8-DEMO-1.0.ova

3.- Format disk container to QCOM2

root@cdn32gw:/OVAfile# qemu-img convert -f vmdk Cor8-DEMO-1.0-disk1.vmdk -O qcow2 newdisk.qcow2
Finally my files are:
root@cdn32gw:/OVAfile# ls -l 
-rw-r--r-- 1 root root 6460932096 Oct  3 newdisk.qcow2
-rw-r--r-- 1 root root 3433728000 May 21 Cor8-DEMO-1.0.ova
-rw------- 1 root root 3433705472 May 20 Cor8-DEMO-1.0-disk1.vmdk
-rw------- 1 root root      12311 May 20 Cor8-DEMO-1.0.ovf


4.- Review *.ovf file containing some VM's parameters in order to create a brand new VM with those same features inside PROXMOX (by using Web GUI)

---> Debian_64
Debian_64 
2 virtual CPU
2048 MB of memory
ideController0 
Ethernet adapter on 'Bridged'
E1000



5.- Create a VM inside Proxmox (as usual)

Note: Harddisk have to be QEMU


This is mine:




6.- Replace brand new harddisk with the *.vmdk (downloaded and formated to Qcow2)

root@cdn32gw:/OVAfile# mv newdisk.qcow2 /var/lib/vz/images/500/vm-500-disk-1.qcow2


7.- Start VM and have fun!


No comments:

Post a Comment