Ask Your Question

How can I connect to my VM from outside?

asked 2013-05-09 04:00:05 -0500

henrik16 gravatar image

updated 2013-05-13 12:28:23 -0500

smaffulli gravatar image

Now that I have everything working and I can connect to my VM, can you tell me how do I associate a public IP to my VM and how I can SSH to it from the outside, without the need of ip netns? Like I saw in this steps

I have public IP address given by my school ... I'm working in a project as a student to make a cloud (OpenStack) so the question is.. How can I ssh to my VM since it's IP address is and no one of my node machines is in this network .. I want to SSH first with private IP, without nameservers.

edit retag flag offensive close merge delete


Even I want to know how the VM connects to the external world in the multinode setup.. I am able to ping my VM's with the internal IP, whereas I cannot ping to the public IP.

Please help

vedanu gravatar imagevedanu ( 2013-05-09 08:00:04 -0500 )edit

Please clarify whether that you have purchased a public IP (or your company has one that you can use) and trying to configure Openstack OR you know to configure Openstack and looking to get a public IP?

jay-janardhan gravatar imagejay-janardhan ( 2013-05-09 08:23:56 -0500 )edit

How do you ping to your VM with private address? I can only do that with nameservers :s

henrik16 gravatar imagehenrik16 ( 2013-05-09 08:40:21 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2013-05-09 11:29:41 -0500

jay-janardhan gravatar image

updated 2013-05-13 10:38:32 -0500

smaffulli gravatar image

It's been a while I tried this but here are the steps you need to follow. Public IP (aka floating IPs) are taken from a pool and NAT to private IP. First figure out your networks

 quantum net-list

then get a floaing IP

 quantum floatingip-create ext-net

get list of ports

 quantum port-list

then NAT to your private IP

quantum floatingip-associate <floatingipID> <portID>

You'll also need to update the security groups on the instance so it can accept an incoming connection from your end host.

edit flag offensive delete link more


Ok thanks jay-janardhan .. but you don't know a way to do this from the dashboard (aka horizon) ? E.g. If I have a lot's of clients I will not do that one by one... :s another question is how I can ssh to my VM if I'm in the same network as my machines are... ?

henrik16 gravatar imagehenrik16 ( 2013-05-10 03:22:48 -0500 )edit

I solved this from dashboard, creating an instance and associated floating IP.. now I can ping my VM. I have a question and I think you can answer me... I can SSH to my VM with any public key that I have?

henrik16 gravatar imagehenrik16 ( 2013-05-10 04:18:40 -0500 )edit

You'll also need to update the security groups on the instance so it can accept an incoming connection from your end host.

arosen gravatar imagearosen ( 2013-05-10 20:51:09 -0500 )edit

I've updated that and now I can ping but only with logged in with demo... If I'm with another account like mine I can't associate a floating IP because I don't know how to create a network from the dashboard... I need to know how to tell my "clients" how to do that... I know how to create the

henrik16 gravatar imagehenrik16 ( 2013-05-13 03:43:21 -0500 )edit

network but I don't know how to set the network to communicate with my network node.... Hope you understand me... Thanks!

henrik16 gravatar imagehenrik16 ( 2013-05-13 03:44:07 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2013-05-09 04:00:05 -0500

Seen: 3,370 times

Last updated: May 13 '13