error in installing guest addition

This is for discussing general topics about how to use VirtualBox.
Post Reply
mahmood
Posts: 29
Joined: 26. May 2010, 09:24
Primary OS: Ubuntu 8.04
VBox Version: OSE Debian
Guest OSses: windows

error in installing guest addition

Post by mahmood »

dear all
I installed lubuntu 11.04 as guest on a win 7 as host. The version of virtualbox is 4.0.8
The problem is when I want to install guest addition I get an error

Code: Select all

mahmood@pc:/media/VBOXADDITIONS_4.0.8_71778$ ./autorun.sh
/usr/bin/xterm Xt error: can't open display:
/usr/bin/xterm: DISPLAY is not set
any idea to fix that?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: error in installing guest addition

Post by Perryg »

mahmood
Posts: 29
Joined: 26. May 2010, 09:24
Primary OS: Ubuntu 8.04
VBox Version: OSE Debian
Guest OSses: windows

Re: error in installing guest addition

Post by mahmood »

Nothing changed. It is stated that for older version of VB, i should edit xorg.conf.
As I said, I use lubuntu which use lxdm. There is no xorg.conf and I don't know how much important it is for VB 4.0.8
As far as I remember, I didn't have such problem with lubuntu 10.10.

any comment?
mahmood
Posts: 29
Joined: 26. May 2010, 09:24
Primary OS: Ubuntu 8.04
VBox Version: OSE Debian
Guest OSses: windows

Re: error in installing guest addition

Post by mahmood »

Well...
Instead of ./autorun.sh I did

Code: Select all

sh VBoxLinuxAdditions.run
and there was no problem.

Code: Select all

[b]root@pc:/media/VBOXADDITIONS_4.0.8_71778# sh VBoxLinuxAdditions.run [/b]
Verifying archive integrity... All good.
Uncompressing VirtualBox 4.0.8 Guest Additions for Linux.........
VirtualBox Guest Additions installer
Removing existing VirtualBox DKMS kernel modules ...done.
Removing existing VirtualBox non-DKMS kernel modules ...done.
Building the VirtualBox Guest Additions kernel modules ...done.
Doing non-kernel setup of the Guest Additions ...done.
Starting the VirtualBox Guest Additions ...done.
Installing the Window System drivers
Installing X.Org Server 1.10 modules ...done.
Setting up the Window System to use the Guest Additions ...done.
You may need to restart the hal service and the Window System (or just restart
the guest system) to enable the Guest Additions.

Installing graphics libraries and desktop services components ...done.
it is now fixed :D
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: error in installing guest addition

Post by Sasquatch »

mahmood wrote:Nothing changed. It is stated that for older version of VB, i should edit xorg.conf.
As I said, I use lubuntu which use lxdm. There is no xorg.conf and I don't know how much important it is for VB 4.0.8
As far as I remember, I didn't have such problem with lubuntu 10.10.

any comment?
Yes, I have a comment. You didn't read the howto properly. There are clear notes that the xorg config is NOT required for newer versions of Linux. Nor did you properly read what command you had to use to install the GA.
mahmood wrote:Well...
Instead of ./autorun.sh I did

Code: Select all

sh VBoxLinuxAdditions.run
and there was no problem.

it is now fixed :D
See, that's after you actually start reading. Taking a long piece of text for granted and not trying to understand it and take your time while it's in the tutorials section is disrespectful towards the writer. Since you found the proper way, I forgive you. I hope you don't do things like this in normal life when you're in a hurry, you could get burned one day.

Take care.
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.
Post Reply