Unable to insert the virtual optical disk in an Ubuntu virtual machine

When you try to install a new version of the VirtualBox Guest Addition on an Ubuntu virtual machine you may get the error message Unable to insert the virtual optical disk C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso into the machine Ubuntu 64. Could not mount the media/drive ‘C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso’ (VERR_PDM_MEDIA_LOCKED). Result Code: E_FAIL (0x80004005) Component: ConsoleWrap Interface: IConsole {872da645-4a9b-1727-bee2-5585105b9eed} …

Raw-mode is unavailable courtesy of Hyper-V error in VirtualBox

For VirtualBox to be able to start virtual machines, Hyper-V has to be turned off in Windows 10. If you get the error message when you try to launch a virtual machine in VirtualBox Raw-mode is unavailable courtesy of Hyper-V Check the Hyper-V setting Open a command prompt as an administrator, Execute the command: bcdedit …

Connect to a database on the host in a Docker container from a virtual machine

Docker is an emerging technology to launch applications without installation. The same host can run multiple Docker containers of any type, so one physical or virtual server can serve as a complete mini cloud environment. Most of the time Linux is used as the host operating system. In this example, we will launch a PostgreSQL …

Nested VirtualBox virtual machine on a VirtualBox virtual machine

There can be reasons when we want to run a VirtualBox virtual machine on another VirtualBox virtual machine. I am setting up a Windows virtual machine to interview job candidates and want to run a small Ubuntu virtual machine on the Windows virtual machine. It is not recommended for performance reasons, but I want to …

Resize the VirtualBox image hard drive

When your VirtualBox virtual machine’s hard drive fills up Virtual Box does not provide a user interface to extend it. If you run VirtualBox on a Macintosh workstation Stop the virtual machine On a Macintosh workstation, the virtual machine image files are located at ~/VirtualBox VMs The name of the subdirectory and the image file matches the …

Git Bash and Command Prompt cannot see the VirtualBox shared folder on Windows 10 guest

When you start a Windows 10 guest machine in VirtualBox on your workstation, you can set up shared folders to seamlessly copy files between your workstation and the Windows 10 guest machine. The shared folder appears in Windows Explorer as a mapped network location. For more on this see Configure the Windows virtual machine in VirtualBox …

Configure the Ubuntu virtual machine in VirtualBox

Enable shared folders on the virtual machines To be able to use shared folders between the host ( your workstation ) and the virtual machine. Start the Ubuntu virtual machine in Virtual Box, Select the virtual machine window on your workstation, In the Devices menu of Virtual Box select Insert Guest Additions CD image… Click the Run button, …

Configure the Windows virtual machine in VirtualBox

Enable shared folders on the virtual machine To be able to use shared folders between the host ( your workstation ) and the Windows virtual machine. Start the Windows virtual machine in VirtualBox, Select the virtual machine window on your workstation, In the Devices menu of VirtualBox select Insert Guest Additions CD image… In the virtual machine start Windows Explorer, …

VirtualBox installation and configuration on Windows

Download Virtual Box from https://www.virtualbox.org/wiki/Downloads and follow the instructions to install it. At the time of writing this was the section where the installer files were referenced Run the downloaded installer file and accept all default values. The installer starts the Virtual Box application.You can close it, we will use other tools to start it in the future. …

VirtualBox installation and configuration on Macintosh

Download VirtualBox from https://www.virtualbox.org/wiki/Downloads and follow the instructions to install it. At the time of writing, this was the section where the installer files were referenced Run the downloaded installer file and accept all default values. The installer starts the application.   Create a virtual machine To create a new virtual machine Download the OS image from the …