2008年4月4日 星期五

高效能的Windows和Linux並行方案

andLinux基於coLinux,比Virtual Machine 更有效率,更省資源!
  • 己有VirtualBox,Qemu,VMware,Virtual PC,為何還要去搞 andLinux ?
  • 效率/免費: coLinux是首選,但若加上使用方便的考量,則 andLinux 則是首選。

andLinux的理想Configuration
  • 安裝 WinPcap
  • Host(WinXP) - Guest(Linux): 採用TAP driver,用在Local(本機)工具的X-Term連線
  • Guest/Host - Internet: 採用WinPcap Bridge,分享對外(Inet)連線


WinPcap Bridge + TAP 之設定:
  • Windows端:安裝WinPcap
  • Windows端的 andLinux 設定檔(settings.txt):
mem=256
root=/dev/cobd0
initrd=initrd.gz
kernel=vmlinux
exec0="pulseaudiopulseaudio.exe"
cobd0=Drivesbase.drv
cobd1=Drivesswap.drv
eth0=pcap-bridge, "網路卡名稱", 00:0C:6E:31:06:F8 (網路卡號碼)
eth1=tuntap, "TAP-Colinux", 00:11:22:33:44:55 (任意)

  • Windows端:網路卡(Virtual) TAP-Colinux 的 IP 要和 coLinux 的 DISPLAY 一致(192.168.11.1)
  • :coLinux(Guest)端網路設定:設定 Gateway、DNS、Subnet與Host一致,但 IP不可相衝突。
  • 修改 /etc/network/interfaces 內容如下
auto lo eth0 eth1
iface lo inet loopback

iface eth0 inet static
address 192.128.1.121 (依環境自訂)
gateway 192.128.1.1 (依環境自訂)
netmask 255.255.255.0 (依環境自訂)

iface eth1 inet static
address 192.168.11.150 (依環境自訂)
netmask 255.255.255.0
# gateway 192.168.11.1

  • 記得要在 Host 執行 Xming Server!

沒有留言: