VBOXHeadless網路橋接問題 - Linux

By Delia
at 2012-03-04T02:11
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 閉源版
謝謝各位!!
--
做為區域網路裡對外服務以及檔案分享的服務
因為這是一台無頭機 平常都是用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

By Linda
at 2012-03-08T20:47
at 2012-03-08T20:47

By Emma
at 2012-03-10T22:09
at 2012-03-10T22:09

By Bethany
at 2012-03-14T19:09
at 2012-03-14T19:09

By Edward Lewis
at 2012-03-18T10:12
at 2012-03-18T10:12

By Dorothy
at 2012-03-19T19:43
at 2012-03-19T19:43

By Rosalind
at 2012-03-19T22:56
at 2012-03-19T22:56

By Necoo
at 2012-03-24T16:08
at 2012-03-24T16:08
Related Posts
執行程式時的方向鍵

By Charlie
at 2012-03-03T16:08
at 2012-03-03T16:08
Ubuntu 10.04要怎麼裝JDK??

By John
at 2012-03-03T14:22
at 2012-03-03T14:22
Jre, Jdk 安裝問題

By Yedda
at 2012-03-03T14:00
at 2012-03-03T14:00
選擇 centos 或 debian

By Gilbert
at 2012-03-02T22:52
at 2012-03-02T22:52
用wubi安裝ubuntu與既有的雙系統grub整合問題

By Faithe
at 2012-03-02T22:41
at 2012-03-02T22:41