Can Vagrantup w/ VirtualBox export a virual machine with its software to something that can run directly as a "main" OS?

12 views
Skip to first unread message

Nick The Wilde

unread,
Apr 1, 2020, 7:35:51 AM4/1/20
to Vagrant
Can Vagrantup w/ VirtualBox export a virual machine with its software to something that can run directly as a "main" OS on another machine later?

Basically, I want to prepare the software (Ubuntu with my desired applications) for a server on my main desktop and then create something like an ISO to be able to install/run directly on my server without the need of VirtualBox/VagrantUp

And if so it would be nice if you could link me to some support page that describes the process/desired commands <3

Alvaro Miranda Aguilera

unread,
Apr 2, 2020, 7:01:36 AM4/2/20
to vagra...@googlegroups.com
Hello

Not sure if you could do that, I know are tools to do the opposite.. Metal -> VM

I don't think Vagrant can help, so you could try to see at disk level.

you could i assume boot on a liveCD and try to copy the virtual disk into the real disk, however require some steps

ie convert the disk from vdi to raw/img



Alvaro.

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/82418631-22a1-4f1b-9d7a-df6ae1ae29ef%40googlegroups.com.


--
Alvaro

dragon788

unread,
Apr 2, 2020, 9:53:45 PM4/2/20
to Vagrant
For Ubuntu or Debian the automated installation mechanism you are looking for is called a preseed (for Fedora/RedHat it's a kickstart file).

To test this in a VM before applying to a real machine you'll want to use Packer from packer.io and then you can have it output a Vagrant box that you can play with and then when you are happy with the result you can separately build an ISO including that preseed file for bare metal.

I'd highly suggest checking out the github.com/Boxcutter and github.com/Chef/Bento repositories for Packer templates that include ones for Debian and Ubuntu and includes very complete preseed files.

Reply all
Reply to author
Forward
0 new messages