Exporting Vagrant boxes from Linux to Windows - vagrant

I'm using Windows as my main OS and Linux through Virtualbox for development. I would like to learn Vagrant and create a Linux box using it. After my new box is created using Vagrant, can I somehow export it to Windows so that I can use it without Vagrant? I mean can I start it straight from Windows' Virtualbox?

Related

Is it posible to bring up a VM with vagrant but then manage it from WMWare?

I've been reading up on Vagrant, but i can't find anything about whether after creating a VM with vagrant (specifically using a VMWare provider) you can still manage it from the "provider" software (in this case WorkStation or Player).
I would like to bring it up using vagrant up and when it finishes provisioning, "release it" from vagrant and manage it from VMWare Workstation. Is it possible?
Thanks in advance.
The comment from #axiac is basically correct, but things works slightly different with VMWare, at least I am using VMware Fusion on macos so below is based on my usage.
When you bring up VM with VMWare, the vmx file is created in .vagrant folder of your project directory and the VM is not automatically added in the VM listed in VMWare.
Also the VM does not appear in the CLI. so when the VMs are halted and running
fhenri#machine:/Applications/VMware Fusion.app/Contents/Library$ ./vmrun list
Total running VMs: 0
and when I spin up the VM, I will get
fhenri#machine:/Applications/VMware Fusion.app/Contents/Library$ ./vmrun list
Total running VMs: 2
/Users/fhenri/project/ariba/pws.source/.vagrant/machines/db/vmware_fusion/89e5f21d-7078-44ed-8407-17dcc8c335ee/centos65.vmx
/Users/fhenri/project/ariba/pws.source/.vagrant/machines/app/vmware_fusion/6ee0dc5d-ec17-429c-9fd0-b069bfc0b040/centos65.vmx
When you open VMWare GUI, nothing appears in the VM library, if the VM are running, the VM GUI are available, beware that if you close any window form this point, the VM will shutdown (this is a main difference with VirtualBox as vb manages better the process of the VM and the vb process itself) but you can manually add the vmx file to vmware library if you want to later start and manage the VM from vmware itself
I have this bit in my vagrantfile:
config.vm.provider "vmware_desktop" do |v|
v.gui = true
end
When you do vagrant up, you should see it in Workstation/Fusion automatically, and control it from there.

Docker for Mac and VMWare Fusion

So I have Docker for Mac installed and I would like to use VMWare Fusion rather than VirtualBox. Doing a search, I came across https://docs.docker.com/machine/drivers/vm-fusion/ using docker-machine. Not sure if that's what I'm looking for but when the Docker app starts I can see that the VMWare Fusion machine is suspended. Is there additional setup required to get new containers to run off of VMWare Fusion rather than VirtualBox?
Docker for Mac actually uses a native virtual machine implementation called xhyve based on the OSX Hypervisor.framework. Docker for Windows uses HyperV in a similar fashion.
Using a native VM implementation allows for tighter integration into the Docker app, rather than doing everything via Virtualbox's VBoxManage command as with the original boot2docker image and Docker Toolbox setup.

Vagrant / Oracle Virtual box / both host os and guest os are windows 7

We have a project it is based on Java 1.7, spring, hibernate. The development environment has many steps to install. So we decide to use Vagrant so that developer do no need to take time to setup developing environment. Our host OS normally is windows 7. And we would like to have our Virtual box Guest OS as windows 7 also since our developer are most familiar with windows OS. (Of course, we could switch to Linux). We could not find guest OS image (Guest OS: windows image for virtual box, 64 bit). Is guest OS of windows for virtual box commerical or do someone could point me the link for download?
Windows VMs can be a bit tricky, due to the licensing issues of it being non-free software.
Microsoft issues a set of VMs for situations such as yours, which can be found here: https://dev.windows.com/en-us/microsoft-edge/tools/vms/windows/
For your situation, it may be beneficial to create the machine once manually, and package it as a vagrant box and then distribute it to your dev team.
More information on this can be found in the Vagrant documentation: https://www.vagrantup.com/docs/virtualbox/boxes.html - "PACKAGING THE BOX"
(copied below for posterity)
PACKAGING THE BOX
Vagrant includes a simple way to package VirtualBox base boxes. Once
you've installed all the software you want to install, you can run
this command:
$ vagrant package --base my-virtual-machine
Where "my-virtual-machine"
is replaced by the name of the virtual machine in VirtualBox to
package as a base box.
It will take a few minutes, but after it is complete, a file
"package.box" should be in your working directory which is the new
base box. At this point, you've successfully created a base box!

Create vagrant box from existing OS

Is it possible to create vagrant box using working PC or server?
lets say I am running ubuntu 12.04. It contains variety of software (with different versions)
Can I create a vagrant box using that. I mean create vagrant box using existing PC.
Not downloading from anywhere. just make a copy of current OS and share with others.
then others can boot up same copy of my pc
It is possible by creating a physical to virtual image of your current machine. After that you need to import that image into your provider and create Vagrant box.
See this answer for more details.

Is it possible to use a virtual machine created for a particular OS in ubuntu in windows as well?

I want to install a virtual machine (say virtual box) on windows to run ubuntu as guest OS. And right now I'm using ubuntu OS.
Can I install ubuntu OS on a virtual machine in ubuntu and can the same virtual machine be used on windows as well? If that is possible, why are there different versions of virtual machines for different OS? I mean, how does it work?
Yes.
Hurry... your question will be frozen soon by the mods here
:) All the best buddy.
Detailed answer here;
https://superuser.com/questions/399105/is-a-vdi-file-for-virtualbox-cross-platform

Resources