Problem about Guest Addition installing in openSUSE 11

Discussions about using Linux guests in VirtualBox.
zijay
Posts: 2
Joined: 13. Sep 2008, 13:48

Problem about Guest Addition installing in openSUSE 11

Post by zijay »

Dear all:

Excuse me, I have searched much materials in google.

But I still cannot find what's the solution ? :(

Currently, I have installed the openSUSE 11 KDE4 in VirtualBox1.6.6 as guest OS and my host OS is Windows Vista Business SP1. After installing the openSUSE 11, I try to install the guest addition. :)

Before installing the guest addition, I have also installed the needed packages such as kernel-source, kernel-header, gcc, and kernel-syms.

According to the materials from google, I also set the environment variables KERN_INCL=/usr/include

After completing above prerequisite, I start installing the guest addition by following command:

sudo ./VBoxLinuxAdditions.run

But something error generated in console as follows.

Building a test kernel module failed. See the log file /var/log/vboxadd-install.log for more details.
Problems were found which would prevent the Guest Additions from installing.
Please correct these problems and try again.


I also check the log file but I confused the error messages as follows.
-----------------------------------------------------------
Building a test kernel module..
Makefile:38: *** Error: unable to find the include directory for your current Linux Kernel. Specify KERN_INCL=<directory> and run Make again. Stop.
Building the test kernel module failed.
-----------------------------------------------------------

I don't understand why /usr/include cannot be finded@@

Any where I make mistake? Please help me !!! :?

Thanks. :cry:
stefan.becker
Volunteer
Posts: 7639
Joined: 7. Jun 2007, 21:53

Post by stefan.becker »

Try again, but dont set "KERN_INCL=/usr/include"!!!.

If that doesnt work, post Output from "rpm -qa | grep kernel" und "rpm -qa | grep gcc".
DudeBoyz
Posts: 65
Joined: 13. Sep 2008, 09:01

Post by DudeBoyz »

So in order to get Guest Additions to work with OpenSuse 11, you have to do some manual tweaking?

I've been trying Virtual Box 2.0.0 and now 2.0.2 and with Mandriva 2009 RC1, installing Guest Additions via the menu seems to work, but not with OpenSuse 11.

I really do wish that the entire Guest Additions setup would be updated to include more useful and informative "status" information.

Even with it already working in Mandriva 2009 RC1, the DEVICES menu still lists "INSTALL GUEST ADDITIONS" as an option. Shouldn't it be greyed out or something? Or at least if you click on it, pop up with a dialog saying "Hey, it's already installed, n00b"?

Even when I first installed it, I don't think it gave me any active feedback. It didn't say "Make sure you mount the vBoxGuestAdditions.iso file and press NEXT to continue..." or anything like it.

No progress bar, no indicator that it was installed successfully - nada.

No wonder it's so confusing.

Anyway, I'm pretty much a Linux novice and used to use Parallels on my 24 inch iMac before I got rid of the machine (I just can't deal with apple machines - they are not for me. I tried, but nope, they ain't for me.)

I really do hope they find a way to make GuestAdditions more idiot proof for idiots like me. :)
stefan.becker
Volunteer
Posts: 7639
Joined: 7. Jun 2007, 21:53

Post by stefan.becker »

Guest Additions works with Suse 11. Yo are making something wrong.
DudeBoyz
Posts: 65
Joined: 13. Sep 2008, 09:01

Post by DudeBoyz »

stefan.becker wrote:Guest Additions works with Suse 11. Yo are making something wrong.
I'd like to learn how to do this correctly and if you could / would help, I would appreciate it.

My situation is as follows:

Using VirtualBox 2.0.2
Windows XP Home 32 bit SP2
openSUSE-11.0-DVD-i386.iso (4,602,126,336 bytes)

In the VirtuaBox program, I do the following:

