pdfcrowd.comopen in browser PRO version Are you a developer? Try out the HTML to PDF API
Proxmox does not have native support for an OVA template which is
surprising considering it’s 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
uploaded to
the
Proxmox
server; you
TAGS
Apache 2 apt-get Backup
Bandwidth bash benchmark Ceph
cheat-sheet cluster cmd ContainerDebian firewall Git gitlab
GlusterFS httpd I/O Install
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.
HOW-TO
UPLOAD OVA TO PROXMOX/KVM
17-FEB-2014 JAMES.COYLE 3 COMMENTS
JamesCoyle.net HOME CHEAT SHEETS HOW-TO KNOWLEDGE TECH NEWS
pdfcrowd.comopen in browser PRO version Are you a developer? Try out the HTML to PDF API
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.
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.
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.
Although you can run a VMDK file in Proxmox, it’s recommended to
use qcow2 which is the default file format for Proxmox virtual
SITE LINKS
Blog Posts RSS
Comments RSS
Polls Archive
Random Poll
Site Status
Search Site
RECENT POSTS
OpenVZ USB Passthrough inProxmox
1 tar - my.ovf
pdfcrowd.comopen in browser PRO version Are you a developer? Try out the HTML to PDF API
machines. Run the VMDK file through the converter – not this can
take a while with large files.
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
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:
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
Proxmox
Nginx Error “client intended to sendtoo large body”
New features in Proxmox TestRepository
How to Kill a Process Based on Partof the Process Name
Installing MariaDB on Ubuntu
MySQL Circular Replication
MySQL Database Replication
VISIT OUR ADVERTISERS.
1 qemu-img convert -f vmdk myvm-disk1.vmdk -O qcow2 myvm-disk1.qcow2
pdfcrowd.comopen in browser PRO version Are you a developer? Try out the HTML to PDF API
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
pdfcrowd.comopen in browser PRO version Are you a developer? Try out the HTML to PDF API
3 Submit
Thats it – you can now start up the image from the Proxmox web
GUI.
Share and Enjoy
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
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'”
1Like Share
CONVERT OVA OVF PROXMOX QEMU-IMG
pdfcrowd.comopen in browser PRO version Are you a developer? Try out the HTML to PDF API
3 THOUGHTS ON “UPLOAD OVA TO PROXMOX/ KVM”
31-AUG-2014 AT 13:43
Command ‘tar – my.ovf’ should rather read ‘tar xvf my.ova’
REPLY
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
20-NOV-2014 AT 15:05
Good spot – thank you.
REPLY
Anonymous
David RIEHL
james.coyle
pdfcrowd.comopen in browser PRO version Are you a developer? Try out the HTML to PDF API
LEAVE A REPLY
Your email address will not be published. Required fields are marked *
Name *
Email *
Website
Comment
pdfcrowd.comopen in browser PRO version Are you a developer? Try out the HTML to PDF API
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
pdfcrowd.comopen in browser PRO version Are you a developer? Try out the HTML to PDF API
POLLS
Question: Do you use GlusterFS in your workplace?
Answers: Yes No I don't know I'd like to
VOTE View Results
Proudly powered by WordPress