VirtualBox Guest Additions

Questions about the installation of FreeBSD

VirtualBox Guest Additions

Postby mechanic » Mon May 29, 2017 11:33 am

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?
mechanic
 
Posts: 9
Joined: Sun Dec 13, 2015 12:54 pm
Has thanked: 0 time
Been thanked: 0 time

VirtualBox Guest Additions


Re: VirtualBox Guest Additions

Postby ASX » Mon May 29, 2017 1:32 pm

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.
ASX
Developer
 
Posts: 970
Joined: Wed May 06, 2015 11:46 am
Has thanked: 58 times
Been thanked: 130 times

Re: VirtualBox Guest Additions

Postby mechanic » Thu Jun 01, 2017 5:04 am

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?
mechanic
 
Posts: 9
Joined: Sun Dec 13, 2015 12:54 pm
Has thanked: 0 time
Been thanked: 0 time

Re: VirtualBox Guest Additions

Postby ASX » Thu Jun 01, 2017 6:36 am

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 ?
ASX
Developer
 
Posts: 970
Joined: Wed May 06, 2015 11:46 am
Has thanked: 58 times
Been thanked: 130 times

Re: VirtualBox Guest Additions

Postby adripillo12 » Thu Jun 01, 2017 1:05 pm

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.
adripillo12
 
Posts: 52
Joined: Wed Sep 25, 2013 6:04 am
Has thanked: 0 time
Been thanked: 0 time

Re: VirtualBox Guest Additions

Postby mechanic » Thu Jun 01, 2017 3:12 pm

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.
mechanic
 
Posts: 9
Joined: Sun Dec 13, 2015 12:54 pm
Has thanked: 0 time
Been thanked: 0 time

Re: VirtualBox Guest Additions

Postby ASX » Thu Jun 01, 2017 3:25 pm

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. ;)
ASX
Developer
 
Posts: 970
Joined: Wed May 06, 2015 11:46 am
Has thanked: 58 times
Been thanked: 130 times

Re: VirtualBox Guest Additions

Postby mechanic » Fri Jun 02, 2017 5:07 am

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"
mechanic
 
Posts: 9
Joined: Sun Dec 13, 2015 12:54 pm
Has thanked: 0 time
Been thanked: 0 time

Re: VirtualBox Guest Additions

Postby adripillo12 » Fri Jun 02, 2017 9:43 am

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?
adripillo12
 
Posts: 52
Joined: Wed Sep 25, 2013 6:04 am
Has thanked: 0 time
Been thanked: 0 time

Re: VirtualBox Guest Additions

Postby mechanic » Fri Jun 02, 2017 10:28 am

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...
mechanic
 
Posts: 9
Joined: Sun Dec 13, 2015 12:54 pm
Has thanked: 0 time
Been thanked: 0 time

Next

Return to Installing GhostBSD

Who is online

Users browsing this forum: No registered users and 2 guests