Win10 Hyper-V管理器下安装CenOS8不再像安装8以下的版本那么复杂了。CentOS8以前的版本需要结合Linux集成服务,而CentOS8不再需要。这篇文章将按照步骤加图片的形式来说明安装步骤。

一、下载CentOS镜像文件

CentOS下载地址

Win10 Hyper-V管理器安装CenOS8

Win10 Hyper-V管理器安装CenOS8

Win10 Hyper-V管理器安装CenOS8

下载完成后,开始创建虚拟机。

二、启用Win10自带的Hyper-V管理器功能

Win10菜单栏输入hyper-v

Win10 Hyper-V管理器安装CenOS8

点击 Turn Windows feature on or off.

Win10 Hyper-V管理器安装CenOS8

选中Hyper-V,等几分钟后,选择重启电脑。重启后,开始菜单输入 Hyper-V,

Win10 Hyper-V管理器安装CenOS8

打开 Hyper-V Manager,创建虚拟机。

三、创建虚拟机

Win10 Hyper-V管理器安装CenOS8

Win10 Hyper-V管理器安装CenOS8

Win10 Hyper-V管理器安装CenOS8

 

Win10 Hyper-V管理器安装CenOS8

Win10 Hyper-V管理器安装CenOS8

Win10 Hyper-V管理器安装CenOS8

Win10 Hyper-V管理器安装CenOS8

Win10 Hyper-V管理器安装CenOS8

Win10 Hyper-V管理器安装CenOS8

四、配置虚拟机

在Hyper-V管理器中可以看到创建好的虚拟机,点击设置

Win10 Hyper-V管理器安装CenOS8

Win10 Hyper-V管理器安装CenOS8

连接虚拟机,开始配置。

Win10 Hyper-V管理器安装CenOS8

Win10 Hyper-V管理器安装CenOS8

 

Tab键进行详细的配置。

Win10 Hyper-V管理器安装CenOS8

等一会

Win10 Hyper-V管理器安装CenOS8

Win10 Hyper-V管理器安装CenOS8

Win10 Hyper-V管理器安装CenOS8

Win10 Hyper-V管理器安装CenOS8

Win10 Hyper-V管理器安装CenOS8

一直等待完成,然后重启。

Win10 Hyper-V管理器安装CenOS8

重启后

Win10 Hyper-V管理器安装CenOS8

Win10 Hyper-V管理器安装CenOS8

Win10 Hyper-V管理器安装CenOS8

Win10 Hyper-V管理器安装CenOS8

Win10 Hyper-V管理器安装CenOS8

完成后进入Linux系统,用root账户登录,进入终端。

Win10 Hyper-V管理器安装CenOS8

尝试ping www.baidu.com,发现不能ping通。

Win10 Hyper-V管理器安装CenOS8

ifconfig查看网络设置,发现这台虚拟机并没有网络。

Win10 Hyper-V管理器安装CenOS8

vi /etc/sysconfig/network-scripts/ifcfg-eth0

Win10 Hyper-V管理器安装CenOS8

修改之后重启虚拟机,再次ping,成功。

Win10 Hyper-V管理器安装CenOS8

 

这篇文章用于记录在Hyper-V管理器下创建虚拟机以及配置网络的步骤,供参考。

 

参考:https://blog.51cto.com/13760351/2470871

 

相关文章: