หน้าเว็บ

วันอาทิตย์ที่ 2 พฤศจิกายน พ.ศ. 2551

ลง VirtualBox GuestAddition บน Linux Host

ใช้ host เป็น WindowsXP แล้วลง VirtualBox แล้วก็ลง CentOS5 เป็น Guest OS
คราวนี้พอจะลง GuestAddition แล้วปรากฎว่าไม่สามารถลงได้ ขึ้น error ดังนี้
[root@localhost VBOXADDITIONS_2.0.4_38405]# sh ./VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 2.0.4 Guest Additions for Linux installation....................
............................................................................................................................
............................................................................................................................
......................
VirtualBox 2.0.4 Guest Additions installation
Please install the build and header files for your current Linux kernel.
The current kernel version is 2.6.18-53.1.13.el5
Please install the GNU compiler.
Problems were found which would prevent the Guest Additions from installing.
Please correct these problems and try again.
ก็แก้ตาม step ที่ฟ้องมาเลยคือ
1. ลง build and header files
yum install kernel-devel
แล้วสร้าง link ไว้ด้วยใน /usr/src
cd /usr/src
ln -s kernels/2.6.18-92.1.6.el5-i686 linux

(เลขเวอร์ัชันขึ้นอยู่กับ kernel ของ linux แต่ละรุ่น)
2. ลง GNU compiler
yum install gcc
คราวนี้ก็กลับไปที่โฟลเดอร์ของ VBoxAddition แล้วสั่ง run ใหม่
sh ./VBoxLinuxAdditions-x86.run
เป็นอันเรียร้อย

ระบบที่ทดสอบ
Host OS: WindowsXP SP2
GuestOS: CentOS 5
VirtualBox: 2.0.4

อ้างอิง
http://www.centos.org/modules/newbb/viewtopic.php?topic_id=12724
http://aparker.co.uk/?p=7

ไม่มีความคิดเห็น: