[問題] VBOXHeadless網路橋接問題

看板Linux作者 (小龐)時間14年前 (2012/03/04 02:11), 編輯推噓0(009)
留言9則, 3人參與, 最新討論串1/1
小弟手上有一台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 閉源版 謝謝各位!! -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.119.135.209 ※ 編輯: pa4373 來自: 140.119.135.209 (03/04 02:19)

03/04 07:35, , 1F
你沒看到文章最後的 2009/01/04 的附加心得?
03/04 07:35, 1F

03/04 11:59, , 2F
如果大大所說的是指Host Only Networking模式,因為DHCP不
03/04 11:59, 2F

03/04 12:00, , 3F
同的關係,所以還是偏向傳統的橋接模式
03/04 12:00, 3F

03/04 12:00, , 4F
如果誤解了您的意思,不知可不可煩請大大稍微指點得清楚一
03/04 12:00, 4F

03/04 12:01, , 5F
點呢,小弟不甚感激
03/04 12:01, 5F

03/04 13:21, , 6F
設定看起來是沒問題的。檢查 host/guest 的 dhcp 設定
03/04 13:21, 6F

03/04 15:01, , 7F
我是用GUI版,但你文中引用網址附加心得和我使用狀況一致
03/04 15:01, 7F

03/04 15:01, , 8F
就是VBox較新的版本,bridge mode不用自己弄bridge介面,就
03/04 15:01, 8F

03/04 15:02, , 9F
指定附加到某個 ethx,無頭版我相信應該也是差不多才對
03/04 15:02, 9F
文章代碼(AID): #1FKbxQ35 (Linux)