หน้าเว็บ

วันจันทร์ที่ 17 พฤศจิกายน พ.ศ. 2551

Screen Resolution ไม่ auto-resize (VirtualBox & Intrepid)

อาการต่อเนื่องจากโพสก่อน http://ping2p.blogspot.com/2008/11/ubutu-8.html

แต่อันนี้คือ Screen Resolution ไม่ปรับขนาดตามหน้าจอของ host os และถ้าเลือกเปลี่ยนเองที่ System->Preferences->Screen Resolution ก็มีให้เลือกแค่ 800x600 กับ 640x480

วิธีแก้คือ
1) ตรวจสอบว่ามี vboxvideo_drv.so อยู่ที่ /usr/lib/xorg/modules/drivers
2) เป็น root แล้วแก้ไข /etc/X11/xorg.conf
2.1) เพิ่มใน section Device
Section "Device"
Identifier "Configured Video Device"
Driver "vboxvideo"
EndSection

2.2) เพิ่มใน section Screen
Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
SubSection "Display"
Modes "1280x800" "1280x768" "1024x768" "800x600" "640x480"
EndSubSection
EndSection

โดยความละเอียดนั้นขึ้นอยู่กับความละเอียดที่รองรับของแต่ละเครื่อง
3) restart Ubuntu Guest

ระบบที่ทดสอบ
Host: Windows Vista SP1 Business
Guest: Ubuntu 8.10 Intrepid Ibex
VirtualBox: 2.0.4

ที่มา
http://ubuntuforums.org/showthread.php?t=886354

Mouse Integration ไม่ทำงาน (VirtualBox & Intrepid)

ปัญหาคือผมลง Ubutu 8.10 (Intrepid Ibex) บน Virtual Box ที่มี host คือ Windows Vista

พอลงเสร็จก็ทำงานได้ปกติ แต่คราวนี้พอจะลง Guest Addition เพื่อให้มันมี Mouse Integration ได้กลับพบปัญหาคือ Guest Addition บอกว่าลงสำเร็จด้วยดี แต่ Mouse Integration ยังไม่ทำงาน ต้องคอยคลิ๊กเพื่อให้ capture ก่อนถึงจะทำงานได้ แล้วค่อยกด Ctrl เพื่อออก ทำให้ไม่สะดวกเป็นอย่างมาก

ก็ไปพบวิธีแก้มาจาก ticket ของเวบ virtualbox เองดังนี้

1) ตรวจสอบว่ามีไฟล์ vboxmouse_drv.so อยู่ที่ /usr/lib/xorg/modules/input รึเปล่า (ควรมีอยู่)
2) เป็น root แล้วแก้ไขไฟล์ /etc/X11/xorg.conf โดยให้เพิ่ม
Section "InputDevice"
Identifier "Configured Mouse"
Driver "vboxmouse"
Option "CorePointer"
EndSection

เข้าไป (แต่ละบรรทัดใช้ tab หน้าสุด และระหว่างคำ)
3) restart ตัว guest linux

ระบบที่ทดสอบ

HostOS: Windows Vista SP1 Business
GuestOS: Ubuntu 8.10 Intrepid Ibex
VirtualBox: 2.0.4

ที่มา
http://www.virtualbox.org/ticket/2545
http://forums.virtualbox.org/viewtopic.php?p=43200#43200

วันอาทิตย์ที่ 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