Proxmox Import/Export OVA

Import from OVA
NOTE:
-disk must be single file not splitted

-scp ova into /tmp. In my case I am using dsl-4-4-10.ova
# cd /tmp
# tar xf dsl-4-4-10.ova
# qemu-img convert -f vmdk DSL-4.4.10-disk1.vmdk -O qcow2 DSL-4.4.10.qcow2
-check dsl-4-4-10.ova configuration
# cat DSL-4.4.10.ovf | grep -e “Memory RAMSize” -e “CPU count” -e “Netw” -e “Disk”
What I found only disk size and nic quantity. The rest should be default
-create empty vm with 1 nic. Disk size could be any smallest size because I will overwrite later. Disk type could be vmdk or qcow2
# cp DSL-4.4.10.qcow2 /var/lib/vz/images/100/vm-100-disk-1.qcow2
-start the vm in proxmox

Export to OVA
-let say I already have vm with qcow disk
# cd /var/lib/vz/images/101
# qemu-img convert -f vm-101-disk-1.qcow2 -O /tmp/DSL-4.4.10-disk1.vmdk
-create an empty vm with the same OS, RAM, disk size, nic
NOTE:
-disk must be single file not splitted
-scp DSL-4.4.10-disk1.vmdk into your vm directory in vmware and rename disk name to vmname.vmdk
-click vm Settings
-click Hard Disk, click Remove
-click Hard Disk, click Add
I must choose same disk type as source vm disk. For example IDE or SCSI
Attach vmname.vmdk that we copied before
-click File/Export to OVF menu
name it vmname.ova click Save
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s