AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / computer / 问题 / 1572547
Accepted
Ahmed Masud
Ahmed Masud
Asked: 2020-07-29 22:09:21 +0800 CST2020-07-29 22:09:21 +0800 CST 2020-07-29 22:09:21 +0800 CST

无法访问远程托管在 ubuntu 19 或 ubuntu 20.04 上的 vmware workstation pro 上的共享虚拟机

  • 772

在 r/vmware 上提出的原始问题

在 Ubuntu 20.04 上安装了最新的 VMware Workstation (15.5.5)。当我尝试从另一台具有相同版本 VMware Workstation 的 PC 连接到这台 PC 时,我收到 VMware Workstation Server 意外关闭连接的错误消息。试图检查 Vmware 日志,但那里没有什么有趣的。在 Ubuntu 19.10 上没有这样的问题。有人遇到过这个问题吗?有什么办法可以解决吗?

注意:u/EvilEarthWorm 关于 19.10 没有这个问题是错误的:P 但这既不是这里也不是那里,

我对同样问题的改写:

当尝试连接到 VMware 工作站 pro 14 或 VMware 工作站 pro 15 的共享虚拟机时,在 Ubuntu 19.x 或 Ubuntu 20.x 作为主机上运行,​​使用另一个 vmware 工作站(比如在 Windows 或另一个 Linux 上运行)或使用 Mac Fusion/usr/lib/vmware/bin/hostd神秘地崩溃了。由于没有可用的调试符号,因此创建了一个报告,但信息不多。/var/crash/_usr_lib_vmware_bin_appLoader.<id>.crash

通常,远程连接会因神秘消息而断开,例如:A secure connection to the server could not be stablished

关于 VMWare Fusion 的神秘信息

发生了什么?有解决办法吗?

vmware-workstation ubuntu-20.04
  • 1 1 个回答
  • 300 Views

1 个回答

  • Voted
  1. Best Answer
    Ahmed Masud
    2020-07-29T22:09:21+08:002020-07-29T22:09:21+08:00

    所以这是答案,最初由我在 reddit 上的 r/vmware 上发布,但我认为最好也将其发布在这里:

    TLDR;

    这是 Ubuntu 19 / 20 或任何其他尝试访问共享虚拟机崩溃的系统上的问题的简单修复(即/var/lib/vmware/bin/hostd)神秘地崩溃。

    cp /etc/pam.d/vmware-authd ~/vmware-authd.backup
    sed  -e '/pam_cap/s/^.*$/# -- pam_cap does not work for multithreaded apps -- /' /etc/pam.d/common-auth | sudo tee /etc/pam.d/common-auth-mt
    sudo -i -e 's/common-auth/common-auth-mt/' /etc/pam.d/vmware-authd 
    

    关于为什么这样做的详细信息,

    罪魁祸首是 /etc/pam.d/common-auth包含pam_cap.so. 事实证明这/usr/lib/vmware/bin/hostd是一个多线程应用程序,pam_cap.so不能与它们一起使用:

    描述

    pam_cap PAM 模块设置当前进程的可继承能力。

    从 /etc/security/capability.conf 配置文件或使用 config= 选项指定的备用文件读取功能。

    该模块不得由多线程应用程序调用。

    (来源:pam_cap(8) 手册页)

    事实证明hostd是多线程的:P

    因此,我们为所有“common-*”文件创建了一个“多线程”版本(事实证明它只是 common-auth),并将其用于我们的多线程应用程序。

    当然你可以做什么TLDR;上面是手工完成的,如下所示:

    ❯ /bin/cat /etc/pam.d/vmware-authd
    
    #%PAM-1.0
    auth     include        common-auth-mt
    account  include        common-account
    password include        common-password
    session  include        common-session
    

    和

    ❯ cat common-auth-mt
    
    #
    # /etc/pam.d/common-auth - authentication settings common to all services
    #
    # This file is included from other service-specific PAM config files,
    # and should contain a list of the authentication modules that define
    # the central authentication scheme for use on the system
    # (e.g., /etc/shadow, LDAP, Kerberos, etc.).  The default is to use the
    # traditional Unix authentication mechanisms.
    #
    # As of pam 1.0.1-6, this file is managed by pam-auth-update by default.
    # To take advantage of this, it is recommended that you configure any
    # local modules either before or after the default block, and use
    # pam-auth-update to manage selection of other modules.  See
    # pam-auth-update(8) for details.
    
    # here are the per-package modules (the "Primary" block)
    auth    [success=1 default=ignore]  pam_unix.so nullok_secure
    # here's the fallback if no module succeeds
    auth    requisite           pam_deny.so
    # prime the stack with a positive return value if there isn't one already;
    # this avoids us returning an error just because nothing sets a success code
    # since the modules above will each just jump around
    auth    required            pam_permit.so
    # and here are more per-package modules (the "Additional" block)
    # -- pam_cap does not work for multithreaded apps --
    # end of pam-auth-update config
    

    希望这足够清楚。

    更多信息

    顺便说一句,这也适用于 mysql mariadb 和其他多线程应用程序身份验证问题,方法是检查它们的 pam 模块是否以某种方式包含 pam_cap。

    • 0

