Saturday, 14 May 2016

Importing OVA container into Proxmox (Step-by-Step)

10:32 Posted by Jurgens Krause , , , 10 comments
OVAs are an industry standard, and many appliances are distributed as such. Unfortunately Proxmox does not yet support OVA importing in an easy, user friendly way.

After downloading the OVA you will need to get it on to your server. My preferred way is by using WinSCP, if you are using Linux or OSX, you can use command line scp to do the transfer.



  1. Start up WinSCP and select "SCP" as the file protocol.
  2. Enter the Host name, User name and Password for your Proxmox server.
  3. Click yes
  4. At the security key warning, click "Yes"
  1. In the right hand pane, navigate to /tmp 
  2. Drag and drop the file you want to upload into the tmp folder
Depending on your network and the file size, this step may take a while.

Once the file has been uploaded, connect to the Proxmox server using Putty or your favourite ssh client.

Change into the /tmp directory:
cd /tmp

Extract the OVA file:
tar -xvf *.ova

This should output a couple of files from the OVA container, it should include an OVF file, which is the VM Defenition file, and a VMDK file, which is the actual hard disk image. Again, this may take a while.

Convert the vmdk to a Proxmox compatible qcow2 file:
qemu-img convert -f vmdk RADIUSdesk-2016-4-0-disk1.vmdk  -O qcow2 qcowdisk.qcow2

Run the following command, substituting the correct ovf filename, to get the vm settings:
cat RADIUSdesk-2016-4-0.ovf | grep -e "Memory RAMSize" -e "CPU count" -e "Netw" -e "Disk"

Using the settings from the above command, set up a new VM using the Proxmox web interface, you can make a tiny hard drive, since we will overwrite it.

Run the following command to overwrite the newly created disk image with the one we converted earlier. Remember to substitute the correct filenames:
mv qcowdisk.qcow2 /var/lib/vz/images/115/vm-115-disk-1.qcow2

You can now start the new VM with the imported disk image.

Lastly, remove all the files we created in temp by using "rm filename" for each file.

Job done!!