Click the NEW icon
For name I type in SUSE11
OS Type is openSUSE
Click NEXT button
Set Base Memory Size to 1024 (it's a 3gb host)
Click NEXT button
Virtual Hard Disk I click NEW
Disk Wizard dialog I click NEXT
Leave default image type (Dynamic) and click NEXT
Location set to E:\Vbox\SUSE11.VDI
Image defaults to 8.00 GB - set to 16 GB
Click NEXT button
Click FINISH button
Leave Boot Hard Drive (Primary Master) to default
Click NEXT
Click FINISH

Now, the VM shows up. I click on SETTINGS
Set Video Memory Size to 32 mb instead of 8 mb default
Under CD/DVD-ROM I click Mount CD/DVD Drive
I select ISO Image File
Click the Virtual Dis Manager button
I click ADD and choose openSUSE-11.0-DVD-i386.iso
I click SELECT

I leave all other defaults alone and click the OK button

SUSE11 shows up as Powered Off - I click START

The rest is the normal installation choice and I stick with defaults.. If you would like more detail as the exact prompts chosen in the install, please let me know and I'll try to type them in a follow-up message. It's a New install, set to Pacific Time Zone, KDE 4.0. Defaults on drives/partition. Username, passwords.

It goes forward "Preparing Your Hard Drive" and I follow any prompts.

Clicked INSTALLATION when prompted instead of boot from disk.

I'll put the after install steps in a soon-to-come post.

Thanks


CRUD - it won't finish the install. Rebooted 5 times right near the end of the process.

I give up for now. :(
zijay
Posts: 2
Joined: 13. Sep 2008, 13:48

Problem about Guest Addition installing in openSUSE 11

Post by zijay »

Reply to stefan.becker:

Oh, as your opinion, I tried again and dont set the KERN_INCL

Everything seems ok!!!
I have installed the Guest Additions in openSUSE 11 successfully.
Thanks !!! :D

But I have forget why I try to set the KERN_INCL :P
Maybe some wrong materials from google. @@"

Anyway, thanks for you help :lol:

Reply to DudeBoyz:

I dont understand what's your problem @@

Seems that you also try to install the guest additions in openSUSE11 after installing it in Mandriva 2009 RC1 successfully, right ?

Maybe you can describe the problem more detailed.

Thanks.
DudeBoyz
Posts: 65
Joined: 13. Sep 2008, 09:01

Re: Problem about Guest Addition installing in openSUSE 11

Post by DudeBoyz »

zijay wrote:Reply to DudeBoyz:

I dont understand what's your problem @@

Seems that you also try to install the guest additions in openSUSE11 after installing it in Mandriva 2009 RC1 successfully, right ?

Maybe you can describe the problem more detailed.

Thanks.
It is kind of weird. Mandriva 2009 RC1 installs properly every single time I try in VirtualBox using the DVD ISO of that distribution. Then, when I change the mounting to the Guest Addition ISO and choose to install it from the menu, it does seem to install - it just doesn't give me much feedback during the process. But at the end, it does seem that the functions Guest Addition is supposed to provide are present and I can use the mouse seemlessly between the VBox VM and the host XP OS, and I can drag / resize the window of the Mandriva install no sweat.

Once the Guest Additions are installed though, the option should be DISABLED / GRAYED OUT on the Devices menu. It should not be able to be clicked on again, imo. If the install works, just say so somewhere and do not allow n00bs like me to even be able to click on the same command again, cause there should be no need to. If it's installed, disable the menu and have a status pop up like "ALREADY INSTALLED".

Also - I don't like that little "icon thing" in the upper-right corner of the screen. You know, the thing that when you click on it, it says that you can:

Add Widgets
Zoom Out
Lock Widgets

I'd like to be able to completely disable that annoying little feature.

But it's openSUSE 11 that is causing me the headaches.

I've only been able to complete a successful install in VBox two times. When that is all said and done, and unmount the Suse DVD ISO and then mount the Guest Addition ISO then try to install the Guest Addition it starts doing whatever it does and then just hangs there. I check the options and all I see is "Cancel the install".

It's like it's just stuck. I'm not sure what is going on there.

When I was doing Parallels on the iMac, I could get Suse 10.3 to install perfectly, but I could never get Mandriva to install.

Now I have the opposite problem on the Windows platform with VBox.

Mandriva is really the one I want to goof around with because it has the most up-to-date software like FireFox 3.x and Open Office 3.x

VMware Workstation installs Suse ok, but not Mandriva. Man, how wacky.

As for more details, I provided a lot leading up to the SUSE install, but I just could not get the install to finish and reach the point where I'm trying to install VirtuaBox.

I'll keep trying, but maybe not tonight. I need a break from the frustration. :)
stefan.becker
Volunteer
Posts: 7639
Joined: 7. Jun 2007, 21:53

Post by stefan.becker »

Be more exact!

How exact start you the installation? Whart exact messages come?
DudeBoyz
Posts: 65
Joined: 13. Sep 2008, 09:01

Post by DudeBoyz »

stefan.becker wrote:Be more exact!

How exact start you the installation? Whart exact messages come?
So the post I made above outlining the specific steps I took is not providing enough detail, is that correct?

I thought I was doing a pretty good job of showing the step-by-step way in which I was trying to install, but perhaps I need to try again.

Was the list of steps I entered earlier in this thread simply not helpful to you at all? Should I simply disregard all of that information and try again from scratch?

I outlined the steps I followed to try and create a VM based on OpenSuse 11, but this time, when following those steps, the OpenSuse 11 installation kept restarting instead of completing the install.

Perhaps I should create a GHOST backup of my existing boot partition and then format the drive and install Windows XP Home SP2 from scratch so that I can minimize the number of varaibles that could be affecting the installation. Would that be a helpful step?

I do apologize if I'm not communcating well. I am trying to process what you are saying, but I'm having a little trouble in getting it clear in my mind what actions I could take that would satisfy your expectations.

If helping me is turning out to be too frustrating for you, please let me know and I'll not impose further on your time.

Thank you for the help you did try to provide. I do indeed appreciate the effort.
DudeBoyz
Posts: 65
Joined: 13. Sep 2008, 09:01

Re: Problem about Guest Addition installing in openSUSE 11

Post by DudeBoyz »

zijay wrote:Dear all:

Excuse me, I have searched much materials in google.

But I still cannot find what's the solution ? :(

Currently, I have installed the openSUSE 11 KDE4 in VirtualBox1.6.6 as guest OS and my host OS is Windows Vista Business SP1. After installing the openSUSE 11, I try to install the guest addition. :)

Before installing the guest addition, I have also installed the needed packages such as kernel-source, kernel-header, gcc, and kernel-syms.

According to the materials from google, I also set the environment variables KERN_INCL=/usr/include

After completing above prerequisite, I start installing the guest addition by following command:

sudo ./VBoxLinuxAdditions.run
I think I just had an epiphany

You indicated that you "installed the needed packages such as kernel-source, kernel-header, gcc, and kernel-syms"

When I installed openSUSE 11, I just did a simple default install. I did not do any additional installations of any other packages.

Is it possible that because I stuck with the DEFAULT install of openSUSE 11, that the additional software that you referenced above was not present and therefore Guest Additions could not install itself?

That without those additional installs, Guest Additions simply will not work?

If so, that could explain my problem and my frustration.

Is there an option included with openSUSE 11 setup that would automatically install all of those needed support files/libraries/etc? One that would be like "Install everything to your local drive" so that when I mounted and tried to install Guest Additions, it would be able to find all the support files it would need to complete the installation?

Thank you.

UPDATED INFORMATION: I just did a fresh install of Mandriva 2009 RC1 from withing VirtualBox 2.0.2.

I used only the default options and made no changes at all.

As soon as the installation was finished, it seems as though the Guest Additions were ALREADY installed and functional.

I did not initiate the install, mount or unmount any ISO's.

I just did a fresh, default install and everything is working as I would expect if I had manually done a successful installation of Guest Additions.

I am a bit confused as to why the same thing does not seem to happen with openSUSE 11 when I install it under the same 2.0.2 version of Virtual Box.

I hope this information helps make my posts seem a bit more sensible. :)

