【已解决】Lubuntu在vbox里无法自动调整分辨率
-
- 帖子: 11
- 注册时间: 2011-02-17 19:36
【已解决】Lubuntu在vbox里无法自动调整分辨率
RT.已安装增强工具,而且安装增强工具时与Xubuntu相比少了很多步骤~~去到内核那行报fail~~~其它一路正常done,提示安装完成需要重启。重启后,现在只能使用固定分辨率,不够方便~~重装增强工具问题依旧。
上次由 890q 在 2011-02-27 15:05,总共编辑 1 次。
-
- 帖子: 11
- 注册时间: 2011-02-17 19:36
Re: Lubuntu在vbox里无法自动调整分辨率
是不是lubuntu的核心经过精简?对vbox支持不好。在安装增强工具时,也没看见与共享目录、剪贴板有关的信息。
-
- 帖子: 535
- 注册时间: 2010-08-09 9:12
-
- 帖子: 11
- 注册时间: 2011-02-17 19:36
Re: Lubuntu在vbox里无法自动调整分辨率
怎样安装gcc?DDV 写了:安装增强功能需要gcc,Lubuntu默认没安装gcc,安装gcc之后,在安装增强功能,一切就都正常了,包括共享目录和剪贴板。
-
- 帖子: 535
- 注册时间: 2010-08-09 9:12
- smallapple
- 论坛版主
- 帖子: 7868
- 注册时间: 2009-03-28 15:12
-
- 帖子: 11
- 注册时间: 2011-02-17 19:36
Re: Lubuntu在vbox里无法自动调整分辨率
好的,我先重装增强工具看看是哪个failsmallapple 写了:看看什么 fail ,少了什么组件,装上后再装增强功能
-
- 帖子: 11
- 注册时间: 2011-02-17 19:36
Re: Lubuntu在vbox里无法自动调整分辨率
谢谢,问题已经解决!DDV 写了:安装增强功能需要gcc,Lubuntu默认没安装gcc,安装gcc之后,在安装增强功能,一切就都正常了,包括共享目录和剪贴板。
以下是我的安装过程分享:
》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》
默认情况下安装增强功能,信息如下:
dxing@dxing-Vbox:/media/VBOXADDITIONS_4.0.4_70112$ sudo ./VBoxLinuxAdditions.run
[sudo] password for dxing:
Verifying archive integrity... All good.
Uncompressing VirtualBox 4.0.4 Guest Additions for Linux.........
VirtualBox Guest Additions installer
Removing installed version 4.0.4 of VirtualBox Guest Additions...
Removing existing VirtualBox DKMS kernel modules ...done.
Removing existing VirtualBox non-DKMS kernel modules ...done.
Building the VirtualBox Guest Additions kernel modules ...fail!
Your system does not seem to be set up to build kernel modules.
Look at /var/log/vboxadd-install.log to find out what went wrong.
Once you have corrected it, you can run
/etc/init.d/vboxadd setup
to build them.
Doing non-kernel setup of the Guest Additions ...done.
Installing the Window System drivers
Installing X.Org Server 1.9 modules ...done.
Setting up the Window System to use the Guest Additions ...done.
You may need to restart the hal service and the Window System (or just restart
the guest system) to enable the Guest Additions.
Installing graphics libraries and desktop services components ...done.
dxing@dxing-Vbox:/media/VBOXADDITIONS_4.0.4_70112$
PS:这是我试着重装增强功能后返回的信息,如果你是第一次安装增强功能,前面的几行信息会不一样。
==================================================================================
注意上面的其中三行:
Building the VirtualBox Guest Additions kernel modules ...fail!
Your system does not seem to be set up to build kernel modules.
Look at /var/log/vboxadd-install.log to find out what went wrong.
这里是安装失败,查看日志文件/var/log/vboxadd-install.log ,信息如下:
make KBUILD_VERBOSE=1 -C /lib/modules/2.6.35-25-generic/build SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 modules
/usr/src/linux-headers-2.6.35-25-generic/scripts/gcc-version.sh: line 25: gcc:找不到命令
/usr/src/linux-headers-2.6.35-25-generic/scripts/gcc-version.sh: line 26: gcc:找不到命令
/usr/src/linux-headers-2.6.35-25-generic/arch/x86/Makefile:81: stack protector enabled but no compiler support
make[1]: gcc:命令未找到
test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo; \
/bin/false)
mkdir -p /tmp/vbox.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*
make -f scripts/Makefile.build obj=/tmp/vbox.0
gcc -Wp,-MD,/tmp/vbox.0/.test.o.d -nostdinc -isystem -I/usr/src/linux-headers-2.6.35-25-generic/arch/x86/include -Iinclude -include include/generated/autoconf.h -
Iubuntu/include -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-
delete-null-pointer-checks -O2 -msoft-float -mregparm=3 -freg-struct-return -march=i686 -ffreestanding -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-omit-frame-
pointer -fno-optimize-sibling-calls -pg -I/lib/modules/2.6.35-25-generic/build/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -D__KERNEL__ -DMODULE -
DRT_OS_LINUX -DIN_RING0 -D_X86_ -DIN_RT_R0 -DIN_SUP_R0 -DVBGL_VBOXGUEST -DVBGL_HGCM -DVBOX_WITH_HGCM -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(test)" -
D"KBUILD_MODNAME=KBUILD_STR(vboxadd_test)" -c -o /tmp/vbox.0/.tmp_test.o /tmp/vbox.0/test.c
/bin/sh: gcc: not found
make[2]: *** [/tmp/vbox.0/test.o] 错误 127
make[1]: *** [_module_/tmp/vbox.0] 错误 2
make: *** [vboxadd_test] 错误 2
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.
==================================================================================
根据安装日志使用如下命令安装gcc
sudo apt-get install gcc
==================================================================================
重新安装增强功能,信息如下:
dxing@dxing-Vbox:/media/VBOXADDITIONS_4.0.4_70112$ sudo ./VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 4.0.4 Guest Additions for Linux.........
VirtualBox Guest Additions installer
Removing installed version 4.0.4 of VirtualBox Guest Additions...
Removing existing VirtualBox DKMS kernel modules ...done.
Removing existing VirtualBox non-DKMS kernel modules ...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.
Starting the VirtualBox Guest Additions ...done.
Installing the Window System drivers
Installing X.Org Server 1.9 modules ...done.
Setting up the Window System to use the Guest Additions ...done.
You may need to restart the hal service and the Window System (or just restart
the guest system) to enable the Guest Additions.
Installing graphics libraries and desktop services components ...done.
dxing@dxing-Vbox:/media/VBOXADDITIONS_4.0.4_70112$
==================================================================================
从上面的结果可以清楚看到,增强功能已经成功安装!
自动调整分辨率、共享剪贴板、共享目录,已经可以正常使用。
-
- 帖子: 523
- 注册时间: 2007-12-13 23:34
Re: 【已解决】Lubuntu在vbox里无法自动调整分辨率
我的安装之后一切都可以就是分辨率不能自动调整