How to access instance without IP

asked 2016-04-20 07:50:57 -0500

Nenchy gravatar image

updated 2016-04-20 08:00:06 -0500


I have one question regarding how to access instance in private network that doesn't use DHCP. So instance is created, it doesn't have IP address since DHCP in private network is disabled (I want to manually enter IP address to instance from that subnet later on). I could access instance through Console, but what if instance doesn't allow login with Password, but only with keys (like Fedora, Ubuntu, CentOS cloud images)?

What to do in that case?

Thank you, Nenchy

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-04-20 14:39:56 -0500

Bose gravatar image

Use cloud-init script in "Post Creation" tab during instance creation.

The example of cloudinit script to inject password on the default user is the follow:

password: myVerySecretePassword
chpasswd: {expire: False}
ssh_pwauth: True

Default username for instance usually are "ubuntu" for ubuntu iso, "centos" for centos iso and so on

edit flag offensive delete link more


Great, great... Thank you for this response. Worked like charm...

Nenchy gravatar imageNenchy ( 2016-05-04 07:43:36 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2016-04-20 07:50:57 -0500

Seen: 177 times

Last updated: Apr 20 '16