Thank you for any assistance that has been given to me. I do appreciate it.
KIAaze
Posts: 8
Joined: 10. Mar 2009, 17:27

Re: Problem about Guest Addition installing in openSUSE 11

Post by KIAaze »

Just wanted to say, I wasted a lot of time with the guest OS installation too.

Ubuntu worked almost out of the box.
On Debian, I had to build the debian package for dkms manually and then install it.
But openSUSE 11.1 took me the longest to get working... :/

In case anybody else gets the error about KERN_INCL:
Makefile:38: *** Error: unable to find the include directory for your current Linux Kernel. Specify KERN_INCL=<directory> and run Make again. Stop.
Solution: Just make sure you upgrade your kernel on the guest machine! :)

1)Install the necessary dependencies:

Code: Select all

sudo zypper install gcc make automake autoconf kernel-source
2)Install dkms.
You can search for it here: http://software.opensuse.org/search and then use the one-click install or the rpm.

3)Upgrade your kernel.
The goal is to have the same running kernel version as the kernel source version.
To get the running kernel version:

Code: Select all

uname -a
To get the kernel source version:

Code: Select all

ls /usr/src
In my case for example:

Code: Select all

joe@linux-f1mx:~> uname -a
Linux linux-f1mx 2.6.27.19-3.2-default #1 SMP 2009-02-25 15:40:44 +0100 i686 i686 i386 GNU/Linux
joe@linux-f1mx:~> ls /usr/src/
debug  linux  linux-2.6.27.19-3.2  linux-2.6.27.19-3.2-obj  linux-obj  packages  vboxadd-2.1.4  vboxvfs-2.1.4
4)Mount the VBoxguestAdditions.iso

5)Install the guest OS stuff:

Code: Select all

cd /media/VBOXADDITIONS_2.1.4_42893-1
sudo sh VBoxLinuxAdditions-x86.run
P.S: Thanks to the VirtualBox developers for this great tool. :)
Requires lots of RAM, but it's worth it. :)
lkoepke
Posts: 8
Joined: 22. Jul 2009, 01:08
Primary OS: MS Windows Vista
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: SuSe 11.1 Open 32 bit

Re: Problem about Guest Addition installing in openSUSE 11

Post by lkoepke »

