VBOXHeadless網路橋接問題 - Linux

Delia avatar
By Delia
at 2012-03-04T02:11

Table of Contents

小弟手上有一台ATOM的機器安裝了Ubuntu Server 10.04 LTS
做為區域網路裡對外服務以及檔案分享的服務
因為這是一台無頭機 平常都是用SSH連回去做管理

這裡稍微說明一下我的網路架構:
所有的電腦是由一台實體的無線路由器所管理的
DHCP也是這台路由器在負責
而所有的電腦也都是透過這台路由器形成區域網路

我的需求是利用這台機器掛載三個作業系統:
宿主:Ubuntu Server 10.04 LTS
寄生:Windows XP
Ubuntu Server 10.04 LTS
因為有由外面連入連出(加上路由器的虛擬主機功能)的需求
我必須把三台電腦都提升到對等的網路層級
也就是說,在路由器底下的網路架構,
三台電腦都視為獨立的個體
所以我採用了橋接模式,而不是NAT

設定主要是參考這篇:http://kaien.kaienroid.com/blog/?p=143
建構了br0:[eth0 tap0]
tap1]
這樣的架構,並且將兩台虛擬機器對應到不同的tap上
當運行這兩台虛擬機器時,Windows XP可以順利的取得位置
但是Ubuntu Server 10.04 LTS就絲毫一點反應都沒有
曾嘗試Vboxheadless的VRDP功能也無法使用
不知各位高手有什麼見解?

最後附上一些設定資訊 希望能幫助判斷:

ifconfig結果:
br0 Link encap:Ethernet HWaddr 00:24:1d:04:11:cc
inet addr:192.168.0.102 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::224:1dff:fe04:44cc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8088641 errors:0 dropped:0 overruns:0 frame:0
TX packets:21779617 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4047184191 (4.0 GB) TX bytes:30259693411 (30.2 GB)

eth0 Link encap:Ethernet HWaddr 00:24:1d:04:11:cc
inet6 addr: fe80::224:1dff:fe04:44cc/64 Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:12520462 errors:0 dropped:0 overruns:0 frame:0
TX packets:24435912 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:10836270436 (10.8 GB) TX bytes:30414557527 (30.4 GB)
Interrupt:26 Base address:0x4000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:12167 errors:0 dropped:0 overruns:0 frame:0
TX packets:12167 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:645676 (645.6 KB) TX bytes:645676 (645.6 KB)

tap0 Link encap:Ethernet HWaddr 86:25:1b:ab:ac:fd
inet6 addr: fe80::8425:1bff:feab:acfd/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:93797 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

tap1 Link encap:Ethernet HWaddr f2:9c:45:fa:33:1c
inet6 addr: fe80::f09c:45ff:fefa:331c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:2750315 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)


vboxmanage list vms -l:
Name: XPNetApp
Guest OS: Windows XP
UUID: 1e6f5fba-84af-4e7e-a3cf-b449aadee7a8
Config file: /home/vboxcaller/VirtualBox VMs/XPNetApp/XPNetApp.vbox
Snapshot folder: /home/vboxcaller/VirtualBox VMs/XPNetApp/Snapshots
Log folder: /home/vboxcaller/VirtualBox VMs/XPNetApp/Logs
Hardware UUID: 1e6f5fba-84af-4e7e-a3cf-b449aadee7a8
Memory size: 512MB
Page Fusion: off
VRAM size: 18MB
CPU exec cap: 100%
HPET: off
Chipset: piix3
Firmware: BIOS
Number of CPUs: 1
Synthetic Cpu: off
CPUID overrides: None
Boot menu mode: message and menu
Boot Device (1): Floppy
Boot Device (2): DVD
Boot Device (3): HardDisk
Boot Device (4): Not Assigned
ACPI: on
IOAPIC: off
PAE: off
Time offset: 0 ms
RTC: local time
Hardw. virt.ext: on
Hardw. virt.ext exclusive: on
Nested Paging: on
Large Pages: off
VT-x VPID: on
State: running (since 2012-03-03T04:46:16.547000000)
Monitor count: 1
3D Acceleration: off
2D Video Acceleration: off
Teleporter Enabled: off
Teleporter Port: 0
Teleporter Address:
Teleporter Password:
Storage Controller Name (0): IDE 控制器
Storage Controller Type (0): PIIX4
Storage Controller Instance Number (0): 0
Storage Controller Max Port Count (0): 2
Storage Controller Port Count (0): 2
Storage Controller Bootable (0): on
IDE 控制器 (0, 0): /home/vboxcaller/vdi/XPNetApp.vdi (UUID: 8450c63e-fe5e-43d2-bc62-2a4c3753e645)
IDE 控制器 (1, 0): Empty
NIC 1: MAC: 0800270972D1, Attachment: Bridged Interface 'tap1', Cable connected: on, Trace: off (file: none), Type: Am79C973, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny
NIC 2: disabled
NIC 3: disabled
NIC 4: disabled
NIC 5: disabled
NIC 6: disabled
NIC 7: disabled
NIC 8: disabled
Pointing Device: PS/2 Mouse
Keyboard Device: PS/2 Keyboard
UART 1: disabled
UART 2: disabled
Audio: enabled (Driver: PulseAudio, Controller: AC97)
Clipboard Mode: Bidirectional
VRDE: enabled (Address 0.0.0.0, Ports 3389, MultiConn: off, ReuseSingleConn: off, Authentication type: null)
Video redirection: disabled
USB: disabled

USB Device Filters:

<none>

Shared folders:

Name: 'windows_live', Host path: '/home/bigbrothers/windows-live' (machine mapping), writable
Name: 'samba-shared', Host path: '/home/bigbrothers/samba-shared' (machine mapping), writable

Guest:

Configured memory balloon size: 0 MB


Name: Spokesman
Guest OS: Ubuntu (64 bit)
UUID: 340d5d80-5b98-4a7a-a0b4-9ad8440a47d2
Config file: /home/vboxcaller/VirtualBox VMs/Spokesman/Spokesman.vbox
Snapshot folder: /home/vboxcaller/VirtualBox VMs/Spokesman/Snapshots
Log folder: /home/vboxcaller/VirtualBox VMs/Spokesman/Logs
Hardware UUID: 340d5d80-5b98-4a7a-a0b4-9ad8440a47d2
Memory size: 512MB
Page Fusion: off
VRAM size: 12MB
CPU exec cap: 100%
HPET: off
Chipset: piix3
Firmware: BIOS
Number of CPUs: 1
Synthetic Cpu: off
CPUID overrides: None
Boot menu mode: message and menu
Boot Device (1): HardDisk
Boot Device (2): Not Assigned
Boot Device (3): Not Assigned
Boot Device (4): Not Assigned
ACPI: on
IOAPIC: on
PAE: off
Time offset: 0 ms
RTC: UTC
Hardw. virt.ext: on
Hardw. virt.ext exclusive: off
Nested Paging: on
Large Pages: on
VT-x VPID: on
State: powered off (since 2012-03-03T18:08:29.355000000)
Monitor count: 1
3D Acceleration: off
2D Video Acceleration: off
Teleporter Enabled: off
Teleporter Port: 0
Teleporter Address:
Teleporter Password:
Storage Controller Name (0): SATA 控制器
Storage Controller Type (0): IntelAhci
Storage Controller Instance Number (0): 0
Storage Controller Max Port Count (0): 30
Storage Controller Port Count (0): 1
Storage Controller Bootable (0): on
SATA 控制器 (0, 0): /home/vboxcaller/vdi/Spokesman.vdi (UUID: a7f1a323-d6ac-47d5-bf3b-31f34d757de4)
NIC 1: MAC: 0800273F05B3, Attachment: Bridged Interface 'tap0', Cable connected: on, Trace: off (file: none), Type: 82545EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny
NIC 2: disabled
NIC 3: disabled
NIC 4: disabled
NIC 5: disabled
NIC 6: disabled
NIC 7: disabled
NIC 8: disabled
Pointing Device: PS/2 Mouse
Keyboard Device: PS/2 Keyboard
UART 1: disabled
UART 2: disabled
Audio: disabled
Clipboard Mode: Bidirectional
VRDE: enabled (Address 0.0.0.0, Ports , MultiConn: off, ReuseSingleConn: off, Authentication type: null)
Video redirection: disabled
USB: disabled

USB Device Filters:

<none>

Shared folders:

Name: 'www', Host path: '/home/bigbrothers/www' (machine mapping), writable

Guest:

Configured memory balloon size: 0 MB


VirtualBox版本:4.1.8 閉源版
謝謝各位!!


--
Tags: Linux

All Comments

Linda avatar
By Linda
at 2012-03-08T20:47
你沒看到文章最後的 2009/01/04 的附加心得?
Emma avatar
By Emma
at 2012-03-10T22:09
如果大大所說的是指Host Only Networking模式,因為DHCP不
Bethany avatar
By Bethany
at 2012-03-14T19:09
同的關係,所以還是偏向傳統的橋接模式
如果誤解了您的意思,不知可不可煩請大大稍微指點得清楚一
Edward Lewis avatar
By Edward Lewis
at 2012-03-18T10:12
點呢,小弟不甚感激
Dorothy avatar
By Dorothy
at 2012-03-19T19:43
設定看起來是沒問題的。檢查 host/guest 的 dhcp 設定
Rosalind avatar
By Rosalind
at 2012-03-19T22:56
我是用GUI版,但你文中引用網址附加心得和我使用狀況一致
就是VBox較新的版本,bridge mode不用自己弄bridge介面,就
Necoo avatar
By Necoo
at 2012-03-24T16:08
指定附加到某個 ethx,無頭版我相信應該也是差不多才對

執行程式時的方向鍵

Charlie avatar
By Charlie
at 2012-03-03T16:08
我在 command line 底下執行程式時 在 windows 上按方向鍵就可以左右移動光標 但現在只會變成 ^[[D ^[[C 像是執行下面這個程式: #include andlt;stdio.handgt; int main() { getchar(); } 就會出現這個問題 我要怎麼做才 ...

Ubuntu 10.04要怎麼裝JDK??

John avatar
By John
at 2012-03-03T14:22
※ 引述《iwhiori (玉米)》之銘言: : http://source.android.com/source/initializing.html : Installing the JDK : The Sun JDK is no longer in Ubuntuand#39;s main package ...

Jre, Jdk 安裝問題

Yedda avatar
By Yedda
at 2012-03-03T14:00
網路上有找到很多方法安裝了,不過還是出了點問題, 不知道怎麼解決所以想請問一下版友們 我下載了 jre-6u31-rpm.bin 以及 jdk-6u31-rpm.bin 使用 Java 官網的方法執行安裝程序 chmod a+x jre-6u31-rpm.bin //修改之後權限為 -rwxrwxr- ...

選擇 centos 或 debian

Gilbert avatar
By Gilbert
at 2012-03-02T22:52
※ 引述《pgyfr (跑跑)》之銘言: : 時間過得好快, 一下子 Debian 用五年了, 剛好要換機器, 順便再次評估要選擇 : CentOS 6.2 或 Debian 6.0.4 : 依序討論1. 常用軟體 : 2. 安全性 : 3. 虛擬機支援 : 4 ...

用wubi安裝ubuntu與既有的雙系統grub整合問題

Faithe avatar
By Faithe
at 2012-03-02T22:41
各位先進好 小弟的問題是這樣的 本來我的系統是Fedora 12 + Win7 雙OS (請先忽略為什麼不是裝Fedora新版的問題) 開機選單是使用Fedora的grub做管理 因為開發上的需要安裝Ubuntu 11.10 我就想說不如就用wubi安裝Ubuntu在Windows內 這樣比較 ...