跳至內容
Sars' History
使用者工具
登入
網站工具
工具
顯示頁面
舊版
反向連結
最近更新
多媒體管理器
網站地圖
登入
最近更新
多媒體管理器
網站地圖
足跡:
•
mac_os_x
software:virtualmachine
本頁是唯讀的,您可以看到原始碼,但不能更動它。您如果覺得它不應被鎖上,請詢問管理員。
====== VirtualBox ====== http://www.virtualbox.org ===== Virtuatopia: VirtualBox 2 Essentials ===== http://www.virtuatopia.com/index.php/VirtualBox_2_Essentials ===== 下載 ===== 依照 OS 下載安裝檔。 ===== 安裝(Debian) ===== 以 debian 而言,會缺少兩個相依套件:libxalan110、libxerces27,要先安裝。 # apt-get install libxalan110 libxerces27 # dpkg -i VirtualBox_1.3.8_Debian_etch_i386.deb 因為我有自己編 kernel,過程中需要重新編譯 kernel 加入新的 module 等等的,可能會遇到問題。解決方法是之前編 kernel 的 kernel-source 要留著。 ==== 加入群組 ==== VirtualBox 會新增一個群組「vboxusers」,要去 /etc/group 將允許使用 VirtualBox 的使用者加入此群組中。 或者到「桌面」→「管理」→「使用者及群組」設定。 重新登入系統讓設定值生效。 ===== 使用 ===== 用右邊的 Ctrl 可以解除鎖定鍵盤滑鼠。 其他跟 VMware 差不多... ===== Port Forwarding ===== 開啟 Port 讓外面可連進去 Guest OS。 首先將所有 Guest OS 及 VirtualBox 關掉,不然無法設定。 下面的範例為將 Guest OS 的 TCP Port 22 導到 Host OS 的 2222,其中 Protocol 前的「guestssh」為自訂的識別名稱: VBoxManage setextradata "Guest OS Name" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/Protocol" TCP VBoxManage setextradata "Guest OS Name" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/GuestPort" 22 VBoxManage setextradata "Guest OS Name" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/HostPort" 2222 ===== Bridge ===== 讓 Guest OS 的網路直接和 Host 的網卡接在一起。 ==== 安裝 uml-utilities 和 bridge-utils ==== apt-get install uml-utilities bridge-utils ==== 產生 tap 連接 ==== 其中 <username> 為登入的使用者名稱。 tunctl -t tap0 -u <username> 成功後會出現: Set 'tap0' persistent and owned by uid xxxx ==== 產生 bridge ==== 此 bridge 名稱為 br0。 brctl addbr br0 ==== 開啟網卡的 promiscuous 模式 ==== ifconfig eth0 0.0.0.0 promisc ==== 將真實網卡加入 bridge 的一端 ==== brctl addif br0 eth0 ==== 將真實網卡的設定值設置到 br0 ==== ifconfig br0 192.168.x.x ==== 將產生的 tap 加入 bridge 另一端 ==== brctl addif br0 tap0 ==== 啟動 tap ==== ifconfig tap0 up ==== 設定 tun 讀寫權限 ==== chmod 0666 /dev/net/tun ==== 設定虛擬機器的網路卡介面 ==== Setting -> Network -> Adapter0 選 HostInterface,Interface Name 填入 tap1。 Guest OS 的 IP 需和真實網卡同一個網域即可。 ==== 關閉 bridge ==== <code> brctl delif br0 eth0 brctl delif br0 tap0 brctl delbr br0 ifconfig tap0 down ifconfig br0 down ifconfig eth0 down ifconfig eth0 up </code> ===== USB 支援 ===== comming soon......? ===== 參考 ===== Port forwarding:http://www.virtualbox.org/download/1.6.2/UserManual.pdf chapter:6.4.1 http://www.blog.arun-prabha.com/2007/05/07/installing-virtualbox-and-windows-using-virtualbox-in-ubuntu/ http://kate.babyface.com.tw/NetAdmin/25200802VirtualBox/ ====== VMware Server ====== ===== Virtuatopia: VMware Server 2.0 Essentials ===== http://www.virtuatopia.com/index.php/VMware_Server_2.0_Essentials ====== Xen ====== ===== Virtuatopia: Xen Virtualization Essentials ===== http://www.virtuatopia.com/index.php/Xen_Virtualization_Essentials
software/virtualmachine.1238146597.txt.gz
· 上一次變更: 2009/03/27 17:36 由
wenpei
頁面工具
顯示頁面
舊版
反向連結
回到頁頂