Gentoo Installation on Virtualbox, startx fails

Neel Basu picture Neel Basu · Feb 7, 2012 · Viewed 8.4k times · Source

I followed the Gentoo Linux x86 Quick Installation Guide the base system is installed on virtualbox. I want gnome in it. The docs say I need to install hal. But emerge says there are no ebuilds to satisfy "hal". I did eselect profile list and then did eselect profile set 4 which is [4] default/linux/x86/10.0/desktop/gnome as this forum post says. Then I did emerge -e system which took several hours and downloaded lots of files. after that I did a restart and startx fails, even Xorg -configure fails. saying

(EE) Failed to load module "vmwgfx" (module does not exist, 0)
(EE) vmware: Please ignore the above warnings about not being able to to load module/driver vmwgfx
(EE) vmware: Unexpected failure while loading the "vmwlegacy" driver. Giving up.
(EE) Failed to load module "vmware" (a required submodule could not be loaded, -1077713160)
(++) Using config file: "/root/xorg.conf.new"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(EE) open /dev/fb0: No such file or directory

I am very new to gentoo. and I cannot understand where should I move now.

Answer

Chewi picture Chewi · Feb 7, 2012

Where do the docs say you need to install hal? Admittedly that quick guide mentions hal in the USE flags but that's all. hal is now obsolete and should be totally avoided.

Did you install xf86-video-vmware? This is the video driver you need for X.

UPDATE: Sorry, I was getting confused because the error mentioned VMware even though you're running under VirtualBox. You should remove xf86-video-vmware and emerge virtualbox-guest-additions, which will pull in xf86-video-virtualbox. See this wiki page for more information.