Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support virtualbox as output #4

Open
sciurus opened this issue Oct 30, 2013 · 12 comments
Open

Support virtualbox as output #4

sciurus opened this issue Oct 30, 2013 · 12 comments

Comments

@sciurus
Copy link
Owner

sciurus commented Oct 30, 2013

This requires generating an appropriate OVF file.

@sciurus
Copy link
Owner Author

sciurus commented Nov 3, 2013

Also, #7 needs done first

@purpleidea
Copy link

Is anyone working on this?

@sciurus
Copy link
Owner Author

sciurus commented Sep 24, 2014

Not I.

@varac
Copy link

varac commented Jan 23, 2015

it would be great to have this ! Although my coding skills are not sufficient to code it myself :/

@varac
Copy link

varac commented Jan 23, 2015

@sciurus Do you still plan to implement it in the future ?

@lukas0krupa
Copy link

I managed to transform IMG (qcow2) into virtualbox. If anybody interested, I could find it and post it here.

@sciurus
Copy link
Owner Author

sciurus commented Jan 23, 2015

@varac I do not plan to implement this myself. I'll keep this issue open so anyone who wants to contribute this feature knows that it is welcome.

@varac
Copy link

varac commented Jan 23, 2015

@lukas0krupa that's exapctly what we're looking for ! so yes, please post it here or even better, do a pull request !

@varac
Copy link

varac commented May 4, 2015

@lukas0krupa: ping, did you noticed my comment above ^ ?

@lukas0krupa
Copy link

@varac No, I haven't. Thanks for notification. I have it somewhere at work and today we have bank holiday ;-). I will post it here.

@lukas0krupa
Copy link

@varac
I managed to find it today, so here it is. I hope this will help. I haven't done this for a while, so I just copied from my comments. If anything isn't working, let me know and I will try to replicate it.

Convert Libvirt to Virtualbox

Untar <name>.box or navigate to $VAGRANT_HOME/boxes/..... to find box.img. Navigate to folder where box.img file is and run

sudo qemu-img convert -f qcow2 -O vdi box.img <name>.vdi

Now you create new machine in VB by following wizard and choose options that your box need to have (memory, processor, netword, etc.)
!! Vagrant expect that 1st Network adapter is NAT

Virtual box require VBox additions to be installed on guest machine. For Linux, following need be installed before installing VBox additions

sudo apt-get install linux-headers-generic build-essential dkms

Install additions
From ISO that could be downloaded
Linux: Using package manger

sudo apt-get install virtualbox-guest-utils

or choose one of the method described here Ubuntu-14-04 install VBox guest additions
Shutdown machine and revise machine settings (CD-ROM attached, memory, etc.)

Run following command to package box (see vagrant help package for more information)

vagrant package --base <name_in_virtualbox> --output <box_name>.box

@varac
Copy link

varac commented May 4, 2015

@lukas0krupa thx for the howto

just for the record, i won't work on this neither (i'm not a developer and neither am i going to install virtualbox), i was just curious how the image migration looks like. Maybe someone else picks this up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants