Opened 7 years ago
Last modified 4 years ago
#17529 new defect
VBoxManage and Guest Additions 5.x.y: Can't communicate with FreeBSD Guests
Reported by: | Jonas Almroth | Owned by: | |
---|---|---|---|
Component: | guest additions | Version: | VirtualBox 5.2.6 |
Keywords: | freebsd, guest additions broken | Cc: | |
Guest type: | BSD | Host type: | Linux |
Description
I've been trying to get FreeBSD to work with VBoxManage for a while (in fact for several years, since 9.3).
This is the result of testing VirtualBox 5.2.6 on Ubuntu with FreeBSD-11.1-RELEASE-amd64 as guest.
$ VBoxManage guestcontrol freebsd-11.1-amd64 --username root --password 2Hard2Crack stat /tmp --verbose Creating guest session as user 'root'... Waiting for guest session to start... 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 Closing guest session ...
Guest Additions were installed with pkg:
[root@freebsd ~]# pkg install -y virtualbox-ose-additions [root@freebsd ~]# sysrc vboxguest_enable="YES" vboxguest_enable: NO -> YES [root@freebsd ~]# sysrc vboxservice_enable="YES" vboxservice_enable: NO -> YES [root@freebsd ~]# reboot
Guest Additions kernel module is loaded in Guest:
[root@freebsd ~]# VBoxService --version 5.2.4r119758 [root@freebsd ~]# kldstat|grep vbox 3 1 0xffffffff8221f000 2eacb vboxguest.ko
Change History (3)
comment:1 by , 6 years ago
comment:2 by , 4 years ago
If you look at the source code for virtualbox-ose-additions-nox11, specifically the function rtCheckCredentials in the file process-creation-posix.cpp, you can see that there are no authentication code at all for FreeBSD. It simply returns VERR_AUTHENTICATION_FAILURE for any username and password.
Someone has to write authentication code for FreeBSD.
comment:3 by , 4 years ago
Please retry with 6.1.18
.
https://www.freshports.org/emulators/virtualbox-ose-additions/#history
Has anyone looked at this ticket? I have just started using a FreeBSD 12 as a VM and have exactly the same problem. To be clear: I am sure that the user and password being given are correct because I can SSH to the VM. I am using virtualbox-ose-additions-nox11-5.2.22_2.
Is this a bug in the pkg, such as it requires a particular user?