Guten Tag Nikos Chantziaras,

am Sonntag, 22. Februar 2009 um 11:53 schrieben Sie:

> I need NAT + port forwarding to have access to services on the guest
> from outside the host's local network.

Let's see...

User-Manual Page 80 tells:
It is not possible to configure incoming NAT connections while the VM is running.
However you can change the settings for a VM which is currently saved (or 
powered
off at a snapshot).

------------------------------------------------------------------------
Let's start, Situation is: [GUEST]

j...@debian5:~$ sudo ifconfig
eth0      Link encap:Ethernet  HWaddr 08:00:27:6f:e1:a3  
          inet addr:10.0.2.15  Bcast:10.0.2.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe6f:e1a3/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:35 errors:0 dropped:0 overruns:0 frame:0
          TX packets:246 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:5488 (5.3 KiB)  TX bytes:31222 (30.4 KiB)
          Interrupt:11 Base address:0xc020 

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:258 errors:0 dropped:0 overruns:0 frame:0
          TX packets:258 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:16190 (15.8 KiB)  TX bytes:16190 (15.8 KiB)
------------------------------------------------------------------------
Machine is switched off in suspend Mode, see above
------------------------------------------------------------------------
Doing NAT Mappings:

administra...@jens /cygdrive/c/Programme/Sun/xVM VirtualBox
$ ./VBoxManage.exe getextradata "Debian 5" enumerate
VirtualBox Command Line Management Interface Version 2.1.4

Key: GUI/SaveMountedAtRuntime, Value: yes
Key: GUI/LastCloseAction, Value: save
Key: GUI/LastWindowPostion, Value: 193,48,1024,810
Key: GUI/Fullscreen, Value: off
Key: GUI/Seamless, Value: off
Key: GUI/AutoresizeGuest, Value: on

administra...@jens /cygdrive/c/Programme/Sun/xVM VirtualBox
$ ./VBoxManage.exe setextradata "Debian 5" 
"VBoxInternal/Devices/pcnet/0/Lun#0/Config/mytest/Protocol" TCP

administra...@jens /cygdrive/c/Programme/Sun/xVM VirtualBox
$ ./VBoxManage.exe setextradata "Debian 5" 
"VBoxInternal/Devices/pcnet/0/Lun#0/Config/mytest/GuestPort" 7777

administra...@jens /cygdrive/c/Programme/Sun/xVM VirtualBox
$ ./VBoxManage.exe setextradata "Debian 5" 
"VBoxInternal/Devices/pcnet/0/Lun#0/Config/mytest/HostPort" 7777

administra...@jens /cygdrive/c/Programme/Sun/xVM VirtualBox
$ ./VBoxManage.exe getextradata "Debian 5" enumerate

Key: GUI/SaveMountedAtRuntime, Value: yes
Key: GUI/LastCloseAction, Value: save
Key: GUI/LastWindowPostion, Value: 193,48,1024,810
Key: GUI/Fullscreen, Value: off
Key: GUI/Seamless, Value: off
Key: GUI/AutoresizeGuest, Value: on
Key: VBoxInternal/Devices/pcnet/0/Lun#0/Config/mytest/Protocol, Value: TCP
Key: VBoxInternal/Devices/pcnet/0/Lun#0/Config/mytest/GuestPort, Value: 7777
Key: VBoxInternal/Devices/pcnet/0/Lun#0/Config/mytest/HostPort, Value: 7777
------------------------------------------------------------------------
Ok, this looks fine, lets do the testing:

It is not working, you can not connect and you see nothing in netstat.
From Localhost to Localhost it is working.
------------------------------------------------------------------------
Checking the Devices:

00:00:00.638 [/Devices/pcnet/] (level 2)
00:00:00.638
00:00:00.638 [/Devices/pcnet/0/] (level 3)
00:00:00.638   Trusted       <integer> = 0x0000000000000001 (1)
00:00:00.639   PCIDeviceNo   <integer> = 0x0000000000000003 (3)
00:00:00.639   PCIFunctionNo <integer> = 0x0000000000000000 (0)
00:00:00.639
00:00:00.639 [/Devices/pcnet/0/Config/] (level 4)
00:00:00.639   Am79C973       <integer> = 0x0000000000000001 (1)
00:00:00.639   MAC            <bytes>   = "08 00 27 6f e1 a3" (cb=6)
00:00:00.639   CableConnected <integer> = 0x0000000000000001 (1)
00:00:00.639   LineSpeed      <integer> = 0x0000000000000000 (0)
00:00:00.639
00:00:00.639 [/Devices/pcnet/0/LUN#999/] (level 4)
00:00:00.639   Driver <string>  = "MainStatus" (cch=11)
00:00:00.639
00:00:00.639 [/Devices/pcnet/0/LUN#999/Config/] (level 5)
00:00:00.639   papLeds <integer> = 0x00000000010125d0 (16852432)
00:00:00.639
00:00:00.639 [/Devices/pcnet/0/LUN#0/] (level 4)
00:00:00.639   Driver <string>  = "NAT" (cch=4)
00:00:00.639
00:00:00.639 [/Devices/pcnet/0/LUN#0/Config/] (level 5)
00:00:00.639   TFTPPrefix <string>  = "C:\Dokumente und 
Einstellungen\Administrator\.VirtualBox\TFTP" (cch=62)
00:00:00.639   BootFile   <string>  = "Debian 5.pxe" (cch=13)
00:00:00.639
00:00:00.639 [/Devices/pcnet/0/Lun#0/] (level 4)
00:00:00.639
00:00:00.639 [/Devices/pcnet/0/Lun#0/Config/] (level 5)
00:00:00.639
00:00:00.639 [/Devices/pcnet/0/Lun#0/Config/mytest/] (level 6)
00:00:00.639   Protocol  <string>  = "TCP" (cch=4)
00:00:00.639   GuestPort <integer> = 0x0000000000001e61 (7777)
00:00:00.639   HostPort  <integer> = 0x0000000000001e61 (7777)
00:00:00.639
00:00:00.639 [/Devices/e1000/] (level 2)
00:00:00.639
00:00:00.639 [/Devices/serial/] (level 2)
00:00:00.639
00:00:00.639 [/Devices/parallel/] (level 2)
00:00:00.639
------------------------------------------------------------------------
Doing a reboot with the Machine...
------------------------------------------------------------------------

Does not work either, the Logfile shown nothing interesting.

00:00:30.861 PCNet#0: Init: ss32=1 GCRDRA=0x0e26f000[32] GCTDRA=0x0e0ec000[16]
00:00:31.890 NAT: DHCP offered IP address 10.0.2.15
00:00:31.895 NAT: DHCP offered IP address 10.0.2.15
00:00:33.118 NAT: IPv6 not supported
00:00:36.882 SharedFolders host service: connected, u32ClientID = 1
00:00:36.904 SharedFolders host service: request to map folder Temp
00:00:36.904 SharedFolders host service: map operation result VINF_SUCCESS.
00:00:36.904     Mapped to handle 1.
00:00:36.913 SharedFolders host service: request to map folder Install
00:00:36.913 SharedFolders host service: map operation result VINF_SUCCESS.
00:00:36.913     Mapped to handle 0.
00:00:46.365 Guest Additions capability report: (0x4) seamless: no, 
hostWindowMapping: no, graphics: yes
00:00:46.378 Display::handleDisplayResize(): uScreenId = 0, pvVRAM=033e0000 
w=1024 h=768 bpp=32 cbLine=0x1000
00:00:46.378 VBVA: Enabled.
00:00:46.378 Guest Additions capability report: (0x4) seamless: no, 
hostWindowMapping: no, graphics: yes
00:00:46.945 Guest requests mouse pointer integration
00:00:47.443 NAT: DHCP offered IP address 10.0.2.15
00:06:57.015 Guest Additions capability report: (0x5) seamless: yes, 
hostWindowMapping: no, graphics: yes


-- 
Mit freundlichen Grüßen
Jens Franik
mailto:[email protected]



_______________________________________________
vbox-users mailing list
[email protected]
http://vbox.innotek.de/mailman/listinfo/vbox-users

Reply via email to