Tag Archives: virtualbox

Quick fix for virtualbox 1.6.4 PUEL version and kernel 2.6.27

這幾天 ubuntu 8.10 使用了 2.6.27 的 kernel , 而 virtualbox 1.6.4 的 kernel module 和 2.6.27 不太合.
編譯時都會出現 error .
In file included from /tmp/vbox.1/linux/SUPDrv-linux.c:35:
/tmp/vbox.1/SUPDRV.h:104:30: error: asm/semaphore.h: 沒有此一檔案或目錄
/tmp/vbox.1/linux/SUPDrv-linux.c: In function ‘supdrvOSGipResume’:
/tmp/vbox.1/linux/SUPDrv-linux.c:1331: error: too many arguments to function ‘smp_call_function’
make[2]: *** [/tmp/vbox.1/linux/SUPDrv-linux.o] Error 1
make[1]: *** [_module_/tmp/vbox.1] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.27-1-generic’
make: *** [vboxdrv] Error 2

Ubuntu討論區上這篇 quick fix , 修改之後就可成功編譯. [...]

Posted in ubuntu | Also tagged , | Leave a comment

[筆記] VirtualBox 網路設定

記下我的 VirtualBox 網路設定
安裝
sudo apt-get install uml-utilities bridge-utils
/etc/network/interfaces
auto lo
iface lo inet loopback
name Loop interface
auto br0
iface br0 inet static
pre-up ifconfig eth0 down
post-up ifup eth0
address 192.168.22.2
network 192.168.22.0
netmask 255.255.255.0
broadcast 192.168.22.255
gateway 192.168.22.1
bridge_ports eth0
auto eth0
iface eth0 inet manual
name Ethernet LAN card

/etc/vbox/interfaces
#sudo VBoxAddIF vbox0 $USERNAME br0
vbox0 pctao br0
reboot, vbox0 is ready for you.

Posted in hardy, ubuntu | Also tagged , | Leave a comment