Impossible to detect Virtual Box graphics card

Discussions about using Linux guests in VirtualBox.
Post Reply
Mary Goes
Posts: 1
Joined: 28. Mar 2011, 10:02
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: CentOS5.5

Impossible to detect Virtual Box graphics card

Post by Mary Goes »

Hi, all.
I have a problem.

I use Linux(CentOS) that is in the real partitions with Virtual Box + guest-additions.
But when it starts form the real partition without using VirtualBox, xorg.conf is changed automatically,
and the driver that is not "vboxvideo" but the driver used for my real machine is specified in xorg.conf.
After that, x server cannot detect Virtual Box graphics card("vboxvideo") when it starts in Virtual Box again.
(x error message: "no devices detected")
I don't want to configure xorg.conf manually each time to start it form VirtualBox after booted without it.
How should I do to make xorg detect it automatically?
Technologov
Volunteer
Posts: 3342
Joined: 10. May 2007, 16:59
Location: Israel

Re: Impossible to detect Virtual Box graphics card

Post by Technologov »

You'r setup is very specific one.

Don't know how to help in this case, but in general, isn't it easier to keep two separate "/" root partitions, with shared "/home" partition?
This could solve your problem.
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: Impossible to detect Virtual Box graphics card

Post by Sasquatch »

Another option is to make an init script that checks what hardware you have (check for the VB video adapter) and let it run before X starts. Then in the script itself you let it copy one of the two xorg.conf files, one with your bare metal configuration and one with your VM configuration, to xorg.conf and let X start properly that way.
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