我在Ubuntu主机的virtualbox上安装了一个Ubuntu来宾。当我试图在来宾上运行来自主机的命令时,我会得到一个权限错误:
max@Ubuntu1:~$ VBoxManage guestcontrol Ubuntu2 run ls
VBoxManage: error: The specified user was not able to logon on guest
VBoxManage: error: Details: code VBOX_E_IPRT_ERROR (0x80bb0005), component GuestSessionWrap, interface IGuestSession, callee nsISupports
VBoxManage: error: Context: "WaitForArray(ComSafeArrayAsInParam(aSessionWaitFlags), 30 * 1000, &enmWaitResult)" at line 938 of file VBoxManageGuestCtrl.cpp发布于 2017-04-23 16:20:48
这个命令相当不完整。要从来宾Ubuntu运行ls,请发布至少:
VBoxManage guestcontrol "<Name_of_VM>" run --exe "/bin/ls" --username <me> --passwordfile mypassword.txt --wait-stdout这样,您就需要给出应用程序的完整路径。我们还需要一个用户和一个密码文件,当我们启动VBoxManage时,这个文件将存储在主机目录中。
一种更简单的方法是在客户端运行SSH服务器,以便从主机上启用SSH访问。
https://askubuntu.com/questions/908078
复制相似问题