VBoxManage.exe

This is for discussing general topics about how to use VirtualBox.
Post Reply
mysterio
Posts: 6
Joined: 29. Apr 2011, 06:49
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Ubuntu

VBoxManage.exe

Post by mysterio »

Help me, i am noob about vm, and i don't know how to start vboxmanage.exe, i open it, i see a cmd window for a half of second, then it's closing! What should i do ??? i need to write these codes there

Code: Select all

$ VBoxManage setextradata  "VBoxInternal/Devices/e1000/0/LUN#0/Config/ssh/HostPort" 2222
$ VBoxManage setextradata  "VBoxInternal/Devices/e1000/0/LUN#0/Config/ssh/GuestPort" 22
$ VBoxManage setextradata  "VBoxInternal/Devices/e1000/0/LUN#0/Config/ssh/Protocol" TCP
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VBoxManage.exe

Post by Perryg »

You run those commands in a terminal/command window. VBoxManage is the package that you are telling to do what ever it is you need to do from the command line.
The commands that you are trying to run though are from an older version of VirtualBox. Make sure that the command syntax is still the right ones for your version.
See Chapter 6.3.1 Configuring port forwarding with NAT
mysterio
Posts: 6
Joined: 29. Apr 2011, 06:49
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Ubuntu

Re: VBoxManage.exe

Post by mysterio »

Sorry, i Have a host WINDOWs, and ubuntu in Virtual box, and i need to connect to my VM with putty, in VM settings i have NAT, but when i connect, i see NETWORK ERROR CONNECTION REFUSED, i've installed openssh-server, What should i do ?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VBoxManage.exe

Post by Perryg »

If you read Chapter 6.3.1 Configuring port forwarding with NAT you will see the actual command to set the port and then you use putty to access the guest with the host IP and the port that you assign to the guest.

If you have Ver. 4.0.* of VirtualBox you can even set the port to forward in the network section of the guest in the VirtualBox main manager.
mysterio
Posts: 6
Joined: 29. Apr 2011, 06:49
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Ubuntu

Re: VBoxManage.exe

Post by mysterio »

I have VirtualBox 4.6, am i doing correct settings?
Attachments
123123.JPG
123123.JPG (96.47 KiB) Viewed 4180 times
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VBoxManage.exe

Post by Perryg »

That should work but I don't understand everyone's affection of using the local loopback for the IP address. This can cause issues down the road.
Why not use the hosts IP address and the guest IP address instead of the local loopback?
mysterio
Posts: 6
Joined: 29. Apr 2011, 06:49
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Ubuntu

Re: VBoxManage.exe

Post by mysterio »

Sorry, i don't understand, can you write, what should i write there??? Because i still have connection refused....I know that in NAT my ip is 10.0.2.15
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VBoxManage.exe

Post by Perryg »

On your host, open a command window and type ipconfig to find out what the IP address is? You already have the guest ip address.

Also you say "i've installed openssh-server" but have you configured it to allow connections?
mysterio
Posts: 6
Joined: 29. Apr 2011, 06:49
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Ubuntu

Re: VBoxManage.exe

Post by mysterio »

i will reply, when try, to the openssh - no, ) what should i do ? ))
mysterio
Posts: 6
Joined: 29. Apr 2011, 06:49
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Ubuntu

Re: VBoxManage.exe

Post by mysterio »

THANK YOU !!!! EVERYTHING WORKS !!!! topic is closed
blindbaby
Posts: 2
Joined: 10. Oct 2011, 10:37
Primary OS: MS Windows 7
VBox Version: OSE Debian
Guest OSses: windows7

Re: VBoxManage.exe

Post by blindbaby »

I had the same problem. Now the problem has already been solved. It works fine!!!buy levitra
Last edited by blindbaby on 12. Dec 2011, 08:22, edited 1 time in total.
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: VBoxManage.exe

Post by Sasquatch »

It's better to leave the IP address fields empty. They are not required, only the port fields are. When the fields are empty, any IP will be used to listen on and send to. As the User Manual states, giving an IP address will only ensure that the VM is accessible on that IP only, or if the Guest changes IP, it won't be accessible either. A safety feature if you like, which can backfire if used inappropriately.
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.
Post Reply