To compile and install the VirtualBox Guest Additions, we can run the following command. We can drop to a command line sub-shell from MC using the CTRL-o key combination - this will also take us back to MC again from the sub-shell. If we start mc, we can get a better view of the files and directories o n the cdrom drive: Sep 1 14:23 VBoxWindowsAdditions-amd64.exe Sep 1 13:42 VBoxDarwinAdditionsUninstall.tool We can now list the contents of the optical drive from the command line with: ls -l /media/cdrom We can confirm the optical drive is now attached to the /media/cdrom mount point with the following command: df -hįilesystem Size Used Avail Use% Mounted on Mount: /media/cdrom: WARNING: device write-protected, mounted read-only. We can now attach the optical drive to the above mount point with the following command: mount /dev/sr0 /media/cdrom We can create a mount point called /media/cdrom to attach the optical drive to with the following command: mkdir /media/cdrom This tells us that the virtual optical drive is called /dev/sr0 The lsblk command lists all block devices on the virtual machine: lsblk To do this we create a mount point to attach the VBoxGuestAdditions_6.1.38.iso optical drive to. Installing to /lib/modules/5.4.0-126-generic/updates/dkms/ĭKMS: install now need to access to the contents of the VBoxGuestAdditions_6.1.38.iso, so we can see what's in the virtual optical drive, and install the Guest Additions from there. Loading new virtualbox-guest-6.1.38 DKMS files.īuilding initial module for 5.4.0-126-generic 69838 files and directories currently installed.) Selecting previously unselected package virtualbox-guest-dkms. Get:1 focal-updates/multiverse amd64 virtualbox-guest-dkms all 6.1.38-dfsg-3~ubuntu1.20.04.1 Processing triggers for libc-bin (2.31-0ubuntu9.9) will also need to install the virtualbox-guest-dkms package as well using the following command: apt install virtualbox-guest-dkmsĠ upgraded, 1 newly installed, 0 to remove and 0 not upgraded.Īfter this operation, 7767 kB of additional disk space will be used. Processing triggers for man-db (2.9.1-1). Setting up build-essential (12.8ubuntu1.1). Update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 63963 files and directories currently installed.) Selecting previously unselected package gcc-9-base:amd64. The following NEW packages will be installed:īinutils binutils-common binutils-x86-64-linux-gnu build-essential cpp cpp-9 dctrl-tools dkms dpkg-dev fakeroot g++ g++-9 gccĠ upgraded, 43 newly installed, 0 to remove and 0 not upgraded.Īfter this operation, 203 MB of additional disk space will be used. The following additional packages will be installed:īinutils binutils-common binutils-x86-64-linux-gnu cpp cpp-9 dctrl-tools dpkg-devīinutils-doc cpp-doc gcc-9-locales debtags menu debian-keyring g++-multilib. Linux-headers-5.4.0-126-generic set to manually installed. On Ubuntu we can easily install these with: apt-get install linux-headers-$(uname -r) build-essential dkms These are needed to build the VirtualBox Guest Additions for the virtual machine. Installing VirtualBox Guest Additionsīefore installing the guest additions, we will need to install the Linux kernel headers and the basic developer tools in the virtual machine. Now we have a basic VM running, we can add the VirtualBox Guest Additions to the VM. Guest Additions are designed to be installed inside a virtual machine after the guest operating system has been installed. VirtualBox Guest Additions consist of device drivers and system applications that optimize the guest operating system for better performance and usability with the host operating system. Installing VirtualBox Guest Additions to a Virtual machine
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |