代码改变世界

VirtualBox安装centos8.3及配置网络和设置软件源

2022-03-03 10:30  MATRIX已被占用  阅读(782)  评论(1编辑  收藏  举报

1、VirtualBox安装centos8.3

 

 

 

2、网络连接设置

 

 

 

 

 

 

 

 

3、VirtualBox  centos8.3 网络配置

 

 

 

 

 

4、设置软件安装源  和  软件选择

先设置VirtualBox中虚拟机的网络设置,确保虚拟机是可以上网的

软件-安装源地址

https://ftp.sjtu.edu.cn/centos/8-stream/BaseOS/x86_64/os/
https://mirrors.aliyun.com/centos/8-stream/BaseOS/x86_64/os/
https://mirrors.ustc.edu.cn/centos/8-stream/BaseOS/x86_64/os/
https://mirrors.njupt.edu.cn/centos/8-stream/BaseOS/x86_64/os/
https://mirrors.163.com/centos/8-stream/BaseOS/x86_64/os/
https://mirrors.huaweicloud.com/centos/8-stream/BaseOS/x86_64/os/
https://mirrors.tuna.tsinghua.edu.cn/centos/8-stream/BaseOS/x86_64/os/
https://mirrors.neusoft.edu.cn/centos/8-stream/BaseOS/x86_64/os/
https://mirrors.cqu.edu.cn/centos/8-stream/BaseOS/x86_64/os/
https://mirrors.bfsu.edu.cn/centos/8-stream/BaseOS/x86_64/os/
https://mirrors.nju.edu.cn/centos/8-stream/BaseOS/x86_64/os/

 

选择RPM,省去手动安装RPM的麻烦

 

 

 

 

 

5、验证网络是否通畅

ip a  查看虚拟器ip地址: 正常情况下是和主机在同一网段下的ip地址

主机ping虚拟机:

 

 

虚拟机ping主机: