Page 1 of 2

VirtualBox Guest Additions

Posted: Mon May 29, 2017 12:33 pm
by mechanic
Is the older procedure for installing Guest Additions still relevant? This involves installing the virtualbox-ose-additions package/port, then adding a couple of lines to /etc/rc.conf

Code: Select all

vboxguest_enable="YES"
vboxservice_enable="YES"
I ask because with this new install of GhostBSD 10.3 from a fresh .iso file, into VirtualBox running on Windows 10, the virtual machine window behaves just as it would with GA installed (switching between full screen and windowed desktop for instance). My aim here is to enable file sharing with a Windows share, but I can't get this to work for some reason, although others have reported it possible using a line like:

Code: Select all

# mount_smbfs -I 192.168.56.1 //<NETBIOS NAME>/<SHARENAME> <MOUNT POINT>
Any advice?

Re: VirtualBox Guest Additions

Posted: Mon May 29, 2017 2:32 pm
by ASX
Hi,

Yes, using shared folders require that guest additions are installed in the guest OS.
https://www.virtualbox.org/manual/ch04. ... redfolders

~~~

Vbox support in FreeBSD (and therefore in GhostBSD) is lacking, FreeBSD is not an officially supported platform, I myself have been an avid Vbox user in Linux, but not anymore on GhostBSD.

Re: VirtualBox Guest Additions

Posted: Thu Jun 01, 2017 6:04 am
by mechanic
Well I installed the virtualbox-ose-additions port - which incidentally included a LOT of extra download including the full kernel - which apparently lead to a more stable system than installing the package did. BUT still no joy in getting the share working with the Windows host - has anyone succeeded with this (using the mount line referred to above or similar) and could they share any more detail?

Re: VirtualBox Guest Additions

Posted: Thu Jun 01, 2017 7:36 am
by ASX
mechanic wrote:Well I installed the virtualbox-ose-additions port - which incidentally included a LOT of extra download including the full kernel
I cannot make sense of what you wrote. There is no way a new kernel can be installed as part of a package install or a port install.

Anyway, for your info:
packages, as shipped in a default GhostBSD install, are fetched from "quarterly" repository. (as opposed to "latest" repository).

"ports", as obtained from "portsnap fetch extract" refer to the "head" branch of ports repository, which can be considered (nearly) in sync with "latest" repository.

It is strongly advised to not mix "ports" and "packages", this is especially true when they are out of sync, like in the case of pkgs quarterly repo vs. head branch of ports.

~~~

Is networking working properly between host and guest ?
can you ping the host from the guest ?
can you ping the guest from the host ?

Re: VirtualBox Guest Additions

Posted: Thu Jun 01, 2017 2:05 pm
by adripillo12
ASX wrote:
mechanic wrote:Well I installed the virtualbox-ose-additions port - which incidentally included a LOT of extra download including the full kernel
It is strongly advised to not mix "ports" and "packages", this is especially true when they are out of sync, like in the case of pkgs quarterly repo vs. head branch of ports.
This it is very important, as he is saying. I destroyed versions of differents BSDs by doing this. If you go packages I recommend you to stay with it, do not mix.

Re: VirtualBox Guest Additions

Posted: Thu Jun 01, 2017 4:12 pm
by mechanic
ASX wrote:
mechanic wrote:Well I installed the virtualbox-ose-additions port - which incidentally included a LOT of extra download including the full kernel
I cannot make sense of what you wrote. There is no way a new kernel can be installed as part of a package install or a port install.
Difficult to be brief and clear. When I ran 'make' in the port directory, it stopped pretty quickly with the instruction to download the kernel source into some src directory. After all that during the 'make' operation several dependencies were also installed. Hope that's now clear enough.
Anyway, for your info:
packages, as shipped in a default GhostBSD install, are fetched from "quarterly" repository. (as opposed to "latest" repository).

"ports", as obtained from "portsnap fetch extract" refer to the "head" branch of ports repository, which can be considered (nearly) in sync with "latest" repository.

It is strongly advised to not mix "ports" and "packages", this is especially true when they are out of sync, like in the case of pkgs quarterly repo vs. head branch of ports.

~~~

Is networking working properly between host and guest ?
can you ping the host from the guest ?
can you ping the guest from the host ?
OK, I tried again with just packages (actually just the one on top of the basic 10.3 install) but with no luck. Networking doesn't seem to be working, no shares appear in the Windows Network tab/folder in the file manager. smb services don't appear to be installed? I'll try pinging host/guest later when I have some free time.

Re: VirtualBox Guest Additions

Posted: Thu Jun 01, 2017 4:25 pm
by ASX
mechanic wrote: Difficult to be brief and clear. When I ran 'make' in the port directory, it stopped pretty quickly with the instruction to download the kernel source into some src directory. After all that during the 'make' operation several dependencies were also installed. Hope that's now clear enough.
Yes, that make sense, building virtualbox-ose-additions require kernel sources, because it make use of some kernel data structure. (and kernel sources are an optional component of FreeBSD/GhostBSD os).
But that doesn't touch the installed/running kernel. ;)

Re: VirtualBox Guest Additions

Posted: Fri Jun 02, 2017 6:07 am
by mechanic
Today the same problem. I can ping both the guest (G-BSD) from the Windows machine and windows from the Guest system. The response to the mount_smb command is "unable to open connection: syserror = operation timed out"

Re: VirtualBox Guest Additions

Posted: Fri Jun 02, 2017 10:43 am
by adripillo12
mechanic wrote:Today the same problem. I can ping both the guest (G-BSD) from the Windows machine and windows from the Guest system. The response to the mount_smb command is "unable to open connection: syserror = operation timed out"
Could you please put the full command line that you are using?

Re: VirtualBox Guest Additions

Posted: Fri Jun 02, 2017 11:28 am
by mechanic
adripillo12 wrote:
Could you please put the full command line that you are using?
Sure:

Code: Select all

# mount_smbfs -I 192.168.56.1  //user@RASPBERRY/sharing /mnt/shares
plus the obvious variations like changing the case of the netbios name, leaving out the username, missing out or providing the password on demand...