报错是VMware could not connect ‘Ethernet 0’ to virtual network ‘/dev/vmnet8’
一直连接不上网络,看到很多文档都是开启网络服务就好了,我已经开启开机自动启动并且多次尝试重启机器。还是一直报错
└─[$]> systemctl start vmware-networks.service
Job for vmware-networks.service failed because a timeout was exceeded.
See "systemctl status vmware-networks.service" and "journalctl -xeu vmware-networks.service" for details.
以下是日志详情
└─[$]> systemctl status vmware-networks.service
× vmware-networks.service - VMware Networks
Loaded: loaded (/usr/lib/systemd/system/vmware-networks.service; enabled; preset: disabled)
Active: failed (Result: timeout) since Tue 2023-04-11 00:16:00 CST; 53s ago
Process: 4296 ExecStartPre=/sbin/modprobe vmnet (code=killed, signal=TERM)
CPU: 7ms
4月 11 00:14:30 archlinux systemd[1]: Starting VMware Networks...
4月 11 00:16:00 archlinux systemd[1]: vmware-networks.service: start-pre operation timed out. Terminating.
4月 11 00:16:00 archlinux systemd[1]: vmware-networks.service: Failed with result 'timeout'.
4月 11 00:16:00 archlinux systemd[1]: Failed to start VMware Networks.
这是另一个日志
4月 11 00:14:30 archlinux systemd[1]: Starting VMware Networks...
░░ Subject: vmware-networks.service 单元已开始启动░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/l … temd-devel
░░
░░ vmware-networks.service 单元已开始启动。4月 11 00:16:00 archlinux systemd[1]: vmware-networks.service: start-pre operation timed out. Terminating.
4月 11 00:16:00 archlinux systemd[1]: vmware-networks.service: Failed with result 'timeout'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/l … temd-devel
░░
░░ The unit vmware-networks.service has entered the 'failed' state with result 'timeout'.
4月 11 00:16:00 archlinux systemd[1]: Failed to start VMware Networks.
░░ Subject: vmware-networks.service 单元已失败░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/l … temd-devel
░░
░░ vmware-networks.service 单元已失败。░░
░░ 结果为“failed”。
离线
贴日志的时候不要给 jounralctl 加 -x 选项。
它的 pre 超时了。systemctl cat vmware-networks.service 看看是啥。
离线
➜ ~ systemctl cat vmware-networks.service
# /usr/lib/systemd/system/vmware-networks.service
[Unit]
Description=VMware Networks
Wants=vmware-networks-configuration.service
After=vmware-networks-configuration.service
[Service]
Type=forking
ExecStartPre=-/sbin/modprobe vmnet
ExecStart=/usr/bin/vmware-networks --start
ExecStop=/usr/bin/vmware-networks --stop
[Install]
WantedBy=multi-user.target
离线
modinfo vmnet 看看。
离线
➜ ~ modinfo vmnet
filename: /lib/modules/6.2.10-arch1-1/updates/dkms/vmnet.ko.zst
supported: external
license: GPL v2
description: VMware Virtual Networking Driver.
author: VMware, Inc.
srcversion: 5C05007A86D5959C1707B3D
depends:
retpoline: Y
name: vmnet
vermagic: 6.2.10-arch1-1 SMP preempt mod_unload
sig_id: PKCS#7
signer: DKMS module signing key
sig_key: 2E:6C:6B:4B:2D:45:DA:3B:37:FD:F2:0D:AA:CC:28:A0:B1:DC:08:8A
sig_hashalgo: sha512
signature: 67:D1:E1:6C:18:5B:B6:B5:3C:B2:9E:06:FA:D8:9D:A7:C2:97:E4:EF:
C5:7A:96:D1:A2:8A:E2:51:59:33:70:D6:9D:AF:48:B2:62:FF:C1:68:
E0:02:6F:1C:77:40:D3:27:66:F9:28:7A:A9:6E:37:ED:37:10:56:65:
CA:45:FA:41:33:A3:C3:32:E7:CC:E6:6C:9B:07:E6:50:AA:71:0B:85:
81:8D:68:44:DE:E1:89:28:24:A6:54:2D:D5:6B:B1:46:FA:62:01:EB:
8B:D4:5D:07:D9:ED:5D:63:DA:AD:0B:FC:38:4F:65:BA:7A:1B:4F:6F:
06:D8:6F:E7:0F:48:6F:FD:4F:A9:EA:94:5B:D5:C9:11:2D:14:AA:B2:
A7:CA:1E:E2:EB:DD:E8:00:90:96:57:AE:F8:B8:12:EA:B4:46:26:22:
0E:D0:28:6B:B2:D7:13:88:C8:98:27:C8:71:6D:4A:27:92:2C:4C:D9:
18:74:1D:78:AB:9C:B4:A3:47:E4:F6:68:A6:79:31:06:0C:19:E2:70:
83:4F:CD:11:12:A9:12:F8:A9:52:4F:39:53:1F:58:00:42:54:F0:9A:
20:B0:37:E2:B3:30:57:8C:13:CD:97:9E:41:EC:46:E8:6D:7B:61:EC:
1B:92:38:E2:56:2A:2B:2F:6E:61:9F:77:13:B7:26:73
parm: vnet_max_qlen:Maximum queue length of the vmnet, default is 1024, maximum is 1024 (uint)
离线
它在啊。sudo modprobe vmnet 看看会不会卡住?如果卡住,另开一个终端,sudo journalctl -k -n 20 看看内核日志。
离线
一直卡住的
└─[0] sudo journalctl -k -n 20
[sudo] alfred 的密码:4月 11 19:50:30 archlinux kernel: Bluetooth: hci0: Found Intel DDC parameters: intel/ibt-1040-0041.ddc
4月 11 19:50:30 archlinux kernel: Bluetooth: hci0: Applying Intel DDC parameters completed
4月 11 19:50:30 archlinux kernel: Bluetooth: hci0: Firmware timestamp 2022.51 buildtype 1 build 56683
4月 11 19:50:30 archlinux kernel: Bluetooth: MGMT ver 1.22
4月 11 19:50:36 archlinux kernel: igc 0000:06:00.0 enp6s0: NIC Link is Up 100 Mbps Full Duplex, Flow Control: RX
4月 11 19:50:36 archlinux kernel: IPv6: ADDRCONF(NETDEV_CHANGE): enp6s0: link becomes ready
4月 11 19:50:37 archlinux kernel: apple 0005:05AC:024F.0005: unknown main item tag 0x0
4月 11 19:50:37 archlinux kernel: apple 0005:05AC:024F.0005: Non-apple keyboard detected; function keys will default to fnmode=2 behavior
4月 11 19:50:37 archlinux kernel: input: Keychron K3 as /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.0/bluetooth/hci0/hci0:256/0005:05AC:024F.000>
4月 11 19:50:37 archlinux kernel: apple 0005:05AC:024F.0005: input,hidraw2: BLUETOOTH HID v1.06 Keyboard [Keychron K3] on 70:a8:d3:ba:2a:42
4月 11 19:51:02 archlinux kernel: input: MX Master 3 Mac as /devices/virtual/misc/uhid/0005:046D:B023.0006/input/input18
4月 11 19:51:02 archlinux kernel: logitech-hidpp-device 0005:046D:B023.0006: input,hidraw3: BLUETOOTH HID v0.15 Keyboard [MX Master 3 Mac] on 70:a8:d3>
4月 11 19:51:02 archlinux kernel: logitech-hidpp-device 0005:046D:B023.0006: HID++ 4.5 device connected.
4月 11 19:51:13 archlinux kernel: tun: Universal TUN/TAP device driver, 1.6
4月 11 20:13:24 archlinux systemd-fstab-generator[21812]: Mount point is not a valid path, ignoring.
4月 11 20:13:24 archlinux systemd-fstab-generator[21812]: Mount point is not a valid path, ignoring.
4月 11 20:13:24 archlinux systemd-fstab-generator[21812]: Mount point is not a valid path, ignoring.
4月 11 20:13:24 archlinux systemd-fstab-generator[21812]: Mount point is not a valid path, ignoring.
4月 11 20:13:24 archlinux systemd-fstab-generator[21812]: Mount point is not a valid path, ignoring.
4月 11 20:13:24 archlinux systemd-fstab-generator[21812]: Mount point is not a valid path, ignoring.
最近编辑记录 alfred_hong (2023-04-11 20:44:29)
离线
啊咧,完全没有相关的日志的样子。
离线
能麻烦大佬空了远程看一下吗?
十分感谢!!!
最近编辑记录 alfred_hong (2023-04-11 22:21:55)
离线
在vmware.log中显示
2023-04-11T15:29:43.542Z In(05) vmx TOOLS received request in VMX to set option 'synctime' -> '0'
2023-04-11T15:29:43.542Z No(00) vmx ConfigDB: Setting tools.syncTime = "FALSE"
2023-04-11T15:29:43.549Z In(05) vmx VMXVmdb_SetCfgState: cfgReqPath=/vm/#_VMX/vmx/cfgState/req/#1a/, remDevPath=/vm/#_VMX/vmx/vigor/setCfgStateReq/#2b/in/
2023-04-11T15:29:43.556Z In(05) vmx TOOLS received request in VMX to set option 'synctime' -> '0'
2023-04-11T15:29:43.556Z No(00) vmx ConfigDB: Setting tools.syncTime = "FALSE"
2023-04-11T15:29:43.562Z No(00) vmx ConfigDB: Setting tools.upgrade.policy = "useGlobal"
2023-04-11T15:29:43.568Z No(00) vmx ConfigDB: Setting ethernet0.connectionType = "nat"
2023-04-11T15:29:43.570Z No(00) vmx ConfigDB: Setting ethernet0.addressType = "generated"
2023-04-11T15:29:43.570Z No(00) vmx ConfigDB: Setting ethernet0.generatedAddress = "00:0C:29:CE:62:2D"
2023-04-11T15:29:43.581Z No(00) vmx ConfigDB: Setting ethernet0.virtualDev = "vmxnet3"
2023-04-11T15:29:43.595Z In(05) vmx VNET: 'ethernet0' enable link state propagation, lsp.state = 5
2023-04-11T15:29:43.599Z In(05) vmx VNET: MACVNetPortOpenDevice: Ethernet0: can't open vmnet device (No such device or address)
2023-04-11T15:29:43.599Z In(05) vmx VNET: MACVNetPort_Connect: Ethernet0: can't open data fd
2023-04-11T15:29:43.599Z In(05) vmx Msg_Post: Error
2023-04-11T15:29:43.599Z In(05) vmx [msg.vnet.connectvnet] Could not connect 'Ethernet0' to virtual network '/dev/vmnet8'. More information can be found in the vmware.log file.
2023-04-11T15:29:43.599Z In(05) vmx [msg.device.badconnect] Failed to connect virtual device 'Ethernet0'.
2023-04-11T15:29:43.599Z In(05) vmx ----------------------------------------
➜ alfred@archlinux ~/vmware/Fedora_Server sudo /usr/bin/vmware-networks --start
Started Bridge networking on vmnet0
Failed to enable hostonly virtual adapter on vmnet1
Failed to start DHCP service on vmnet1
Failed to start NAT service on vmnet8
Failed to enable hostonly virtual adapter on vmnet8
Failed to start DHCP service on vmnet8
Failed to start some/all services
最近编辑记录 alfred_hong (2023-04-11 23:37:34)
离线
能麻烦大佬空了远程看一下吗?
十分感谢!!!
我的 ssh 公钥: https://github.com/lilydjwg.keys
离线
大佬,我是内网的主机,能通过todesk或者rustdesk吗😅
就是和向日葵类似的远程软件
最近编辑记录 alfred_hong (2023-04-12 16:33:02)
离线
不会用也不想学(
离线
好的,打扰了,感谢大佬支持
离线
可以看看最早报错的地方,看是不是ibt的问题。添加内核参数"ibt=off"可解
离线