Post

2 followers Follow
0
Avatar

How can I setup multiple VMname and IPS via sunstone ?

Hi everyone,

Sorry for my english.

I'm looking for a way, when deploying multiple instances, to set multiple hostname and multiple IPs.

For exemple, let say that I would like to deploy 10 VMs at once.
VM01 - 192.168.1.1
VM03 - 192.168.1.3
VM05 - 192.168.1.5
...


Is it possible to do such things in Sunstone ?

Thank you for your response.

Yacine FETOUH

Please sign in to leave a comment.

4 comments

0
Avatar

Hi, there are multiple options for try to achieve these result.

You have the wildcard %i, we know looking at cli the next:

--name name Name of the new VM or TEMPLATE. When
instantiating multiple VMs you can use the "%i"
wildcard to produce different names such as
vm-0, vm-1...

That means that you can use VM%i to solve the name problem, lets change to the network part:

i can recommend you two options:

- manual prepare of the one vnet itself: so you create a vnet, you create your AR (in this case starting in 192.168.1.1) knowing that you are going to instantiate machines on that network and opennebula is going to match the vm - ip properly because they are in the same order.

- Using vm hooks: this approach is more difficult, you can use hooks and develop a small script that will assign a NIC with certain ip when the vm is deployed. Here is the documentation: http://docs.opennebula.org/5.6/integration/infrastructure_integration/hooks.html?highlight=hooks 

 

Regards.

Sergio Semedi Barranco 0 votes
Comment actions Permalink
0
Avatar

Thank you for your response,

Do you have any tutorial to demonstrate this kind of configuration ?

I was looking in the vonecloud official documentation but there is only concepts.

 

Thank you very much.

Yacine FETOUH 0 votes
Comment actions Permalink
0
Avatar

Hi again,

For the moment we only have the official documentation for this, but your thoughs about the tutorial are right! maybe we should make an example in the community blog.

Stay tuned to https://opennebula.org/blog/, every month/couple of weeks a team member writes a post showing use cases or new feature.

We will take into account this example.

 

Regards.

Sergio Semedi Barranco 0 votes
Comment actions Permalink
0
Avatar

Thank you.

It would be amazing to have some tutorials for use cases.

Yacine FETOUH 0 votes
Comment actions Permalink