VirtualBox-2.0 not starting

Discussions related to using VirtualBox on Linux hosts.
troorl
Posts: 2
Joined: 5. Sep 2008, 00:12

VirtualBox-2.0 not starting

Post by troorl »

When I try /usr/bin/VirtualBox I get

Code: Select all

(process:9060): Gtk-WARNING **: This process is currently running setuid or setgid.
This is not a supported use of GTK+. You must create a helper
program instead. For further details, see:

    http://www.gtk.org/setuid.html

Refusing to initialize GTK+.
From root all OK.

P.S. Ubuntu 8.04, installed from deb-package
wedderburn
Posts: 2
Joined: 5. Sep 2008, 04:14

GTKStyle

Post by wedderburn »

Gtk style is your issue, if you open QT4 settings and set the theme to motif it opens up fine, it just looks butt ugly haven't tried cleanlooks yet
troorl
Posts: 2
Joined: 5. Sep 2008, 00:12

Re: GTKStyle

Post by troorl »

wedderburn wrote:Gtk style is your issue, if you open QT4 settings and set the theme to motif it opens up fine, it just looks butt ugly haven't tried cleanlooks yet
Thanks
flowolf
Posts: 8
Joined: 14. Sep 2008, 02:39

Post by flowolf »

Isn't possible to run VirtualBox 2.0 with GtkStyle?
Is it safe to run it as root?
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

Post by Sasquatch »

Better not run things as root, as all the VDIs and VMs will be saved in the Root folder, not your own username. Nor will you be able to edit those files, or even read without using the Root user.
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.
flowolf
Posts: 8
Joined: 14. Sep 2008, 02:39

Post by flowolf »

That's not a big problem, I could still do ln -sf /home/flowolf/.VirtualBox/ /root/.VirtualBox && chmod -R 666 /home/flowolf/.VirtualBox/
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

Post by Sasquatch »

With that, are you sure that the files created are still accessible for your username? Please try to fix your normal username operation first. If it runs for Root, you need to change a few settings/permissions to be able to run it with your normal username. Is your username a member of the vboxusers group?
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.
flowolf
Posts: 8
Joined: 14. Sep 2008, 02:39

Post by flowolf »

The problem is with GtkStyle, if you use this theme VirtualBox becomes a Gtk application and Gtk applications can't be run with setuid.
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

Post by Sasquatch »

Then why use this theme? Pick a different one. I use Xfce as window manager, and as far as I know, it uses GTK for themes. However, if a program wants to use Qt, it's just fine with that. What does google say about this error? This isn't really something that has to do with VB. It just happens that VB uses Qt instead of GTK. Any other Qt application should give the same error.
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.
flowolf
Posts: 8
Joined: 14. Sep 2008, 02:39

Post by flowolf »

VirtualBox is the only QT4 application running using setuid on my system so it is the only application causing problems with GtkStyle.
Of course GtkStyle is anything but necessary still I would like to keep a consistent graphic style if possible.
Last edited by flowolf on 14. Sep 2008, 18:44, edited 1 time in total.
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

Post by Sasquatch »

So you're saying that the output of ls -l /usr/bin/V* Shows you the line

Code: Select all

-rwsr-xr-x 1 root root 2.4K 2008-09-12 16:07 /urs/bin/VBox
instead of -rwxr-xr-x? The command VirtualBox is a symlink to VBox.
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.
flowolf
Posts: 8
Joined: 14. Sep 2008, 02:39

Post by flowolf »

/usr/bin/VBox is only a shell script, /usr/lib/virtualbox/VirtualBox is the actual application, and yes, it is setuid.
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

Post by Sasquatch »

flowolf wrote:/usr/bin/VBox is only a shell script, /usr/lib/virtualbox/VirtualBox is the actual application, and yes, it is setuid.
Not on my system. It's a symlink, linking to the VBox binary. I see very clearly the listing VirtualBox -> VBox. The color, when enabled for ls, is light blue, meaning it's symlink.
Anyway, what if you run VBox instead? You can also try to remove the setuid. It's not needed on my system, might be the same for yours.
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.
flowolf
Posts: 8
Joined: 14. Sep 2008, 02:39

Post by flowolf »

/usr/bin/VirtualBox is a symbolic link pointing to /usr/bin/VBox and /usr/bin/VBox is a shell script that runs /usr/lib/virtualbox/VirtualBox.
Try to do cat /usr/bin/VBox...
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

Post by Sasquatch »

I misread the location. Thought I saw /usr/bin instead of the /usr/lib. And indeed, VirtualBox is set as setuid. Sorry for the confusion.

I've looked on google a bit and you can at least try if you get the same error with a new user.
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