You are on page 1of 9

JamesCoyle.

net

HOME

CHEAT SHEETS

HOW-TO

KNOWLEDGE

TECH NEWS

HOW-TO

UPLOAD OVA TO PROXMOX/


KVM
17-FEB-2014 JAMES.COYLE 3 COMMENTS

TAGS

Apache 2 apt-get Backup


Bandwidth bash benchmark Ceph
cheat-sheet cluster cmd Container
Debian firewall Git gitlab

GlusterFS httpd I/O Install


Proxmox does not have native support for an OVA template which is
surprising considering its the open format for creating packaged
virtual machines, or virtual appliances as they are often referred.
We can still get an OVA template running in Proxmox but it will take
a little bit of work to transform it into a functional VM.
First off, lets
get the OVA
file

installer iptables KVM

Linux Mount

MySQL NFS Nginx OMS OpenNode

OpenVZ Package manager PPTP

Proxmox

Proxy Reverse Proxy

Service SSL Storage Template Terminal

ubuntu Update VPN


Windows ZFS

VISIT OUR ADVERTISERS.

uploaded to
the
Proxmox
server; you
open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

can do this
using SCP
or the
Proxmox
web GUI. If you use the Proxmox web GUI you will need to rename
the OVA to end in a iso extension and upload it as a ISO
image content. Depending on the size of the OVA file and the
bandwidth you have available, it may take a while to upload the file.
The file will then be available in the dump folder in the selected
storage.
SITE LINKS

SSH onto your Proxmox server and locate the OVA file. An OVA file
is simply a tar file containing an image file and some configuration for
things like CPU, RAM, etc. Run the tar command to extract the
components of the OVA file onto your file system.

Blog Posts RSS


Comments RSS
Polls Archive
Random Poll

1 tar - my.ovf

Site Status

The output will be two or more files one will be an OVF file which
contains the settings and configuration of the virtual machine and
one or more files will be VMDKs which are the disk images of the
virtual machine.

Search Site

RECENT POSTS

Although you can run a VMDK file in Proxmox, its recommended to


use qcow2 which is the default file format for Proxmox virtual
open in browser PRO version

Are you a developer? Try out the HTML to PDF API

OpenVZ USB Passthrough in


Proxmox
pdfcrowd.com

machines. Run the VMDK file through the converter not this can
take a while with large files.

1 qemu-img convert -f vmdk myvm-disk1.vmdk -O qcow2


myvm-disk1.qcow2

We now need to get the image into a VM with some hardware so that
we can begin to use it. This is where things get tricky the OVF file is
not compatible with Proxmox and needs to be manually understood.
The principle here is we are going to use the Proxmox web GUI to
create a VM and replace the empty disk image which is created with

Proxmox
Nginx Error client intended to send
too large body
New features in Proxmox Test
Repository
How to Kill a Process Based on Part
of the Process Name
Installing MariaDB on Ubuntu
MySQL Circular Replication
MySQL Database Replication

our recently converted qcow2 image.


You can use vi to open the OVF file and understand some of the basic
settings which are required for the VM. Open the OVF file and look
for the following XML tags:

VISIT OUR ADVERTISERS.

OperatingSystemSection
VirtualHardwareSection
Network
StorageControllers
You should be able to get a rough idea of the requirements for the
KVM. In the Proxmox web GUI, click on Create VM and create a VM
which meets the requirements of the image you converted. Make
sure that you select qcow2 for the disk format. After
open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

clicking Finish an empty VM will be created in this example I used


local storage and VMID 101 so the disk images are stored in
/var/lib/vz/images/101.

Copy the previously converted qcow2 image over the existing image
be sure to overwrite the existing image otherwise your image will
not be used and KVM will try to start with a blank, empty image.

1 mv /tmp/myvm-disk1.qcow2
/var/lib/vz/image/101/vm-101-disk-1.qcow2

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

Thats it you can now start up the image from the Proxmox web
GUI.

Share and Enjoy


Like

Share

Subm it

Related Posts:
1. Reclaim disk space from a sparse image file (qcow2/ vmdk)
2. How much disk space does Proxmox 2.x require?
3. Installing Open vSwitch in Proxmox
4. Proxmox OpenVZ SWAP and Performance
5. Proxmox bind mount mount storage in a container
6. How to Cluster Proxmox

CONVERT

OVA

OVF

PROXMOX

QEMU-IMG

PREVIOUS POST

Create SSH Key Authentication Between Nodes


NEXT POST

Ceph Error Warning: the ECDSA host key for SERVER differs from the key
for the IP address IP'
open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

3 THOUGHTS ON UPLOAD OVA TO PROXMOX/ KVM


Anonymous
31-AUG-2014 AT 13:43

Command tar my.ovf should rather read tar xvf my.ova


REPLY

David RIEHL
20-NOV-2014 AT 12:59

/usr/lib/vz/image/101/vm-101-disk-1.qcow2
should rather read /var/lib/vz/image/101/vm-101-disk-1.qcow2
REPLY

james.coyle
20-NOV-2014 AT 15:05

Good spot thank you.


REPLY
open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

LEAVE A REPLY
Your email address will not be published. Required fields are marked *

Name *

Email *

Website

Comment

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

You may use these HTML tags and attributes: <a href="" title=""> <abbr
title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code
class="" title="" data-url=""> <del datetime=""> <em> <i> <q
cite=""> <strike> <strong> <pre class="" title="" data-url="">
<span class="" title="" data-url="">

POST COMMENT

OTHER SITES

Was My Password Hacked?


Public Git
Adam Seeds wiki a colleague and friend
Free Proxy browse anonymously
Save the world one blog at a time

CONNECT

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

POLLS

Question: Do you use GlusterFS in your workplace?


Answers:
Yes
VOTE

No

I don't know

I'd like to

View Results

Proudly powered by WordPress

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

You might also like