Page 1 of 3

Problems with Ubuntu 10.04 Guest

Posted: 30. Apr 2010, 22:29
by TrotskyIcepick
Have installed VirtualBox 3.1.6 on Windows Vista SP2, and created a VM running a Ubuntu 10.04 guest OS.

After installing the Guest Additions without any problems, I have configured a shared folder as follows:

ShareName : linuxdownloads
Path : e:\downloads\Linux

in Ubuntu /etc/fstab file added following: mount -t vboxsf -o uid=1000,gid=1000 linuxdownloads /home/andrew/Downloads

Whilst the guest boots it seems to have displayed the help information for the mount command, before giving an error stating "Filesystem could not be mounted: -t"

I can find no other errors relating to this (it looks like it's trying to mount a filesystem called -t ???)

If I run the identical command line in a terminal using sudo it works just fine.

Also, as a seperate issue, if I try to run the guest in Full Screen mode it just freezes (the mouse still works, but clicking on anything does nothing), and will only work again if I take it out of full screen mode.

I am desperate to get this working, (I had a previous version of VBox running Ubuntu 9.10, with some irritating issues, but otherwise fine).

Any ideas would be very greatly appreciated.

Thanks In Advance
Andrew Jones

PS. To both the VirtualBox and Ubuntu developers.....keep up the good work, both systems are individually excellent, and being opensource are the best value no money can buy :lol:

Re: Problems with Ubuntu 10.04 Guest

Posted: 1. May 2010, 00:26
by Perryg
Using fstab to mount the share is the problem. That gets mounted before the VBox service is running. Put it in the rc.local file instead.

Re: Problems with Ubuntu 10.04 Guest

Posted: 1. May 2010, 00:45
by dewittdale
This is a different issue but has a remote relationship. I setup 10.04 on XP twice and confirmed that out of the box network functionality using smb4k as the gui is broke. Just doesn't work whereas 8.04 is fine with smb4k. Gnome has always been bad either way. Manual labor is the name of the game there.

The shares are available and show up in 8.04 but smb4k shows only the host IP under MShome. No children shares so to speak. It's gotta work out of the box otherwise it's trash. Needless to say all the bridge network settings are covered. You said any ideas so sorry for the specific lack there of.

Re: Problems with Ubuntu 10.04 Guest

Posted: 1. May 2010, 15:40
by TrotskyIcepick
No probs dewit (have to admit, you lost me though :? )

PerryG, will try that, though I'm slightly confused as putting the mount in fstab worked fine with Ubuntu 9.10 as guest?

Thanks for the replies.

Andrew

Re: Problems with Ubuntu 10.04 Guest

Posted: 1. May 2010, 15:47
by Perryg
I know. It used to work because the OS failed the first time and then after the VBoxsvc was loaded it tried again. Some people could work with it that way but things have changed in the Linux OS and in VBox. Placing the mount in rc.local will fix the issue.
Also you will need to make the rc.local active. Look at the top line (they all are commented out) Take the # out of the first line to make it run.
Be sure that you put the mount statement above the last line (exit 0) to keep the script from hanging.

Re: Problems with Ubuntu 10.04 Guest

Posted: 1. May 2010, 16:03
by TrotskyIcepick
Thanks perryg, just put it in /etc/init.d/rc.local and it works just fine :D

Now, just the problem of Ubuntu seeming to freeze when switched to full screen mode.

Well actually, I just found that's not strictly true, it's just that everything seems to be running INCREDIBLY slowly, so takes a long, long time for any actions to take effect. Again, this wasn't an issue with previous versions of Vbox and Ubuntu 9.10. I have given the VM access to 128Mb of video RAM and enabled 3D acceleration, also given the VM 1500Mb of RAM and access to two CPU's.

Hope I can get this working as Ubuntu is a beautiful OS, and I don't want to go back to VMWare Server!!!

Thanks again.
Andrew

Re: Problems with Ubuntu 10.04 Guest

Posted: 1. May 2010, 16:12
by Perryg
Thanks perryg, just put it in /etc/init.d/rc.local and it works just fine
Should be in /etc/rc.local not /etc/init.d/rc.local. I have no idea what problems this might cause even though you say it works.
For the full screen issues causing lockups, look at compiz for compatibility settings.

Re: Problems with Ubuntu 10.04 Guest

Posted: 2. May 2010, 01:46
by TrotskyIcepick
Tried adding the mount to /etc/rc.local and it didn't work, /etc/init.d/rc.local did so, there you go.

As regards the fullscreen issue I don't understand why I should consult Compiz? I don't even have it installed (at least, not yet :) )

Is there an Xorg log file somewhere I could investigate? Sorry I'm relatively new to Linux so am not entirely sure where to look for some things.

Thanks for the help.
Andrew

Re: Problems with Ubuntu 10.04 Guest

Posted: 2. May 2010, 02:01
by Perryg
Here is a copy of my /etc/rc.local and working shared folder mount.
Look at the beginning of the first line. As I said earlier you must take the # out of the beginning of the line to enable the script. You really should not change the /etc/init.d/rc.local I have no idea what problems it could create.

Code: Select all

!/bin/sh -e    # Remove the "#" from the first of the line to make this work See line 8 Below!
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
mount -t vboxsf -o rw,uid=1000,gid=1000 Transfer /mnt/Transfer  

exit 0
Next there is not xorg.conf in Ubuntu 10.04, and if you installed the desktop version that was release the other day it already has Compiz.
All Ubuntu logs are in the same place. /var/log

Re: Problems with Ubuntu 10.04 Guest

Posted: 2. May 2010, 22:30
by TrotskyIcepick
Thanks for that, have now put the mount command in the correct place and working fine.

Have tried to troubleshoot compiz by running the command compiz --replace ccp & emerald --replace & as suggested on the compiz wiki. However, this simply causes both toolbars, desktop icons and any running applications to disappear and requires me to reset the VM.

Also tried running compiz as follows:
LIBGL_ALWAYS_INDIRECT=1 INTEL_BATCH=1 compiz --replace --indirect-rendering --sm-disable ccp & also suggested by compiz wiki but this gives the following errors:
compiz (core) - Fatal: Software rendering detected
compiz (core) - Error: Failed to manage screen: 0
compiz (core) - Fatal: No manageable screens found on display :0.0
Launching fallback window manager
(metacity:1874): Gtk-WARNING **: Unable to locate theme engine in module_path: "ubuntulooks",

Have looked in /usr/lib/gtk-2.0/2.10.0/engines and ubuntulooks is not there (or anywhere else on my system). Have tried to install ubuntulooks but get the following:
Package gtk2-engines-ubuntulooks is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
human-theme
E: Package gtk2-engines-ubuntulooks has no installation candidate

If I look in the .xsession-errors file there are many errors pertaining to this ubuntulooks theme engine. I'm just guessing, but maybe this is the crux of my problem?

Have also now tried to troubleshoot compiz by running: LIBGL_ALWAYS_INDIRECT=1 INTEL_BATCH=1 compiz --replace ccp & emerald --replace & but this just closes the terminal session it was run from.

My graphics card is a Mobile Intel(R) 4 Series Express, version 7.15.10.1861

Thanks for your help.

Andrew

PS. Compiz does not appear to be running at startup, so unsure why it might cause problems running in fullscreen mode?

Re: Problems with Ubuntu 10.04 Guest

Posted: 3. May 2010, 18:20
by rah2435
I've been running Ubuntu 9.xx guest using virtualbox 3.1.6 with Windows 7 host for a while now.
Last week I upgraded to Ubuntu 10.04. Everything seems to be great except - now I can't mount my share :(

/sbin/mount.vboxsf: mounting failed with the error: No such device

Also - I tried this error when I try to start the guest additions:
$ /etc/init.d/sudo ./vboxadd start

Starting the VirtualBox Guest Additions ...fail!
(modprobe vboxvfs failed)

any ideas???

thanks,
Rich

Re: Problems with Ubuntu 10.04 Guest

Posted: 3. May 2010, 18:28
by Perryg
Try
/etc/init.d/vboxadd setup
Watch for errors

Re: Problems with Ubuntu 10.04 Guest

Posted: 3. May 2010, 19:38
by rah2435
Thanks!

I ran this and got the following output.

sudo /etc/init.d/vboxadd setup
Removing old VirtualBox vboxvideo kernel module ...done.
Removing old VirtualBox vboxvfs kernel module ...done.
Removing old VirtualBox vboxguest kernel module ...done.
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

guess I'll restart and see if anything positive happened.

rich

Re: Problems with Ubuntu 10.04 Guest

Posted: 3. May 2010, 19:44
by rah2435
Well...I restarted and it didn't seem to help.
Still geting:

/etc/init.d$ sudo ./vboxadd start
Starting the VirtualBox Guest Additions ...fail!
(modprobe vboxvfs failed)

Re: Problems with Ubuntu 10.04 Guest

Posted: 3. May 2010, 20:12
by Perryg
Why are you manually trying to start the guest additions?

If you start the guest do you get mouse integration and the ability to resize the screen?