Questions tagged [virtualbox]

[Notice: Only programming-related questions are on-topic] Oracle VM VirtualBox is an x86 virtualization software package, now developed by Oracle Corporation

Oracle VM VirtualBox

Oracle VM VirtualBox is an x86 virtualization software package. It was created by software company innotek GmbH, purchased by Sun Microsystems, and is now developed by Oracle Corporation as part of its family of virtualization products.

VirtualBox is installed on an existing host operating system; within this application, additional guest operating systems can be loaded and run. Each guest OS operates within its own virtual environment.

Presently, VirtualBox runs on Windows, Linux, Macintosh, and Solaris hosts. It supports a large number of guest operating systems including but not limited to:

  • Windows (NT 4.0, 2000, XP, Server 2003, Vista, Windows 7)
  • DOS/Windows 3.x,
  • Linux (2.4 and 2.6)
  • Solaris and OpenSolaris
  • OS/2
  • OpenBSD

See also:

5682 questions
117
votes
9 answers

How to export a Vagrant virtual machine to transfer it

I have a vagrant box up and running (configured with a LAMP stack). I need to transfer it to another PC. How can I export it? I guess that I can get a file (or files) that can be copied to another PC, so there I can run some command to import the…
Eugene
  • 1,680
  • 3
  • 14
  • 23
112
votes
12 answers

Vagrant was unable to mount VirtualBox shared folders

Current setup: Virtualbox 5.1.20 with Vagrant 1.9.3 Previous working setup: Virtualbox 5.1.18 with Vagrant 1.9.3 I installed the latest version of Virtualbox and tried to start my VM. The folder mounting has stopped working. The same folder mounting…
edwardmlyte
  • 15,937
  • 23
  • 58
  • 83
110
votes
9 answers

How to use ssh agent forwarding with "vagrant ssh"?

Rather than create a new SSH key pair on a vagrant box, I would like to re-use the key pair I have on my host machine, using agent forwarding. I've tried setting config.ssh.forward_agent to TRUE in the Vagrantfile, then rebooted the VM, and tried…
Matt V.
  • 9,703
  • 10
  • 35
  • 56
107
votes
10 answers

Git error "fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree"

I'm trying to initialize a new Git repository from Debian (actually a VM on VirtualBox, installed and running on Mac OS X): cd ~ mkdir test cd test git init Initialized empty Git repository in /home/david/test/.git/ fatal: ambiguous argument…
David
  • 2,603
  • 4
  • 18
  • 28
106
votes
11 answers

VM in virtualbox is already locked for a session (or being unlocked)

My VM in virtualbox can not start due to this error, I don't want to destroy it and reinstall it again, anyway to recover it ? There was an error while executing VBoxManage, a CLI used by Vagrant for controlling VirtualBox. The command and stderr is…
zjffdu
  • 25,496
  • 45
  • 109
  • 159
104
votes
2 answers

VirtualBox and vmdk vmx files

I've seen people on the net offering images of a particular Linux setup, and they offer it as either VMDK/VMX files or ISO files. Now an ISO seems to work with VirtualBox, because I can tell it to mount a CD/DVD drive and use the ISO instead of a…
LoveMeSomeCode
  • 3,888
  • 8
  • 34
  • 48
96
votes
3 answers

What exactly do the Vagrant commands do?

There is surprisingly no documentation on what the Vagrant commands do, other than references throughout the "getting started" tutorial. What I've worked out so far: box - manage "boxes" destroy - shut down the VM then delete its stored…
Steve Bennett
  • 114,604
  • 39
  • 168
  • 219
94
votes
13 answers

Kernel driver not installed (rc=-1908) Getting Errors in macOS Big Sur 11.0.1

I just want to work with VirtualBox but now I am getting this type of error. I could not find a proper solution. Kernel driver not installed (rc=-1908) Make sure the kernel module has been loaded successfully. where: suplibOsInit what: 3…
Shibaji Debnath
  • 1,105
  • 1
  • 10
  • 16
94
votes
7 answers

How to connect to Mysql Server inside VirtualBox Vagrant?

I mounted a new VirtualBox Machine with Vagrant, and inside that VM I installed Mysql Server. How can I connect to that server outside the vm? I already forward the port 3306 of the Vagrantfile , but when I try to connect to the mysql server, it`s…
rizidoro
  • 13,073
  • 18
  • 59
  • 86
89
votes
7 answers

Shared folder between MacOSX and Windows on Virtual Box

I need to set up shared folder. I've got Mac OSX Yosemite host and clean Win7 x64 on the VirtualBox. In MacOSX, i go to the VirtualBox -> win7 settings -> "Shared Folders" -> Add shared folder -> creating folder /Users/my_name/Documents/win7 ->…
ServerSideCat
  • 1,992
  • 3
  • 18
  • 24
88
votes
5 answers

How do I remove a Vagrant box from global-status, after deleting that box from the filesystem?

I deleted a folder containing a running Vagrant box before realising it was still running. How can I delete it from Vagrant (global-status) now? I already removed the Virtualbox VM.
mettjus
  • 2,938
  • 4
  • 24
  • 32
88
votes
13 answers

VERR_VMX_MSR_VMXON_DISABLED when starting an image from Oracle virtual box

I'm getting this error while loading a Puppet image from a Oracle virtual box. How can I fix it? Failed to open a session for the virtual machine learn-puppet-centos-6.4-pe-3.1.0. VT-x is disabled in the BIOS. (VERR_VMX_MSR_VMXON_DISABLED). Result…
Srini
  • 981
  • 1
  • 6
  • 4
87
votes
6 answers

Vagrant box could not be found or could not be accessed in the remote catalog - incompatible curl version

I just downloaded Vagrant and did the settings as well as install virtual box. I just can't start my project (vagrant up). I have a vagrant file and so on. What can I do? $ vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==>…
79
votes
10 answers

How to install Guest addition in Mac OS as guest and Windows machine as host

I am trying to copy contents from my host machine to a guest machine, but for copying I need to install the Guest additions disk. Or there is there another way to access host machine content on the guest machine or vice-versa?
Rakesh Chaudhari
  • 3,310
  • 1
  • 27
  • 25
78
votes
8 answers

Vagrant with VirtualBox on Windows10: "Rsync" could not be found on your PATH

I've used Vagrant for a while on a windows 7 system. Now I've a new PC with windows 10. I installed Oracle Virtual Box and Vagrant and I try to start a machine with the command vagrant up. The Vagrantfile is the same file that I used on my windows 7…
Stefan H
  • 1,063
  • 1
  • 10
  • 18