環境:
VirtualBox X Cent OS 6.2 Final
因為LPIC教學是用Cent OS
只好來灌一下
結果在VMWare每次灌都很怪
最後還是選擇在VirtualBox上面裝
一切都很順利
但是就是無法安裝Guest Additions
只好尋找一下安裝方法…
——————————————————-
1. 切換至 root
打開Terminal輸入
su
2. 把VirtualBox Guest Additions CD 弄進 Cent OS
先在 [裝置] 選 “安裝Guest Additions”
然後在用手動方式,把此光碟mount進來
在Terminal底下輸入
mkdir /media/VirtualBoxGuestAdditions
mount -r /dev/cdrom /media/VirtualBoxGuestAdditions
3. 確認系統核心是最新版本後重新開機
Terminal底下輸入
yum update kernel*
reboot
4. 安裝相依套件
Terminal底下輸入
yum install gcc kernel-devel kernel-headers
5. 增加環境變數[KERN_DIR]
Terminal底下
## Current running kernel on Fedora 使用Fedora核心 ##
KERN_DIR=/usr/src/kernels/`uname -r`
## Current running kernel on CentOS and Red Hat (RHEL) 使用Cent OS核心##
KERN_DIR=/usr/src/kernels/`uname -r`-`uname -m`
## Fedora 範例##
KERN_DIR=/usr/src/kernels/2.6.33.5-124.fc13.i686
## CentOS and Red Hat (RHEL) 範例 ##
KERN_DIR=/usr/src/kernels/2.6.18-194.11.1.el5-x86_64
## Export KERN_DIR ##
export KERN_DIR
PS: [System] 選項裡的 “About this Computer” 可以顯示kernel版本
6. 開始安裝 Guest Additions
要先確定你的Guest Additions有mount進來喔
cd /media/VirtualBoxGuestAdditions
./VBoxLinuxAdditions.run
安裝訊息大概長這樣:
[root@fedora VBoxGuestAdditions]# ./VBoxLinuxAdditions.run Verifying archive integrity... All good. Uncompressing VirtualBox 4.1.6 Guest Additions for Linux......... VirtualBox Guest Additions installer Removing installed version 4.1.6 of VirtualBox Guest Additions... Removing existing VirtualBox DKMS kernel modules [ OK ] Removing existing VirtualBox non-DKMS kernel modules [ OK ] Building the VirtualBox Guest Additions kernel modules Building the main Guest Additions module [ OK ] Building the shared folder support module [ OK ] Building the OpenGL support module [ OK ] Doing non-kernel setup of the Guest Additions [ OK ] You should restart your guest to make sure the new modules are actually used Installing the Window System drivers Installing X.Org Server 1.11 modules [ OK ] Setting up the Window System to use the Guest Additions [ OK ] 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 componen[ OK ]
7. 重開機
reboot
———————————————
我照著步驟裝有成功
應該是沒什麼問題啦!
搶先發佈留言