How to install virtualbox enhancements in linux system
This article is about how to install virtualbox enhancements on linux systems. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
1. Click menu bar device-> assign CD-ROM-> Select a virtual CD, locate the VBoxGuestAdditions.iso in the VirtualBox installation directory, and load the image.
two。 Start the Linux system and log in as root
3. Execute the mount command to mount the virtual CD to / mnt/cdrom, or create it first if you don't have a cdrom directory.
The code is as follows:
Mkdir / mnt/cdrom
Mount-t auto-r ro / dev/cdrom / mnt/cdrom
4. Copy the script to the / tmp directory
The code is as follows:
Cd / mnt/cdrom
Cp VBoxLinuxAdditions.run / tmp
Cd / tmp
Chmod axix VBoxLinuxAdditions.run
5. The above script needs to install tools such as gcc,make,kernel-devel and development kits, and can be executed (here, please select the installation tools according to the actual system, CentOS uses yum, others please choose separately)
The code is as follows:
Yum install-y gcc gcc-devel gcc-c++ gcc-c++-devel make kernel-devel
6. Perform installation (Desktop support is not installed here)
The code is as follows:
Sh. / VBoxLinuxAdditions.run-noexec-nox11
7. Restart the system
The code is as follows:
Shutdown-r now
8. Add a shared directory
Menu Settings-> shared folders-> add folders and set related paths and permissions
9. Mount a shared folder
If you choose auto-mount, you do not need to perform the following steps. Shared folders are automatically hung to / media/sf_share
Pass through
The code is as follows:
Mount
You can view the mount list
You will see the following style:
The code is as follows:
Share on / media/sf_share type vboxsf (gid=500,rw)
It means that the automatic mount is successful.
The code is as follows:
Mkdir / mnt/share
Mount-t vboxsf share / mnt/share
Thank you for reading! This is the end of the article on "how to install virtualbox enhancements in the linux system". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out for more people to see!