[SOLVED] VBoxAdditions : Could not find the X.Org or XFree86

Discussions related to using VirtualBox on Windows hosts.
Locked
steph33560
Posts: 3
Joined: 23. Jul 2010, 16:04
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Ubuntu

[SOLVED] VBoxAdditions : Could not find the X.Org or XFree86

Post by steph33560 »

Hi,

I've got a windows host, running an ubuntu (ubuntu server amd64) O/S with Virtualbox.

To share folders from win32 host, I must install VBoxLinuxAdditions to be able to share my folders using vboxfs.
So, when Virtuabox Addons iso mounted :
$ sudo mount -o loop VBoxGuestAdditions.iso VBoxGuestAdditions/
I run :
$ sudo sh VBoxLinuxAdditions-amd64.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 3.2.6 Guest Additions for Linux.........
VirtualBox Guest Additions installer
Removing installed version 3.2.6 of VirtualBox Guest Additions...
tar: Taille de l'enregistrement = 8 blocs
Building the VirtualBox Guest Additions kernel modules
Building the main Guest Additions module ...done.
Building the shared folder support module ...done.
Building the OpenGL support module ...done.
Doing non-kernel setup of the Guest Additions ...done.
Starting the VirtualBox Guest Additions ...done.
Installing the Window System drivers ...fail!
(Could not find the X.Org or XFree86 Window System.)
Here is the problem : my linux guest does not have any X environment
So, I'd look at Xming X Server, using "enable X11 forwarding" to 127.0.0.1:0.0 on windows host.
It does not work :?

If I run xterm, it loads in my XMing server on the win32 host, OK.
But when I launch the same command in the xterm x-window, I always have the same message :|

Any idea to simply install vboxfs module ?

Thanks
Last edited by steph33560 on 24. Jul 2010, 14:24, edited 1 time in total.
Perryg
Site Moderator
Posts: 34370
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VBoxLinuxAdditions : Could not find the X.Org or XFree86

Post by Perryg »

Ubuntu server does not have the xserver installed by default. It is all command line driven unless you have installed it yourself.
You need to run the guest additions with the --nox11 switch to get it to install the other features, or install xserver in the guest.
steph33560
Posts: 3
Joined: 23. Jul 2010, 16:04
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Ubuntu

Re: VBoxLinuxAdditions : Could not find the X.Org or XFree86

Post by steph33560 »

Exact, having a look into the .run file make me discover a --nox11 flag...but...
$ sudo bash VBoxLinuxAdditions-amd64.run --nox11
Verifying archive integrity... All good.
Uncompressing VirtualBox 3.2.6 Guest Additions for Linux.........
VirtualBox Guest Additions installer
Removing installed version 3.2.6 of VirtualBox Guest Additions...
tar: Taille de l'enregistrement = 8 blocs
Building the VirtualBox Guest Additions kernel modules
Building the main Guest Additions module ...done.
Building the shared folder support module ...done.
Building the OpenGL support module ...done.
Doing non-kernel setup of the Guest Additions ...done.
You should restart your guest to make sure the new modules are actually used

Installing the Window System drivers ...fail!
(Could not find the X.Org or XFree86 Window System.)
OK, no matters !
$ sudo lsmod |grep vbox
vboxsf 34260 0
vboxguest 175131 2 vboxsf
$ sudo modprobe vboxsf
$ sudo mount -t vboxsf //<<HOST_IP>>/Share /media/Share/
/sbin/mount.vboxsf: mounting failed with the error: Protocol error
:shock: :? :cry:
Perryg
Site Moderator
Posts: 34370
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VBoxLinuxAdditions : Could not find the X.Org or XFree86

Post by Perryg »

Please read Chapter 4.3. Shared folders in your VirtualBox users manual.

mount -t vboxsf [-o OPTIONS] sharename mountpoint

The shared folder of VirtualBox is between the host and the guest only. <ip address> does not come into the picture at all.
Sasquatch
Volunteer
Posts: 17800
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: VBoxLinuxAdditions : Could not find the X.Org or XFree86

Post by Sasquatch »

Just for references, both questions are answered in my howtos:
Howto: Install Linux Guest Additions + Xorg config
Howto: Use Shared Folders
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
steph33560
Posts: 3
Joined: 23. Jul 2010, 16:04
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Ubuntu

Re: VBoxLinuxAdditions : Could not find the X.Org or XFree86

Post by steph33560 »

I did not RTFM ;), because I had to go :oops: :oops: This is the right syntax :

Code: Select all

sudo mount -t vboxsf Share /media/Share/

Thanks guys, it works, it's magic :)
Locked