安装 VirtualBox 6,CentOS 7 发表于 2021-11-05 | 分类于 ---Linux | 下载安装参考 :VirtualBox安装以及安装CentOS7 我的自定义设置(右Ctrl恢复鼠标) 12345678910111213141516171819202122232425262728293031323334353637# 名称vm_1# 选择目录C:\Everythings\VirtualBox\workspace\vm_1# 内存4096MB# 磁盘40GB# 网络桥接,选择网卡即可# 设置静态 IP[root@localhost ~]# cd /etc/sysconfig/network-scripts/[root@localhost network-scripts]# lsifcfg-enp0s3 ifdown-bnep ifdown-ipv6 ifdown-ppp ifdown-Team ifup ifup-eth ifup-isdn ifup-post ifup-sit ifup-tunnel network-functionsifcfg-lo ifdown-eth ifdown-isdn ifdown-routes ifdown-TeamPort ifup-aliases ifup-ippp ifup-plip ifup-ppp ifup-Team ifup-wireless network-functions-ipv6ifdown ifdown-ippp ifdown-post ifdown-sit ifdown-tunnel ifup-bnep ifup-ipv6 ifup-plusb ifup-routes ifup-TeamPort init.ipv6-global[root@localhost network-scripts]# cat ifcfg-enp0s3 BOOTPROTO=staticDEVICE=enp0s3ONBOOT=yesIPADDR=10.11.12.254GATEWAY=10.11.12.1# 设置 DNS[root@localhost network-scripts]# cat /etc/resolv.conf# Generated by NetworkManagernameserver 8.8.8.8# 重启网卡systemctl restart network 更多初始化设置,参考 我的 Linux 初始化