10 comments:

  1. Do you mind if i use this content for a proxmox / openflixr manual?

    ReplyDelete
    Replies
    1. Feel free, I would appreciate a reference, but not required.

      Delete
  2. Hello, I have a question about multiple disk OVAs. I have an appliance that I am trying to import but when I launch it and it's doing it's initial config it's unable to see the second disk. I can't seem to find much information on how to resolve this.

    ReplyDelete
    Replies
    1. probarly make 2 disks in proxmox VM setup so the config has 2 disks, then rinse and repeat disk image wise. (copy overwriting)

      Delete
  3. Ive followed steps, but there is no virtual drive created under the vz/images directory. Ive even created another VM to test and I cant find where the virtual disk is saved. The images directory is empty

    ReplyDelete
    Replies
    1. I've been reading through the Admin guide and even there they indicate the same directory for virtual machines, but in my case the directory remains empty. We are still testing this service. Could it be because of lvm being enabled?

      Delete
  4. Thank you for this!
    I tried this with RADIUSdesk-64-2017-0-4.ova.

    The VM looked OK at the beginning, but it took long time to initialize the network interfaces...

    More info would be extracted from ovf.

    num of network interfaces, type mac address to keep the original IP address.
    cpu type
    hdd bus type

    More could be considered.

    ReplyDelete
  5. We are the world best leading online newspaper portal. You all are the most welcome in our newspaper.If you want to get regular newslatter from our newspaper, please go home page politics news and click the below subscribe button.

    Politics News :
    Politics at CNN has news, opinion and analysis of American and global politics Find news and video about elections, the White House, the U.N and much more. What You Need To Know About politics news .

    Business News :
    The latest CNN business news of today : breaking personal finance, company, View the latest business news about the world's top companies, and explore articles on global.

    Sports News :
    Latest sports news google from around the world with in-depth analysis, features, photos and videos covering football, tennis, motorsport, golf, rugby, sailing, skiing, horse racing and equestrian.

    Entertainment News :
    View entertainment news cnn and videos for the latest movie, music, TV and celebrity headlines on usacnnnews.com
    Technology News :
    Get the latest CNN technology news education : breaking news and analysis on computing, the web, blogs, games, gadgets, social media, broadband and more.

    Science News :
    Get the latest CNN Science and Environment News: breaking news, analysis and debate on science news magazine and nature in the UK and around the world.

    Health News :
    Get the latest CNN health news report : breaking health and medical news from the UK and around the world, with in-depth features on well-being and lifestyle.

    Daily Life :
    What You Need To Know About daily life blogs ? Get the latest lifestyle news with articles and videos on pets, parenting, fashion, beauty, food, travel, relationships and more on CNN news.

    ReplyDelete
  6. We are the world best leading online newspaper portal. You all are the most welcome in our newspaper.If you want to get regular newslatter from our newspaper, please go home page technology news and click the below subscribe button.

    Politics News :
    Politics at FOX has news, opinion and analysis of American and global politics Find news and video about elections, the White House, the U.N and much more. What You Need To Know About politics news usa.

    Business News :
    The latest FOX Business News: breaking personal finance, company, View the latest business news latest about the world's top companies, and explore articles on global.

    Sports News :
    Latest sports news google from around the world with in-depth analysis, features, photos and videos covering football, tennis, motorsport, golf, rugby, sailing, skiing, horse racing and equestrian.

    Entertainment News :
    View entertainment news headlines today and videos for the latest movie, music, TV and celebrity headlines on worldfoxnews.com

    Technology News :
    Get the latest FOX technology news education : breaking news and analysis on computing, the web, blogs, games, gadgets, social media, broadband and more.

    Science News :
    Get the latest FOX science news fox and Environment News: breaking news, analysis and debate on science and nature in the UK and around the world.

    Health News :
    Get the latest FOX health news report: breaking health and medical news from the UK and around the world, with in-depth features on well-being and lifestyle.

    Daily Life :
    What You Need To Know About The daily life activities? Get the latest lifestyle news with articles and videos on pets, parenting, fashion, beauty, food, travel, relationships and more on Fox news.

    ReplyDelete
  7. We are best and trusted bangladeshi online news portal website. Everyday we publish the national and international latest news. If you want to get regular newslatter from our newspaper, please go home page BANGLA NEWS and click the below subscribe button.

    বাংলাদেশ :
    Read Bangla Breaking বাংলাদেশ News on Parliament, Govt, Justice, Road Accident, Cricket, Sports, Education, Business, Agriculture, Population, Dhaka at todaybanglenews.com
    রাজধানী :
    রাজধানী ঢাকার সরকার/রাজনীতি, শিক্ষা, বিচার/আদালত, পুলিশ/অপরাধ, বিক্ষোভ/ধর্মঘট/প্রতিবাদ সমাবেশ, গোলাগুলি/আগুন/আহত, প্রেসক্লাব বিষয়ক খবর ও সংবাদ Dhaka news at todaybanglenews.com
    আন্তর্জাতিক :
    আন্তর্জাতিক,Read Bangla Breaking World News on USA, UK, India, Pakistan, Asia, China, Europe, Middle East, Latin America, Africa, Australia, America & UN at todaybanglenews.com
    সম্পাদকীয় :
    সম্পাদকীয় - সংবাদ গবেষণা, বিশ্লেষণ, অভিমত, মতামত, মন্তব্য বিশয়ক ফিচার। প্রথম আলো, বাংলাদেশের সর্বাধিক পঠিত অনলাইন বাংলা সংবাদপত্র/পত্রিকা at todaybanglenews.com
    বিজ্ঞান ও প্রযুক্তি :
    বিজ্ঞান ও প্রযুক্তি বিষয়ক খবর/সংবাদ - Bangla Technology News। কম্পিউটার সফটওয়্যার, ইন্টারনেট, মোবাইল, আইফোন/আইপ্যাড, উইন্ডোজ/মাইক্রোসফট, এনড্রয়েড/গুগল, নকিয়া, আপডেট/আপগ্রেড, গেমস, ফ্রিল্যান্সার বিষয়ে রিভিউ, গবেষণা, ও ফিচার at todaybanglenews.com
    টিপস্ :
    টিপস্, health tips bangla, health tips bangladesh, health tips bangla version, health tips bangla diabetes, health tips bangla language, health tips bangla pregnancy, health tips bangla women, health tips bangla health tips, healthy jibon, পুরুষের স্বাস্থ্য, health tips for human, health tips in bangla at todaybanglenews.com
    বিনোদন খবর :
    বিনোদন খবর ও সংবাদ - Bangla Movie and Entertainment News। ছবি, শুটিং, মঞ্চ, শিল্পী, নাচ বিষয়ক ফিচার। প্রথম আলো, বাংলাদেশের সর্বাধিক পঠিত অনলাইন বাংলা সংবাদপত্র/পত্রিকা at todaybanglenews.com
    খেলাধুলা :
    খেলার খবর/সংবাদ - খেলাধুলা, ক্রীড়া ও ক্রিকেট - Bangla Sports News। ফুটবল, ক্রিকেট, টেনিস, বিশ্বকাপ, শিরোপা, টি-টোয়েন্টি, বল, সেমি-ফাইনাল, বোলার বিষয়ক ফিচার at todaybanglenews.com


    ReplyDelete