VirtualBox Guest Additions is a software package for VirtualBox that expands its abilities and provides a more seamless user experience. Adding Guest Additions is not required but allows our VMs to run in full screen mode and provides seamless mouse integration. In this video, learn how to install an updated kernel, the kernel source, and software development tools, and then insert the Guest Additions CD—the installer compiles a new kernel module.
- [Narrator] VirtualBox Guest Additions are pieces of software installed on the guest operating system that gives a guest OSA direct communication path to VirtualBox. This allows the guest to take advantage of faster drivers, better screen resolutions and better integration between the guest and the host. I highly recommend installing Guest Additions as it makes the virtual experience smoother. When running a VM you may notice if you press host plus "f" to go in to full screen mode, that Cent OS doesn't fill the entire screen. Installing Guest Additions will fix this among other things.
There are a few pre-requisites for installing VirtualBox Guest Additions. All Cent OS system updates have to be done and the VM has to be rebooted to ensure Cent OS is using the latest kernel. Also the network needs to be functional. To update the system software open a terminal near VM by selecting applications, favorites, and terminal. We're going to make mine full screen and I'm going bump my font size. Now type in 'sudo space yum space dash y space update' and hit enter and then type in your password.
There's a chance that the yum database may be currently locked. If so you need to kill the other yum process which is listed in the error output. In this case you'd type in 'sudo space kill space dash 9' and the process ID listed in the error output and then you'd run the yum update command again. In my case the update is going well, and I only have one packaged update which is the kernel. When the updates are done, reboot by typing in 'sudo space reboot' and hit enter. Type in your password.
Once the VM has rebooted log back in and open a terminal. Now let's install the development tool software group by typing in 'sudo space yum space group space install space dash y space dash dash set opt equals group underscore command equals objects space double quote development tools double quote and hit enter.
Type in your password, and hit enter again. Due to a change in the way software groups are handled in Cent OS seven we need to add the dash dash set opt option listed above. In your case it may work without it. We need the double quote so yum know we're installing one software group called development tools. When that's done we'll need to install the kernel source. Type in 'sudo space yum space install space dash y space kernel dash devel' and hit enter.
After yum has finished installing the kernel source we can close the terminal window. Now let's go to the virtual machine menus. If you're in full screen mode like I am, then you'll need to press the host key to release your mouse pointer, and then hover it over the bottom of the screen. The menu bar should show up. If you're not in full screen mode you'll need to press your host key and then click on the menu at the top of the window. Select devices and insert Guest Additions CD image. Once the dialogue pops up, click on run, and type in your password.
Once we've authenticated it will start installing Guest Additions. The installer is taking in the development tools software and is compiling a module for the Linux kernel and then installing it which should finish in a few moments. Now that the Guest Additions software is installed, reboot your VM again by going to the top right-hand menu and selecting the power button and then click restart. Once it has rebooted log in and you should be able to go into actual full screen mode by pressing host key plus 'f'. If your VM rebooted okay and your Guest Additions installed successfully, you'll want to create a new snapshot.
With our VM running press host plus 't' to create a new snapshot. We'll call this snapshot Guest Additions and hit enter. You will want to follow the same procedure for each of your virtual machines.
- Gathering network information
- Ensuring connectivity with ping
- Querying DNS servers with dig
- Changing hostname, IP address, and more
- Configuring networking
- Connecting to SSH
- Configuring SSH clients
- Authenticating and restricting access with SSH
- Optimizing SSH for speed