无法访问虚拟网络编辑器 - Workstation 14.1 Ubuntu 17.10

无法访问虚拟网络编辑器 - Workstation 14.1 Ubuntu 17.10

我刚刚在我的 PC 上安装了 VMWare Workstation 14,操作系统是 Ubuntu 17.10。

尝试通过 vmware 工作站运行它时(编辑 > 虚拟网络编辑器),它要求我输入密码,但什么也没发生。

我尝试使用 启动虚拟网络编辑器sudo vmware-netcfg。系统提示我输入 root 凭据,然后出现此错误:

pc1@mypc$vmware-netcfg
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
pc1@mypc$sudo /usr/lib/vmware/bin/vmware-netcfg  #run as super user:
No protocol specified
xcb_connection_has_error() returned true
No protocol specified
xcb_connection_has_error() returned true
No protocol specified
** (vmware-netcfg:14122): WARNING **: Could not open X display
No protocol specified
(vmware-netcfg:14122): Gtk-WARNING **: cannot open display: :0

root@mypc#/usr/lib/vmware/bin/vmware-netcfg   
No protocol specified
xcb_connection_has_error() returned true
XDG_RUNTIME_DIR (/run/user/1000) is not owned by us (uid 0), but by uid 1000!
(This could e g happen if you try to connect to a non-root PulseAudio as a root user, over the native protocol. Don't do that.)
No protocol specified
xcb_connection_has_error() returned true
XDG_RUNTIME_DIR (/run/user/1000) is not owned by us (uid 0), but by uid 1000!
(This could e g happen if you try to connect to a non-root PulseAudio as a root user, over the native protocol. Don't do that.)
No protocol specified
** (vmware-netcfg:14043): WARNING **: Could not open X display
No protocol specified
(vmware-netcfg:14043): Gtk-WARNING **: cannot open display: :0

答案1

将我的操作系统升级到 Ubuntu 18.04 并重新安装 vm Workstation 14.1.2 后问题得到解决。

安装 vmware 后,转到:共享虚拟机(右键点击)> 许可并检查您是否有权限。您可以删除/添加用户。

相关内容