在 Virtualbox 上安装 Gentoo,startx 失败

发布于 2025-01-03 06:32:52 字数 1166 浏览 1 评论 0原文

我遵循了 Gentoo Linux x86 快速安装指南< /a> 基本系统安装在 virtualbox 上。我想要侏儒在里面。文档说我需要安装 hal 。但是emerge没有ebuilds来满足“hal”。我执行了eselect profile list,然后执行了eselect profile set 4,即[4] default/linux/x86/10.0/desktop/gnome论坛帖子说。然后我做了 emerge -e system 花费了几个小时并下载了大量文件。之后我重新启动,startx 失败,甚至 Xorg -configure 也失败。说

(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

我对gentoo很陌生。我不明白我现在应该搬到哪里。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

冰葑 2025-01-10 06:32:52

文档说你需要在哪里安装 hal?诚然,快速指南在 USE 标志中提到了 hal,但仅此而已。 hal 现在已经过时,应该完全避免。

您安装了 xf86-video-vmware 吗?这是 X 所需的视频驱动程序。

更新: 抱歉,我很困惑,因为即使您在 VirtualBox 下运行,错误也提到了 VMware。您应该删除 xf86-video-vmware 并emerge virtualbox-guest-additions,这将引入 xf86-video-virtualbox。请参阅此 wiki 页面了解更多信息。

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.

荆棘i 2025-01-10 06:32:52

wiki 上有一个页面描述了这个 http://wiki.gentoo.org/wiki/VirtualBox

请参阅“Linux 来宾”部分

There is a page on wiki describing this http://wiki.gentoo.org/wiki/VirtualBox

Look at part "Linux Guests"

油饼 2025-01-10 06:32:52
# eix xf86-video -S virtual 
* x11-drivers/xf86-video-virtualbox
     Available versions:  4.1.4 ~4.1.6-r1 ~4.1.8 {dri kernel_linux}
     Homepage:            http://www.virtualbox.org/
     Description:         VirtualBox video driver

# emerge x11-drivers/xf86-video-virtualbox 
 * Last emerge --sync was Wed Jan 11 10:35:01 2012.
>>> Verifying ebuild manifests
>>> Starting parallel fetch
>>> Emerging (1 of 5) sys-devel/bin86-0.16.17
>>> Installing (1 of 5) sys-devel/bin86-0.16.17
>>> Emerging (2 of 5) sys-power/iasl-20090123
>>> Installing (2 of 5) sys-power/iasl-20090123
>>> Emerging (3 of 5) sys-devel/dev86-0.16.17-r6
>>> Installing (3 of 5) sys-devel/dev86-0.16.17-r6
>>> Emerging (4 of 5) dev-util/kbuild-0.1.9998_pre20110817
>>> Installing (4 of 5) dev-util/kbuild-0.1.9998_pre20110817
>>> Emerging (5 of 5) x11-drivers/xf86-video-virtualbox-4.1.4
>>> Installing (5 of 5) x11-drivers/xf86-video-virtualbox-4.1.4
>>> Recording x11-drivers/xf86-video-virtualbox in "world" favorites file...

 * Messages for package x11-drivers/xf86-video-virtualbox-4.1.4:

 * You need to edit the file /etc/X11/xorg.conf and set:
 * 
 *   Driver  "vboxvideo"
 * 
 * in the Graphics device section (Section "Device")
 * 
 * To use the kernel drm video driver, please add:
 * "vboxvideo" to:
 * /etc/conf.d/modules
 * 
vim /etc/X11/xorg.conf (or some other text editor)

  Section "Device"
       Identifier     "Fake card"
       Driver         "vboxvideo"
       VendorName     "VirtualBox"
       BoardName      "Fake board"
   EndSection

Section "Screen"

   # Removed Option "metamodes" "DFP: nvidia-auto-select +0+0"
   # Removed Option "TwinView" "0"
   # Removed Option "metamodes" "DFP: 1680x1050_60 +0+0"
       Identifier     "BottomDisplay"
       Device         "Fake card"
 (...)

保存文件。运行startx

# eix xf86-video -S virtual 
* x11-drivers/xf86-video-virtualbox
     Available versions:  4.1.4 ~4.1.6-r1 ~4.1.8 {dri kernel_linux}
     Homepage:            http://www.virtualbox.org/
     Description:         VirtualBox video driver

# emerge x11-drivers/xf86-video-virtualbox 
 * Last emerge --sync was Wed Jan 11 10:35:01 2012.
>>> Verifying ebuild manifests
>>> Starting parallel fetch
>>> Emerging (1 of 5) sys-devel/bin86-0.16.17
>>> Installing (1 of 5) sys-devel/bin86-0.16.17
>>> Emerging (2 of 5) sys-power/iasl-20090123
>>> Installing (2 of 5) sys-power/iasl-20090123
>>> Emerging (3 of 5) sys-devel/dev86-0.16.17-r6
>>> Installing (3 of 5) sys-devel/dev86-0.16.17-r6
>>> Emerging (4 of 5) dev-util/kbuild-0.1.9998_pre20110817
>>> Installing (4 of 5) dev-util/kbuild-0.1.9998_pre20110817
>>> Emerging (5 of 5) x11-drivers/xf86-video-virtualbox-4.1.4
>>> Installing (5 of 5) x11-drivers/xf86-video-virtualbox-4.1.4
>>> Recording x11-drivers/xf86-video-virtualbox in "world" favorites file...

 * Messages for package x11-drivers/xf86-video-virtualbox-4.1.4:

 * You need to edit the file /etc/X11/xorg.conf and set:
 * 
 *   Driver  "vboxvideo"
 * 
 * in the Graphics device section (Section "Device")
 * 
 * To use the kernel drm video driver, please add:
 * "vboxvideo" to:
 * /etc/conf.d/modules
 * 
vim /etc/X11/xorg.conf (or some other text editor)

  Section "Device"
       Identifier     "Fake card"
       Driver         "vboxvideo"
       VendorName     "VirtualBox"
       BoardName      "Fake board"
   EndSection

Section "Screen"

   # Removed Option "metamodes" "DFP: nvidia-auto-select +0+0"
   # Removed Option "TwinView" "0"
   # Removed Option "metamodes" "DFP: 1680x1050_60 +0+0"
       Identifier     "BottomDisplay"
       Device         "Fake card"
 (...)

save the file. run startx

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文