> CentOS > CentOS故障 >

解决centOS 7安装后无法上网+虚拟机不能安装问题

已将该虚拟机配置为使用 64 位客户机操作系统。但是,无法执行 64 位操作。
此主机支持 Intel VT-x,但 Intel VT-x 处于禁用状态。

如果已在 BIOS/固件设置中禁用 Intel VT-x,或主机自更改此设置后从未重新启动,则 Intel VT-x 可能被禁用。
(1) 确认 BIOS/固件设置中启用了 Intel VT-x 并禁用了“可信执行”。
(2) 如果这两项 BIOS/固件设置有一项已更改,请重新启动主机。
(3) 如果您在安装 VMware Workstation 之后从未重新启动主机,请重新启动。
(4) 将主机的 BIOS/固件更新至最新版本。

有关更多详细信息,请参见 http://vmware.com/info?id=152.
解决方案:
进入系统的bios,进入到高级,将虚拟功能【Intel VT-x】打开。

问题2:连不上网

[lee@lee ~]$ uname -a
Linux lee.code 3.10.0-327.el7.x86_64 #1 SMP Thu Nov 19 22:10:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
[lee@lee ~]$
[lee@lee network-scripts]$ ls
ifcfg-eno16777736  ifdown-bnep  ifdown-ipv6  ifdown-ppp     ifdown-tunnel  ifup-bnep  ifup-ipv6  ifup-plusb  ifup-routes  ifup-wireless      network-functions-ipv6
ifcfg-lo           ifdown-eth   ifdown-isdn  ifdown-routes  ifup           ifup-eth   ifup-isdn  ifup-post   ifup-sit     init.ipv6-global
ifdown             ifdown-ippp  ifdown-post  ifdown-sit     ifup-aliases   ifup-ippp  ifup-plip  ifup-ppp    ifup-tunnel  network-functions
[lee@lee network-scripts]$ pwd
/etc/sysconfig/network-scripts
[lee@lee network-scripts]$ cat if
ifcfg-eno16777736  ifdown-bnep        ifdown-ipv6        ifdown-ppp         ifdown-tunnel      ifup-bnep          ifup-ipv6          ifup-plusb         ifup-routes        ifup-wireless
ifcfg-lo           ifdown-eth         ifdown-isdn        ifdown-routes      ifup               ifup-eth           ifup-isdn          ifup-post          ifup-sit          
ifdown             ifdown-ippp        ifdown-post        ifdown-sit         ifup-aliases       ifup-ippp          ifup-plip          ifup-ppp           ifup-tunnel       
[lee@lee network-scripts]$ cat ifcfg-eno16777736
TYPE=Ethernet
BOOTPROTO=dhcp
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_FAILURE_FATAL=no
NAME=eno16777736
UUID=773ddc81-0f1e-4746-87d5-fdf6f69b2901
DEVICE=eno16777736
ONBOOT=no
[lee@lee network-scripts]$
ONBOOT=no修改为yes  重启network服务

[root@lee network-scripts]# who am i
lee      pts/0        2016-07-21 22:08 (192.168.222.1)
[root@lee network-scripts]# service network restart
Restarting network (via systemctl):                        [  确定  ]
[root@lee network-scripts]#
连上网的校验:

[root@lee network-scripts]# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eno16777736: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:0c:29:b5:a8:f4 brd ff:ff:ff:ff:ff:ff
    inet 192.168.222.130/24 brd 192.168.222.255 scope global dynamic eno16777736
       valid_lft 1725sec preferred_lft 1725sec
    inet6 fe80::20c:29ff:feb5:a8f4/64 scope link
       valid_lft forever preferred_lft forever
[root@lee network-scripts]#
[root@lee network-scripts]# ping www.baidu.com
PING www.baidu.com (61.135.169.121) 56(84) bytes of data.
64 bytes from 61.135.169.121: icmp_seq=1 ttl=128 time=28.9 ms
64 bytes from 61.135.169.121: icmp_seq=2 ttl=128 time=5.95 ms
64 bytes from 61.135.169.121: icmp_seq=3 ttl=128 time=6.12 ms
64 bytes from 61.135.169.121: icmp_seq=4 ttl=128 time=7.96 ms
64 bytes from 61.135.169.121: icmp_seq=5 ttl=128 time=5.88 ms
64 bytes from 61.135.169.121: icmp_seq=6 ttl=128 time=6.65 ms
64 bytes from 61.135.169.121: icmp_seq=7 ttl=128 time=5.33 ms
64 bytes from 61.135.169.121: icmp_seq=8 ttl=128 time=5.71 ms
^C
--- www.baidu.com ping statistics ---
8 packets transmitted, 8 received, 0% packet loss, time 7085ms
rtt min/avg/max/mdev = 5.332/9.068/28.920/7.540 ms
[root@lee network-scripts]#
问题解决


(责任编辑:IT)