解決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 -aLinux 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]$ lsifcfg-eno16777736 ifdown-bnep ifdown-ipv6 ifdown-ppp ifdown-tunnel ifup-bnep ifup-ipv6 ifup-plusb ifup-routes ifup-wireless network-functions-ipv6ifcfg-lo ifdown-eth ifdown-isdn ifdown-routes ifup ifup-eth ifup-isdn ifup-post ifup-sit init.ipv6-globalifdown 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 ififcfg-eno16777736 ifdown-bnep ifdown-ipv6 ifdown-ppp ifdown-tunnel ifup-bnep ifup-ipv6 ifup-plusb ifup-routes ifup-wirelessifcfg-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=EthernetBOOTPROTO=dhcpDEFROUTE=yesPEERDNS=yesPEERROUTES=yesIPV4_FAILURE_FATAL=noIPV6INIT=yesIPV6_AUTOCONF=yesIPV6_DEFROUTE=yesIPV6_PEERDNS=yesIPV6_PEERROUTES=yesIPV6_FAILURE_FATAL=noNAME=eno16777736UUID=773ddc81-0f1e-4746-87d5-fdf6f69b2901DEVICE=eno16777736ONBOOT=no[lee@lee network-scripts]$
ONBOOT=no修改為yes 重啟network服務
[root@lee network-scripts]# who am ilee pts/0 2016-07-21 22:08 (192.168.222.1)[root@lee network-scripts]# service network restartRestarting network (via systemctl): [ 確定 ][root@lee network-scripts]#
連上網的校正:
[root@lee network-scripts]# ip addr1: 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 forever2: 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.comPING 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 ms64 bytes from 61.135.169.121: icmp_seq=2 ttl=128 time=5.95 ms64 bytes from 61.135.169.121: icmp_seq=3 ttl=128 time=6.12 ms64 bytes from 61.135.169.121: icmp_seq=4 ttl=128 time=7.96 ms64 bytes from 61.135.169.121: icmp_seq=5 ttl=128 time=5.88 ms64 bytes from 61.135.169.121: icmp_seq=6 ttl=128 time=6.65 ms64 bytes from 61.135.169.121: icmp_seq=7 ttl=128 time=5.33 ms64 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 7085msrtt min/avg/max/mdev = 5.332/9.068/28.920/7.540 ms[root@lee network-scripts]#
問題解決