I have installed the current VB (3.0.2r49928) on a new Sony VAIO Z270D/B Vista Business Professional laptop. I have installed openSUSE 11.1 as my only Virtual Machine. I have followed the above instructions to install the GuestAdditions. I still get the KERN_INCL error message regarding the include directory. After first getting the error message I set KERN_INCL=/usr/include. Still no joy. The results of the above commands for system state are:

kernel-source-2.6.27.23-0.1.1
linux-kernel-headers-2.6.27-2.28
kernel-default-base-2.6.27.7-9.1
kernel-default-2.6.27.7-9.1
kernel-default-extra-2.6.27.7-9.1

gcc43-gij-4.3.3_20081022-9.2
gcc-gij-4.3-34.168
libgcc43-4.3.3_20081022-9.5
gcc43-info-4.3.3_20081022-9.5
gcc-c++-4.3-34.168
gcc43-4.3.3_20081022-9.5
gcc-4.3-34.168
gcc-info-4.3-34.168
gcc43-c++-4.3.3_20081022-9.5

I would very much like the guest additions to work, as the screen is very small on this 13" laptop.

In addition to this problem, I must start the suse virtual machine about 8 times before it finally boots. It will get to the boot sequence up to init.rd, then the screen usually goes black and I must start over. Normal boot or failsafe boot produce the same behavior. But, at least it boots eventually.
fixedwheel
Volunteer
Posts: 1699
Joined: 13. Sep 2008, 02:18

Re: Problem about Guest Addition installing in openSUSE 11

Post by fixedwheel »

lkoepke wrote:kernel-source-2.6.27.23-0.1.1
linux-kernel-headers-2.6.27-2.28
kernel-default-base-2.6.27.7-9.1
kernel-default-2.6.27.7-9.1
kernel-default-extra-2.6.27.7-9.1
kernel-source and kernel-default version numbers has to match, and linux-kernel-headers-2.6.27-2.28 is probably too old for ...-2.6.27.23-0.1.1

read here, until page 2 :arrow: http://forums.virtualbox.org/viewtopic.php?f=3&t=18602
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: Problem about Guest Addition installing in openSUSE 11

Post by Sasquatch »

Don't forget to check my howto first: Howto: Install Linux Guest Additions + Xorg config.
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.
lkoepke
Posts: 8
Joined: 22. Jul 2009, 01:08
Primary OS: MS Windows Vista
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: SuSe 11.1 Open 32 bit

Re: Problem about Guest Addition installing in openSUSE 11

Post by lkoepke »

Thank you, fixedwheel, for aiding my education. I have successfully added the GuestAdditions, and recompiled them. I now have a window larger than 7 1/2", which is much easier to read.

However, I still have problems with using the feature, as I cannot seem to get the proper resolution. I tried deleting references to mode in xorg.conf, and screen preferences, and ended up in terminal mode only. I ran sax2 from terminal mode, and got my graphics back, but in 1280x1024, which is easy to read, but requires much vertical scrolling on my laptop. I do not have an automatic resizing; in fact, I no longer have widows resizing or moving *with* the cursor... they snap to the cursor ( along with some other strange behaviors that are workable, but uncomfortable).

My current kernel values:
kernel-source-2.6.27.25-0.1.1
kernel-default-base-2.6.27.25-0.1.1
linux-kernel-headers-2.6.27-2.28
kernel-default-2.6.27.25-0.1.1
kernel-default-extra-2.6.27.25-0.1.1

my current relevent xorg.conf values, where I replaced "default" with "1600x900" in a failed attempt to achieve proper resolution:
Section "Monitor"
Option "CalcAlgorithm" "XServerPool"
DisplaySize 305 230
HorizSync 54-57
Identifier "Monitor[0]"
ModelName "1600X900@60HZ"
Option "DPMS"
VendorName "--> LCD"
VertRefresh 59-61
UseModes "Modes[0]"
EndSection


Section "Modes"
Identifier "Modes[0]"
EndSection


Section "Screen"
SubSection "Display"
Depth 15
Modes "1600x900"
EndSubSection
SubSection "Display"
Depth 16
Modes "1600x900"
EndSubSection
SubSection "Display"
Depth 24
Modes "1600x900"
EndSubSection
SubSection "Display"
Depth 8
Modes "1600x900"
EndSubSection
Device "VirtualBox graphics card"
Identifier "Screen[0]"
Monitor "Monitor[0]"
EndSection

SaX2 via Yast2 only gives me "Card: VESA FrameBufferGraphics" with no choice to select another (i.e. VirtualBox graphics card", which I added manually to xorg.conf"). There is no 1600x900 resolution to select in SaX2.

I am sorry if this is not the relevant place to post this, or if I post to much information, but it is related to my prior post and I am at a loss... I am closer thanks to your help, but have a ways to go. (BTW, the virtual machine now boots regularly with the kernel updates... in fact I did a fairly complete online update).
Post Reply