We will be using VirtualBox VMs extensively in our Linux System Administration course, and we have installed two by default, one with a Gnome GUI and one without a GUI. I want to be able to run the VM with a GUI in full screen mode on my 2560 x 1600 resolution monitor instead of the 1024 x 768 resolution that runs in the VM by default. I would also like to be able to switch mouse control in and out of the VM without having to press the right control key. Both of these wishes are granted by the VirtualBox Guest Additions.
As this post explains, all you have to do to get your Centos 7.2 VM ready for Guest Additions is to run:
# yum install epel-releaseAfter that, select:
# yum install dkms
Devices -> Insert Guest Additions CD image...from the menu of the window containing your running VM, and click on the buttons to download and then mount the image. After doing that, I changed to the directory where the CD image was mounted with:
# cd /run/media/user/VBOXADDITIONS-$.3.34_104062and ran:
# ./VBoxLinuxAdditions.runand then:
# shutdown -r nowAfter that, I had everything I wanted. I can resize the window, or maximize it (with Right Control & F keys). When not full screen, mouse control is transfered to the VM whenever the mouse pointer enters its window and back to the host OS whenever the mouse pointer leaves its window.
In fact, beginning with this sentence, I editing this blog entry from my full screen Centos 7.2 desktop:
Then next task to setup a fully functioning desktop is to install Google Chrome. Here is how to do it:
- Create a file /etc/yum.repos.d/google-chrome.repo with the following contents:
[google-chrome] name=google-chrome baseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearch enabled=1 gpgcheck=1 gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
- # yum install google-chrome-stable