Ask Your Question
0

is it possible to indicate hostname when create a instane? [closed]

asked 2014-08-14 10:30:52 -0500

orangeiv gravatar image

is it possible to indicate hostname when create a instane?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by orangeiv
close date 2014-08-18 18:58:27.753845

2 answers

Sort by ยป oldest newest most voted
1

answered 2014-08-15 02:51:36 -0500

T u l gravatar image

If you have cloud-init installed in your image, you may configure hostname by putting Post-Creating script (e.g. from Horizon interface)

For example, if you put

#cloud-config
hostname: example.com

It should set your hostname to example.com on first boot

Details: http://docs.openstack.org/user-guide/...

edit flag offensive delete link more

Comments

i think it is a solution i will try it, thank you

orangeiv gravatar imageorangeiv ( 2014-08-18 18:58:15 -0500 )edit
1

answered 2014-08-14 22:36:40 -0500

SGPJ gravatar image

Using CLI:

nova boot --image <uuid> --flavor m1.tiny --key_name <privatekey> --availability-zone nova:<name of the compute node>

You can specify name of the compute node.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-08-14 10:30:52 -0500

Seen: 104 times

Last updated: Aug 15 '14