Environment:
VirtualBox 4.18r75467
CentOS 6.2 x86_64
====
problem:
install guest addition
solutions:
yum install yum-plugin-priorities
yum update
yum install gcc
yum groupinstall "Development Tools"
yum install kernel-devel
Patch for CentOS 6.2 with VBOXADDITIONS_4.1.8
Mount the Guest Additions ISO as above, but do not run the installer. Copy/paste the patch below to a file, for instance vi ~/el6.patch.
--- vboxvideo_drm.c_orig 2011-12-19 08:05:26.000000000 -0500 +++ vboxvideo_drm.c 2012-01-03 15:04:11.181357021 -0500 @@ -112,7 +112,7 @@ .poll = drm_poll, .fasync = drm_fasync, }, -#if LINUX_VERSION_CODE < KERNEL_VERSION (2, 6, 39) +#if LINUX_VERSION_CODE < KERNEL_VERSION (2, 6, 39) && !defined(DRM_RHEL61) .pci_driver = { .name = DRIVER_NAME, @@ -127,7 +127,7 @@ .patchlevel = DRIVER_PATCHLEVEL, }; -#if LINUX_VERSION_CODE >= KERNEL_VERSION (2, 6, 39) +#if LINUX_VERSION_CODE >= KERNEL_VERSION (2, 6, 39) || defined(DRM_RHEL61) static struct pci_driver pci_driver = { .name = DRIVER_NAME, @@ -137,7 +137,7 @@ static int __init vboxvideo_init(void) { -#if LINUX_VERSION_CODE < KERNEL_VERSION (2, 6, 39) +#if LINUX_VERSION_CODE < KERNEL_VERSION (2, 6, 39) && !defined(DRM_RHEL61) return drm_init(&driver); #else return drm_pci_init(&driver, &pci_driver); @@ -146,7 +146,7 @@ static void __exit vboxvideo_exit(void) { -#if LINUX_VERSION_CODE < KERNEL_VERSION (2, 6, 39) +#if LINUX_VERSION_CODE < KERNEL_VERSION (2, 6, 39) && !defined(DRM_RHEL61) drm_exit(&driver); #else drm_pci_exit(&driver, &pci_driver);
Follow a procedure as below. The example is for x86_64 (also know as amd64).
cd /media/VBOXADDITIONS_4.1.8_75467/ ./VBoxLinuxAdditions.run --noexec --target ~/TMP/ cd ~/TMP/ mkdir ../TMP2 tar jxvf VBoxGuestAdditions-amd64.tar.bz2 -C ../TMP2/ cd ../TMP2/src/vboxguest-4.1.8/vboxvideo/ patch -p0 < el6.patch cd ~/TMP2/ tar jcvf ../TMP/VBoxGuestAdditions-amd64.tar.bz2 * cd ~/TMP ./install.sh
For i386 substitute x86 for amd64 in the above procedure.
reference:http://wiki.centos.org/HowTos/Virtualization/VirtualBox/CentOSguest
====
Problem:
Solutions:
====
====
Problem:
mount extral disk
Solutions:
====
====
Problem:
Solutions: "updatedb" to use "locate"
====
====
Problem:
mount vbox share folder at start up
Solutions:
mkdir /home/kj/winshare
vi /etc/rc.local
mount -t vboxsf winshare /home/kj/winshare
====
====
Problem:
change default shell to csh
solutions:
vi /etc/passwd
change
kj:x:500:500:kj:/home/kj:/bin/bash
to
kj:x:500:500:kj:/home/kj:/bin/csh
====
====
Problem:
/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
Solutions:
yum install glibc.i686
yum install libXt.i686 or yum install libXt.x86_64
libXp.i686
=======
Problem:
X Error of failed request: BadName (named color or font does not exist)
Major opcode of failed request: 45 (X_OpenFont)
Serial number of failed request: 16
Current serial number in output stream: 31
Major opcode of failed request: 45 (X_OpenFont)
Serial number of failed request: 16
Current serial number in output stream: 31
Solutions:
yum install available xorg-x11-fonts-*
========
========
Problem:
libgcc_s.so.1 must be installed for pthread_cancel to work
Solutions:
setenv LD_LIBRARY_PATH {LD_LIBRARY_PATH}:/lib64/libgcc_s.so.1
========