hyper-v虚拟机centeros 使用心得

hyper-v虚拟机centeros 使用心得

1环境,win10系统,8G内存,i7cpu

2.虚拟机 win10自带 hyper-v

3.https://jingyan.baidu.com/article/380abd0a7671071d90192cad.html
如何开启win10自带虚拟机

4.下载centos镜像,CentOS-7-x86_64-DVD-1611.iso

  1. 在虚拟机设置里面选择下载好的镜像hyper-v虚拟机centeros 使用心得
    6.安装centos.https://jingyan.baidu.com/article/b7001fe1d1d8380e7382dd72.html

7.连接网路 ,配置网络
7.1 先试下service network restart ,提示 fasle
8创建虚拟交换机

hyper-v虚拟机centeros 使用心得

9.点击设置hyper-v虚拟机centeros 使用心得

10创建 网路适配器
hyper-v虚拟机centeros 使用心得

hyper-v虚拟机centeros 使用心得

12 建立网桥,进行桥接,选择2个网络适配器,然后右键桥接,我这边是已经练好了
hyper-v虚拟机centeros 使用心得
hyper-v虚拟机centeros 使用心得

  1. service network restart 还是false的话,进入 cd /etc/sysconfig/network-scripts/
    hyper-v虚拟机centeros 使用心得

  2. 修改第一个网卡 vi ifcfg-eth0

  3. https://blog.****.net/num197/article/details/80104347
    hyper-v虚拟机centeros 使用心得

  4. hyper-v虚拟机centeros 使用心得
    hyper-v虚拟机centeros 使用心得
    15 关闭虚拟机,重新 开启
    16.service network restart 2次 到3次 ,看到ok
    即网络开启成功, ping www.baidu.com

  5. 下载ifconfig 查看 ,自己ip https://www.linuxidc.com/Linux/2018-10/154766.htm

  6. 开启ssh服务

  7. 看下ssh是否开启, 没有开启 也开启一下