相关问题

  • Ubuntu 20.04 加密

  • 禁止特定网站在新标签页中显示在 Firefox 热门网站中

  • VMWare Workstation 的 linux 来宾中的鼠标跳跃问题

  • VMWare 工作站不再打开

  • 我可以在虚拟机挂起而不是关闭时备份我的虚拟机吗?[虚拟机]

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何减少“vmmem”进程的消耗?

    • 11 个回答
  • Marko Smith

    从 Microsoft Stream 下载视频

    • 4 个回答
  • Marko Smith

    Google Chrome DevTools 无法解析 SourceMap:chrome-extension

    • 6 个回答
  • Marko Smith

    Windows 照片查看器因为内存不足而无法运行?

    • 5 个回答
  • Marko Smith

    支持结束后如何激活 WindowsXP?

    • 6 个回答
  • Marko Smith

    远程桌面间歇性冻结

    • 7 个回答
  • Marko Smith

    子网掩码 /32 是什么意思?

    • 6 个回答
  • Marko Smith

    鼠标指针在 Windows 中按下的箭头键上移动?

    • 1 个回答
  • Marko Smith

    VirtualBox 无法以 VERR_NEM_VM_CREATE_FAILED 启动

    • 8 个回答
  • Marko Smith

    应用程序不会出现在 MacBook 的摄像头和麦克风隐私设置中

    • 5 个回答
  • Martin Hope
    CiaranWelsh 如何减少“vmmem”进程的消耗? 2020-06-10 02:06:58 +0800 CST
  • Martin Hope
    Jim Windows 10 搜索未加载,显示空白窗口 2020-02-06 03:28:26 +0800 CST
  • Martin Hope
    v15 为什么通过电缆(同轴电缆)的千兆位/秒 Internet 连接不能像光纤一样提供对称速度? 2020-01-25 08:53:31 +0800 CST
  • Martin Hope
    fixer1234 “HTTPS Everywhere”仍然相关吗? 2019-10-27 18:06:25 +0800 CST
  • Martin Hope
    andre_ss6 远程桌面间歇性冻结 2019-09-11 12:56:40 +0800 CST
  • Martin Hope
    Riley Carney 为什么在 URL 后面加一个点会删除登录信息? 2019-08-06 10:59:24 +0800 CST
  • Martin Hope
    zdimension 鼠标指针在 Windows 中按下的箭头键上移动? 2019-08-04 06:39:57 +0800 CST
  • Martin Hope
    jonsca 我所有的 Firefox 附加组件突然被禁用了,我该如何重新启用它们? 2019-05-04 17:58:52 +0800 CST
  • Martin Hope
    MCK 是否可以使用文本创建二维码? 2019-04-02 06:32:14 +0800 CST
  • Martin Hope
    SoniEx2 更改 git init 默认分支名称 2019-04-01 06:16:56 +0800 CST

热门标签

windows-10 linux windows microsoft-excel networking ubuntu worksheet-function bash command-line hard-drive

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve