安装 VirtualBox 6,CentOS 7

下载安装参考 :VirtualBox安装以及安装CentOS7

我的自定义设置(右Ctrl恢复鼠标)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# 名称
vm_1

# 选择目录
C:\Everythings\VirtualBox\workspace\vm_1

# 内存
4096MB

# 磁盘
40GB

# 网络
桥接,选择网卡即可


# 设置静态 IP
[root@localhost ~]# cd /etc/sysconfig/network-scripts/
[root@localhost network-scripts]# ls
ifcfg-enp0s3 ifdown-bnep ifdown-ipv6 ifdown-ppp ifdown-Team ifup ifup-eth ifup-isdn ifup-post ifup-sit ifup-tunnel network-functions
ifcfg-lo ifdown-eth ifdown-isdn ifdown-routes ifdown-TeamPort ifup-aliases ifup-ippp ifup-plip ifup-ppp ifup-Team ifup-wireless network-functions-ipv6
ifdown 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=static
DEVICE=enp0s3
ONBOOT=yes

IPADDR=10.11.12.254
GATEWAY=10.11.12.1

# 设置 DNS
[root@localhost network-scripts]# cat /etc/resolv.conf
# Generated by NetworkManager
nameserver 8.8.8.8

# 重启网卡
systemctl restart network

更多初始化设置,参考 我的 Linux 初始化