Ask Your Question

How to specify hostname for VM [closed]

asked 2013-12-14 21:25:17 -0500

stacksam gravatar image

updated 2013-12-16 15:33:48 -0500

smaffulli gravatar image

I've created a group consisting of VMs with hostnames like host01-host20. One of the VMs host05 had a problem and I had to delete it using "nova delete". Now Nova does report that it doesn't exist which means it's not in the DB anymore. When I create a new VM, it picks up the hostname as host21. But i want it to pick the missing hostname instead.

I create VM using this command nova boot --flavor <x> --image <y> --count <z> host

Any idea what's wrong and what is needed to achieve that?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by koolhead17
close date 2014-06-05 08:57:18.435613


How are you creating new instances?

larsks gravatar imagelarsks ( 2013-12-16 12:44:05 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2013-12-16 15:46:00 -0500

You may just have to force it to be host05 and be done with it.

nova boot --flavor XXX --image YYY host05

edit flag offensive delete link more


Thanks I'll give that a try.

stacksam gravatar imagestacksam ( 2013-12-17 22:21:03 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2013-12-14 21:25:17 -0500

Seen: 502 times

Last updated: Dec 16 '13