一、VisualBox安装CentOS
1,VisualBox安装64位CentOS
如果没有64位选项,一般是由于注册表虚拟化没有开启,需要到注册表开启虚拟化。
2,网络配置
2.1 配置/etc/resolv.conf
nameserver 114.114.114.114
nameserver 114.114.114.115
2.2 配置/etc/sysconfig/network-scripts/ifcfg-enp0s3
其中ONBOOT改为yes,HWADDR为MAC地址。
二、更改yum源为阿里云源
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
三、安装增强功能包VBoxLinuxAdditions
1,预先安装
yum install gcc
yum install gcc-c++
yum install make
yum install kernel-headers
yum install kernel-devel
2,安装VBoxLinuxAdditions
四、建立共享文件夹
1,共享文件夹配置
2.共享文件夹挂载
mount -t vboxsf WebSite /home/website
参考
1,https://blog.csdn.net/buyueliuying/article/details/51645649