vagrant-mutate icon indicating copy to clipboard operation
vagrant-mutate copied to clipboard

Support virtualbox as output

Open sciurus opened this issue 11 years ago • 12 comments

This requires generating an appropriate OVF file.

sciurus avatar Oct 30 '13 05:10 sciurus

Also, #7 needs done first

sciurus avatar Nov 03 '13 03:11 sciurus

Is anyone working on this?

purpleidea avatar Sep 24 '14 20:09 purpleidea

Not I.

sciurus avatar Sep 24 '14 20:09 sciurus

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

varac avatar Jan 23 '15 10:01 varac

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

varac avatar Jan 23 '15 10:01 varac

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

lukas0krupa avatar Jan 23 '15 14:01 lukas0krupa

@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.

sciurus avatar Jan 23 '15 16:01 sciurus

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

varac avatar Jan 23 '15 19:01 varac

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

varac avatar May 04 '15 14:05 varac

@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 avatar May 04 '15 14:05 lukas0krupa

@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

lukas0krupa avatar May 04 '15 14:05 lukas0krupa

@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.

varac avatar May 04 '15 17:05 varac