歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Ubuntu下VMware 網絡無法鏈接

Ubuntu下VMware 網絡無法鏈接

日期:2017/2/28 16:38:36   编辑:Linux教程

在Win下用習慣了VMware ,在Ubuntu下用virtualbox怎麼都不習慣,就又裝了VMware,昨天裝完用的還好好的,今天虛擬機啟動不了了。

Ubuntu 9.10 + VMware workstation 7.0.1 build-227600
根據提示和日志
依次運行
sudo modprobe vmmon
sudo modprobe vmci

好了虛擬機成功起來了
網絡無法鏈接
點connect之後 顯示
Could not connect Ethernet0 to virtual network "/dev/vmnet8". More information can be found in the VMware.log file.
Failed to connect virtual device Ethernet0.


在網上找了一下,竟然沒有相關錯誤,郁悶了
找VMware相關的文件,發現有個 VMware-network

tian@tian-laptop:~$ VMware-networks --help
VMware-networks version: 0.1
Usage: VMware-networks [--verbose | -v] <option>
Use exactly one of these commands:
--postinstall <component-name>,<old-version>,<new-version>
--migrate-network-settings <location of settings file>
--install-host-policy [<subnet>,<dhcp=0|1>]
--uninstall-host-policy
--start
--stop
--status


Additional options:
--help | -h
--version


也許就是這個,接著運行
tian@tian-laptop:~$ sudo VMware-networks --start
Started Bridge networking on vmnet0
Failed to start DHCP service on vmnet1
Failed to enable hostonly virtual adapter on vmnet1
Failed to start DHCP service on vmnet2
Failed to start NAT service on vmnet2
Failed to enable hostonly virtual adapter on vmnet2
Failed to start DHCP service on vmnet8
Failed to start NAT service on vmnet8
Failed to enable hostonly virtual adapter on vmnet8
Started Network detection service
Failed to start some/all services


又報錯了,無法啟動
試一下

sudo modprobe vmnet

再來
tian@tian-laptop:~$ sudo VMware-networks --start
Started Bridge networking on vmnet0
Started DHCP service on vmnet1
Enabled hostonly virtual adapter on vmnet1
Started DHCP service on vmnet2
Started NAT service on vmnet2
Enabled hostonly virtual adapter on vmnet2
Started DHCP service on vmnet8
Started NAT service on vmnet8
Enabled hostonly virtual adapter on vmnet8
Started Network detection service
Started all configured services on all networks


成功了。
網絡也順利的連上了。。。

Copyright © Linux教程網 All Rights Reserved