Hello! Will someone please tell me where I am going wrong in my steps? I am using a FRESH Ubuntu 8.10 (not even updates), the VBOX GUI, iptables rules flushed, and all CLI commands are ran from a non-root user account...
1. create xp from iso (created new virtual disk)
2. close out VirtualBox GUI
3. run user@ubuntu:~$ VBoxManage setextradata "xp2" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/web/GuestPort" 81
4. run user@ubuntu:~$ VBoxManage setextradata "xp2" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/web/HostPort" 81
5. run user@ubuntu:~$ VBoxManage setextradata "xp2" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/web/Protocol" TCP
6. output of VBoxManage getextradata "xp2" enumerate
Key: GUI/SaveMountedAtRuntime, Value: yes
Key: GUI/LastWindowPostion, Value: 1647,371,640,527
Key: GUI/Fullscreen, Value: off
Key: GUI/Seamless, Value: off
Key: GUI/AutoresizeGuest, Value: on
Key: VBoxInternal/Devices/pcnet/0/LUN#0/Config/web/GuestPort, Value: 81
Key: VBoxInternal/Devices/pcnet/0/LUN#0/Config/web/HostPort, Value: 81
Key: VBoxInternal/Devices/pcnet/0/LUN#0/Config/web/Protocol, Value: TCP
7. start VBOX GUI and verify xp vm settings are NAT
8. Start xp VM
9. VirtualBox error - failed to start vm xp2
NAT#0: configuration error: failed to set up redirection of 81 to 10.0.2.15:81. Probably a conflict with existing services or other rules (VERR_NAT_REDIR_SETUP).
Unknown error creating VM (VERR_NAT_REDIR_SETUP).
Result Code:
NS_ERROR_FAILURE (0x80004005)
Component:
Console
Interface:
IConsole {e3c6d4a1-a935-47ca-b16d-f9e9c496e53e}
I think I'm doing what the white papers say. Any help would be much appreciated. Thanks...
[Solved] unable to perform port forwarding...
-
Sasquatch
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
Re: unable to perform port forwarding...
In Linux, a non-root user can't open ports below 1024. Why do you think they give the example of mapping port 22 to 2222, and not just 22, or 222?
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
-
frank
- Oracle Corporation
- Posts: 3362
- Joined: 7. Jun 2007, 09:11
- Primary OS: Debian Sid
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Linux, Windows
- Location: Dresden, Germany
- Contact:
Re: unable to perform port forwarding...
Please refer to the user manual section 6.4.3. In short: A host port < 1024 will not work on Linux hosts. Just use another port >= 1024 on the host side and your VM will start fine.
Re: unable to perform port forwarding...
Hi guys, thanks so much for helping me with this.
Changed host port to 1025, guest port to 8080:
(same error)
NAT#0: configuration error: failed to set up redirection of 1025 to 10.0.2.15:8080. Probably a conflict with existing services or other rules (VERR_NAT_REDIR_SETUP).
Unknown error creating VM (VERR_NAT_REDIR_SETUP).
Result Code:
NS_ERROR_FAILURE (0x80004005)
Component:
Console
Interface:
IConsole {e3c6d4a1-a935-47ca-b16d-f9e9c496e53e}
I actually got the same error as before when trying the 22 to 2222 example after googleing, so I left mapping 81 to 81 in my original post, which was wrong. Sorry.
Any information I can give you guys to shed some more light on the issue?
Thanks again
Changed host port to 1025, guest port to 8080:
(same error)
NAT#0: configuration error: failed to set up redirection of 1025 to 10.0.2.15:8080. Probably a conflict with existing services or other rules (VERR_NAT_REDIR_SETUP).
Unknown error creating VM (VERR_NAT_REDIR_SETUP).
Result Code:
NS_ERROR_FAILURE (0x80004005)
Component:
Console
Interface:
IConsole {e3c6d4a1-a935-47ca-b16d-f9e9c496e53e}
I actually got the same error as before when trying the 22 to 2222 example after googleing, so I left mapping 81 to 81 in my original post, which was wrong. Sorry.
Any information I can give you guys to shed some more light on the issue?
Thanks again
-
Sasquatch
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
Re: unable to perform port forwarding...
Check your <machine>.xml file and remove any port forwarding rules, then execute this:
Make sure that there isn't a service already listening to port 8080 like a local proxy on the Host.
Code: Select all
VBoxManage setextradata "xp2" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/web/GuestPort" 8
VBoxManage setextradata "xp2" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/web/HostPort" 8080
VBoxManage setextradata "xp2" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/web/Protocol" TCPRead the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
Re: unable to perform port forwarding...
Sasquatch, thanks for your help again! I was able to find what I was looking for.
-
SIFE2
- Posts: 1
- Joined: 20. Aug 2009, 15:28
- Primary OS: MS Windows XP
- VBox Version: OSE other
- Guest OSses: FreeBSD
Re: unable to perform port forwarding...
thx ,this help me .