Eu tenho tentado configurar os 8 adaptadores de rede que o VirtualBox deve suportar, através da linha de comando. Eu preciso deles como redes interligadas (porque eu as uso para encaminhar portas de um servidor instalado na VM).
Então, os comandos que usei são assim:
VBoxManage modifyvm <myvmname> --nic5 bridged
VBoxManage modifyvm <myvmname> --bridgeadapter5 "Realtek PCIe GBE Family Controller"
VBoxManage modifyvm <myvmname> --nicpromisc5 allow-all
E assim por diante para os outros 3. Eu os configuro como ponte, defino o nome do adaptador para o nome do adaptador de rede do host e defino o modo promíscuo para permitir tudo. Eles usam o adaptador PCnet-FAST III (Am79C973). Verificando com o comando showvminfo, recebo isto:
C:\Program Files>cd Oracle
C:\Program Files\Oracle>cd VirtualBox
C:\Program Files\Oracle\VirtualBox>VBoxManage showvminfo XP2
Name: XP2
Groups: /
Guest OS: Windows XP (32 bit)
UUID: b53a67f9-7fba-43a0-9f2c-a13e9f1249ab
Config file: C:\Users\MyUserName\VirtualBox VMs\XP2\XP2.vbox
Snapshot folder: C:\Users\MyUserName\VirtualBox VMs\XP2\Snapshots
Log folder: C:\Users\MyUserName\VirtualBox VMs\XP2\Logs
Hardware UUID: b53a67f9-7fba-43a0-9f2c-a13e9f1249ab
Memory size: 256MB
Page Fusion: off
VRAM size: 18MB
CPU exec cap: 40%
HPET: off
Chipset: piix3
Firmware: BIOS
Number of CPUs: 1
PAE: off
Long Mode: off
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
Time offset: 0ms
RTC: local time
Hardw. virt.ext: on
Nested Paging: on
Large Pages: on
VT-x VPID: on
VT-x unr. exec.: on
State: running (since 2014-04-30T11:22:59.596000000)
Monitor count: 1
3D Acceleration: off
2D Video Acceleration: off
Teleporter Enabled: off
Teleporter Port: 0
Teleporter Address:
Teleporter Password:
Tracing Enabled: off
Allow Tracing to Access VM: off
Tracing Configuration:
Autostart Enabled: off
Autostart Delay: 0
Default Frontend:
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): E:\Programas\VirtualBox\Guindous XP.vdi (UUID: 70549b55-f222-4b47-be
78-52ba486e880d)
IDE (1, 0): Empty
NIC 1: MAC: 08002780847C, Attachment: Bridged Interface 'Realtek PCIe
GBE Family Controller', Cable connected: on, Trace: off (file: none), Type: Am79
C973, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: allow-all, Bandw
idth group: none
NIC 2: MAC: 080027B2180A, Attachment: Bridged Interface 'Realtek PCIe
GBE Family Controller', Cable connected: on, Trace: off (file: none), Type: Am79
C973, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: allow-all, Bandw
idth group: none
NIC 3: MAC: 080027803511, Attachment: Bridged Interface 'Realtek PCIe
GBE Family Controller', Cable connected: on, Trace: off (file: none), Type: Am79
C973, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: allow-all, Bandw
idth group: none
NIC 4: MAC: 080027DE9E9D, Attachment: Bridged Interface 'Realtek PCIe
GBE Family Controller', Cable connected: on, Trace: off (file: none), Type: Am79
C973, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: allow-all, Bandw
idth group: none
NIC 5: MAC: 080027918504, Attachment: Bridged Interface 'Realtek PCIe
GBE Family Controller', Cable connected: on, Trace: off (file: none), Type: Am79
C973, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: allow-all, Bandw
idth group: none
NIC 6: MAC: 08002719AAFC, Attachment: Bridged Interface 'Realtek PCIe
GBE Family Controller', Cable connected: off, Trace: off (file: none), Type: Am7
9C973, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: allow-all, Band
width group: none
NIC 7: MAC: 08002739E2E1, Attachment: Bridged Interface 'Realtek PCIe
GBE Family Controller', Cable connected: off, Trace: off (file: none), Type: Am7
9C973, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: allow-all, Band
width group: none
NIC 8: MAC: 0800277BD34B, Attachment: Bridged Interface 'Realtek PCIe
GBE Family Controller', Cable connected: off, Trace: off (file: none), Type: Am7
9C973, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: allow-all, Band
width group: none
Pointing Device: USB Tablet
Keyboard Device: PS/2 Keyboard
UART 1: disabled
UART 2: disabled
LPT 1: disabled
LPT 2: disabled
Audio: enabled (Driver: DSOUND, Controller: AC97)
Clipboard Mode: Bidirectional
Drag'n'drop Mode: Bidirectional
Session type: GUI/Qt
Video mode: 1920x1002x16 at 0,0
VRDE: disabled
USB: enabled
EHCI: disabled
USB Device Filters:
<none>
Available remote USB devices:
<none>
Currently Attached USB Devices:
<none>
Bandwidth groups: <none>
Shared folders: <none>
VRDE Connection: not active
Clients so far: 0
Video capturing: not active
Capture screens: 0
Capture file: C:\Users\MyUserName\VirtualBox VMs\XP2\XP2.webm
Capture dimensions: 1024x768
Capture rate: 512 kbps
Capture FPS: 25
Guest:
Configured memory balloon size: 0 MB
OS type: WindowsXP
Additions run level: 3
Additions version: 4.1.10 r76836
Guest Facilities:
Facility "VirtualBox Base Driver": active/running (last update: 2014/04/30 11:23
:09 UTC)
Facility "VirtualBox System Service": active/running (last update: 2014/04/30 11
:23:15 UTC)
Facility "VirtualBox Desktop Integration": active/running (last update: 2014/04/
30 11:23:25 UTC)
Facility "Seamless Mode": active/running (last update: 2014/04/30 11:23:09 UTC)
Facility "Graphics Mode": active/running (last update: 2014/04/30 11:23:09 UTC)
Assim, todos os adaptadores têm exatamente a mesma configuração, exceto os endereços MAC, o que é certo.
Mas ao abrir a VM (que usa o Windows XP), parece incapaz de gerenciar mais de quatro adaptadores de rede de uma só vez. Quaisquer que sejam os quatro adaptadores, os últimos a conectar mostram um ícone de erro e não funcionam.
Então, neste momento, não sei o que mais devo fazer. Eu não encontro nenhuma informação dizendo que eu deveria tocar em mais configurações no VirtualBox, e não tenho certeza se este é um erro VBox ou um erro do Windows XP.
Não consegui encontrar nenhuma referência oficial para um número máximo de nics suportados pelo XP. No entanto, encontrei este tópico , onde um usuário afirma:
I've seen as many as eight working as a result of VMWare Workstation being installed (they were virtual NICs). I expect it depends on your selected hardware more than anything.
Então, tecnicamente, o que estou tentando deve ser viável.
Brinquei um pouco com o tipo de hardware virtual, mas eles simplesmente não funcionavam.
Alguém já tentou isso? Alguma sugestão?
Muito obrigado antecipadamente.
ATUALIZAÇÃO: Parece funcionar corretamente em um convidado do Windows 7, provavelmente porque ele usa uma placa de rede virtualizada diferente (Intel PRO / 1000 MT Desktop).