win10 system, the installation vbox centos7. Mount achieve shared directory

The first step: to achieve centos system can access win10, you can access the Internet

1 card for accessing win10. 2 card for accessing external network (note first configure the network card, and then installed on the virtual machine centos)

Centos configure the LAN IP. Modified red several places (the latter two are added up)
VI / etc / sysconfig / Network-scripts / the ifcfg-enp0s8

Step two: win10 directory and centos sharing

The system needs to be updated

yum -y update

yum install -y bzip2 gcc gcc-devel gcc-c++ gcc-c++-devel make kernel-d

mkdir /mnt/cdrom

mount -t auto -r /dev/cdrom /mnt/cdrom
cd /mnt/cdrom
./VBoxLinuxAdditions.run

Mounting

sudo mount -t vboxsf www /data/www

If you want to boot automatically mounts can add an entry at the end of / etc / fstab file

www /data/www vboxsf defaults 0 0

Reference website: https://www.jb51.net/article/115159.htm

Guess you like

Origin www.cnblogs.com/qq917937712/p/11757871.html