Skip to content

Instantly share code, notes, and snippets.

@alexbartsch
Last active August 29, 2015 14:07
Show Gist options
  • Save alexbartsch/a6499b1b2835c14d1baa to your computer and use it in GitHub Desktop.
Save alexbartsch/a6499b1b2835c14d1baa to your computer and use it in GitHub Desktop.
Mutate a vagrant-box for using it with libvirt
#!/bin/sh
#
# This is a script to convert (by using `mutate` command of VirtualBox)
# a virtualbox image for using it with libvirt
#
wget http://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box -O ubuntu-trusty-x64-vagrant.box
vagrant mutate ubuntu-trusty-x64-vagrant.box libvirt
vagrant box list
export VAGRANT_DEFAULT_PROVIDER=libvirt
vagrant box repackage ubuntu-trusty-x64-vagrant libvirt 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment