vbox install the virtual machine venue here. https://blog.csdn.net/a47846800/article/details/88847466
Preparation:
Centos remote login systems, sub-side execute the following command:
yum update yum install gcc yum install gcc-c++ yum install make yum install kernel-headers yum install kernel-devel
Configure shared folders
Screenshot configured as follows
Installation enhancement tools
- See all virtual devices connected to the current virtual machine
Execute the command: lsscsi
See the following list, I have two VBOX disk, repeat, do not control
- Create a mount directory:
mkdir /mnt/cdrom
- Mount VBOX letter
sudo mount /dev/sr0 /mnt/cdrom
- Installation increase tool
cd /mnt/cdrom ./VBoxLinuxAdditions.run
Mount the shared folders
- Create a directory to mount shared folders, here I do not need to create a vbox created in the folder of the same name
centos command is executed
mkdir /mnt/gopath
- Run the mount command, gopath here is above the shared folder name
mount -t vboxsf gopath /mnt/gopath
Here we enter / mnt / gopath directory, you should be able to see the files on mac.
Tips:
- Each time the system starts, you need to mount the VBOX to mount a drive letter, is to perform enhancement tools inside the mount command above
- vbox When the network settings, the configuration needs two network cards, a "network address translation the NET", used to access the external network, a bridge mode, access to the network
Set of questions:
问题: /sbin/mount.vboxsf: mounting failed with the error: No such device
solve:
cd /opt/VBoxGuestAdditions-*/init ./vboxadd setup reboot