ข่าว: ข่าวประกาศ

  • 02 พฤษภาคม 2024, 21:25:26

เข้าสู่ระบบด้วยชื่อผู้ใช้ รหัสผ่าน และระยะเวลาในเซสชั่น

ผู้เขียน หัวข้อ: การ Config VBOX ให้สามารถใช้งานบน Ubuntu 8.04  (อ่าน 20598 ครั้ง)

admin

  • Administrator
  • Hero Member
  • *****
  • กระทู้: 3820
    • ดูรายละเอียด
    • อีเมล์
การ Config VBOX ให้สามารถใช้งานบน Ubuntu 8.04
« เมื่อ: 14 กันยายน 2008, 13:21:19 »
Reff : http://www.ubuntugeek.com/howto-install-virtualbox-16-in-ubuntu-804hardy-heron-including-usb-support.html

เนื่องจากว่า เดิม เครื่องคอมพิวเตอร์ของผม Spec

Pentium Dual Core E2200
RAM 2GB
HDD 250GB SATA และ 80GB IDE

และผมมี Server อีก 2 ตัว Spec คล้าย ๆ กัน ทำหน้าที่เป็น Multiwan Server และ Authen Server

ผมก็เลยมีความคิดว่า จะเอา 3 เครื่องนี้ มารวมไว้เครื่องเดียวกัน เพื่อประหยัดไฟครับ

ก็เลยวางแผนว่า จะเพิ่ม RAM จาก 2GB เป็น 8GB  เนื่องจากโชคดีว่า M/B รองรับ RAM 8GB

และติดตั้ง OS เป็น Ubuntu 8.04.1 version 64bit

ใช้ HDD 80GB IDE ติดตั้งตัว Base OS
แล้วก็เพิ่ม HDD 250GB ไปอีก 1 ตัว เป็น HDD 250GB SATA 2 ตัว
ทำ RAID0 โดยใช้ Software RAID บน Ubuntu จะได้ HDD 500GB RAID0

ตอนนี้ได้ทำการติดตั้ง Ubuntu เรียบร้อยแล้ว

และก็ติดตั้ง VBOX หรือ Virtual Box ของ Sun ก็คล้าย ๆ กับ VMWare

และติดตั้ง OS เป็น Windows XP โดยใช้ HDD 180GB แบ่งเป็น C: 30G และ D: 150GB

ตอนนี้ก็ติดปัญหาเรื่อง USB เนื่องจาก XP ไม่สามารถใช้งาน USB ได้  ก็เลยค้นหาจนเจอวิธีจาก Link ดังกล่าว

หลังจากนี้ก็จะเป็นการติดตั้ง ตัว MultiWAN รวมกับตัว Authen ลงในเครื่องนี้

โดยจะให้ใช้ RAM 4GB และ HDD 300GB สำหรับติดตั้ง Ubuntu 7.10 Server ทำ MultiWAN+Authen

เครื่องเดียวใช้กันคุ้มเลยครับ ลดการใช้พลังงาน

เครื่องเดียว มีทั้ง Ubuntu Desktop, Ubuntu Server, และ Windows XP
« แก้ไขครั้งสุดท้าย: 15 กันยายน 2008, 22:55:59 โดย admin »
<a href="http://www.hadyaiinternet.com/images/inetcafe.swf" target="_blank" rel="noopener noreferrer" class="bbc_link bbc_flash_disabled new_win">http://www.hadyaiinternet.com/images/inetcafe.swf</a>

admin

  • Administrator
  • Hero Member
  • *****
  • กระทู้: 3820
    • ดูรายละเอียด
    • อีเมล์
Re: การ Config VBOX ให้สามารถใช้งานบน Ubuntu 8.04
« ตอบกลับ #1 เมื่อ: 15 กันยายน 2008, 14:13:13 »
Reff :: http://backports.ubuntuforums.com/showthread.php?t=895663

 Re: Virtual box usb.
Assuming you are NOT using the OSE version from the repo.

#1 - I got this:

"By default USB support was disabled in virtualbox, so you’ll probably want to enable it. Otherwise you’ll get an error when you go into the “Settings” of your virtual machine. To correct this, you’ll need to edit the mountdevsubfs.sh file

sudo gedit /etc/init.d/mountdevsubfs.sh

Inside, you’ll see a block of code that looks like this

#
# Magic to make /proc/bus/usb work
#
#mkdir -p /dev/bus/usb/.usbfs
#domount usbfs “” /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644
#ln -s .usbfs/devices /dev/bus/usb/devices
#mount --rbind /dev/bus/usb /proc/bus/usb

Change it to look like this (uncomment out the region by deleting the “#’s”):

#
# Magic to make /proc/bus/usb work
#
mkdir -p /dev/bus/usb/.usbfs
domount usbfs “” /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644
ln -s .usbfs/devices /dev/bus/usb/devices
mount --rbind /dev/bus/usb /proc/bus/usb

Save the changes and exit.Now log out, and then log back in again for the changes to take place."

From here:
http://www.ubuntugeek.com/howto-inst...b-support.html

#2 - Then this :
"I'm having some trouble with USB with VirtualBox. When I first installed virtual box, when I created a virtual machine, I received this error: Failed to create a proxy device for the USB device. (Error: VERR_FILE_NOT_FOUND).

I fixed with the solution from :
http://yoten.blogspot.com/2007/06/vi...usb-error.html by adding this to /etc/fstab

none /proc/bus/usb usbfs devgid=1001,devmode=666 0 0

USB then became available for use."

From here:
http://ubuntuforums.org/showthread.php?t=719074

#3 - And then from the VirtualBox Manual:
" On Linux hosts, VirtualBox accesses USB devices on Linux through the usbfs file system. Therefore, the user executing VirtualBox needs read and write permission to the USB file system. Most distributions provide a group (e.g. usbusers) which the VirtualBox user needs to be added to. Also, VirtualBox can only proxy to virtual machines USB devices which are not claimed by a Linux host USB driver. Please refer to the Driver= entry in /proc/bus/usb/devices to see which devices are claimed."

There was no usbusers group in my Fiesty or my Hardy install so I added it and added myself to it.

Pay attention to the devgid= statement in /etc/fstab - it should be the id number of your usbusers group.

After I completed all three of these steps USB is working in all of my VBox installs.

I was getting very similar symptoms to yours just before I added the /etc/fstab line.

Good Luck - I hope this helps
« แก้ไขครั้งสุดท้าย: 15 กันยายน 2008, 22:56:19 โดย admin »
<a href="http://www.hadyaiinternet.com/images/inetcafe.swf" target="_blank" rel="noopener noreferrer" class="bbc_link bbc_flash_disabled new_win">http://www.hadyaiinternet.com/images/inetcafe.swf</a>

admin

  • Administrator
  • Hero Member
  • *****
  • กระทู้: 3820
    • ดูรายละเอียด
    • อีเมล์
Re: การ Config VBOX ให้สามารถใช้งานบน Ubuntu 8.04
« ตอบกลับ #2 เมื่อ: 15 กันยายน 2008, 14:37:55 »
« แก้ไขครั้งสุดท้าย: 15 กันยายน 2008, 22:56:31 โดย admin »
<a href="http://www.hadyaiinternet.com/images/inetcafe.swf" target="_blank" rel="noopener noreferrer" class="bbc_link bbc_flash_disabled new_win">http://www.hadyaiinternet.com/images/inetcafe.swf</a>

admin

  • Administrator
  • Hero Member
  • *****
  • กระทู้: 3820
    • ดูรายละเอียด
    • อีเมล์
Re: การ Config VBOX ให้สามารถใช้งานบน Ubuntu 8.04
« ตอบกลับ #3 เมื่อ: 15 กันยายน 2008, 22:36:11 »
Reff :: http://samiux.wordpress.com/2007/07/11/bridge-network-interface-on-virtualbox/

การ Set Bridge Mode Interface ใน VBox

Bridge network interface on VirtualBox

When I want to streaming TV by SlingBox on Windows XP by VirtualBox under Ubuntu 7.04, I found the “Host Interface” produced error. That’s mean I could not streaming TV? No, there is a method to solve this problem.

Step 0 :
If you have not install VirtualBox on your Ubuntu 7.04, follow this guide -
How to install VirtualBox on Ubuntu 7.04

Step 1 :
Install the required packages -

    sudo apt-get install uml-utilities bridge-utils

Step 2 :
Create TAP interface -

    sudo tunctl -t tap1 -u samiux

** where “samiux” is the username of your Ubuntu (here is my name)

Step 3 :
Create a br0 bridge -

    sudo brctl addbr br0

Step 4 :
Make your real network interface be promiscuous -

    sudo ifconfig eth0 0.0.0.0 promisc

Step 5 :
Link your real network interface to bridge br0 -

    sudo brctl addif br0 eth0

Step 6 :
Assign an IP to the br0. If you are using DHCP -

    sudo dhclient br0

Or, if you assign an IP yourself -

    sudo ifconfig br0 192.168.1.102

* the IP may be different from yours.

Step 7 :
Link TAP to bridge br0 -

    sudo brctl addif br0 tap1

Step 8 :
Activate TAP interface -

    sudo ifconfig tap1 up

Step 9 :
Change the permission of /dev/net/tun -

    sudo chmod 0666 /dev/net/tun

Step 10 :
At the VirtualBox startup panel, choose “Host Interface” and add “tap1″ to “Interface Name”.

Step 11 :
At the guest (after boot up the guest OS), change the IP of the guest OS to the same subnet of your host.

    IP 192.168.1.200
    netmask 255.255.255.0
    gateway 192.168.1.1
    DNS #1 208.67.222.222
    DNS #2 208.67.220.220

Step 12 :
Now, you can execute the SlingBox player to watch your TV programmes on your guest OS (Windows XP) under Ubuntu 7.04 by VirtualBox.

When you reboot your guest OS, you need to repeat the Step 2 to 9 to play the SlingBox Player. Or, you can create a executable script to make your job easy.

Enjoy!
« แก้ไขครั้งสุดท้าย: 17 กันยายน 2008, 06:15:28 โดย admin »
<a href="http://www.hadyaiinternet.com/images/inetcafe.swf" target="_blank" rel="noopener noreferrer" class="bbc_link bbc_flash_disabled new_win">http://www.hadyaiinternet.com/images/inetcafe.swf</a>