# Details about vSphere environment

**URL:** <https://forum.opennebula.io/t/details-about-vsphere-environment/2928>\
**Category:** Product Support\
**Created:** [September 15, 2016, 6:58pm UTC](https://forum.opennebula.io/t/details-about-vsphere-environment/2928 "2016-09-15T18:58:13Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![ccesario](https://avatars.discourse-cdn.com/v4/letter/c/f19dbf/32.png) [@ccesario](https://forum.opennebula.io/u/ccesario)\
**Post date:** [September 15, 2016, 6:58pm UTC](https://forum.opennebula.io/t/details-about-vsphere-environment/2928/1 "2016-09-15T18:58:13Z")

</div>

Hi folks,

Continuing with my tests, now using VMware environment, that I already have running several production services, if possible I would like to check some points.

Could some please could clarify me about the following points!?

1. Is not possible resize the SO disk (based on template) ?

2. How can I add new disks to instance/vm and is it possible resize it?

3. It seems Opennebula contextualization does not working, if I undertood correctly.  
I have created a ubuntu template in Vmware and imported it using Sunstone, and I did the same with VM Virtual Network.  
When I start the ubuntu machine the system does not apply the hostname, ip address config. remebering that I have instaled the [https://github.com/OpenNebula/addon-context-linux/releases/download/v5.0.2/one-context-ec2\_5.0.2.deb](https://github.com/OpenNebula/addon-context-linux/releases/download/v5.0.2/one-context-ec2_5.0.2.deb).

4. When I do a shutdown by Sytem SSH/Console the SunStone show me that VM still in “Running” state, is it normal!?

There are other points that I would check, but I 'm executing several tests before ask.

best regards,

-Carlos

---

<div class="post-metadata">

**Author:** ![ccesario](https://avatars.discourse-cdn.com/v4/letter/c/f19dbf/32.png) [@ccesario](https://forum.opennebula.io/u/ccesario)\
**Post date:** [September 17, 2016, 9:28pm UTC](https://forum.opennebula.io/t/details-about-vsphere-environment/2928/2 "2016-09-17T21:28:59Z")

</div>

Any info folks!?

---

<div class="post-metadata">

**Author:** ![tinova](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/tinova/32/25_2.png) [@tinova](https://forum.opennebula.io/u/tinova)\
**Post date:** [September 19, 2016, 8:32am UTC](https://forum.opennebula.io/t/details-about-vsphere-environment/2928/3 "2016-09-19T08:32:15Z")

</div>

> 1 Is not possible resize the SO disk (based on template) ?

Not currently, we are working to add this feature for next OpenNebula releases

> 2 How can I add new disks to instance/vm and is it possible resize it? (Should I create an “Image” type “Generic Storage DataBlock” using the Vcenter Datastore previously imported ? Or need execute other procedure?)

You can import Datastores and VMDKs as images. Once imported, you can go to the Storage tab of a running VM and click on Attach Disk button. Currently it is not possible to resize it.

> 3 It seems Opennebula contextualization does not working, if I undertood correctly. I have created a ubuntu template in Vmware and imported it using Sunstone, and I did the same with VM Virtual Network. When I start the ubuntu machine the system does not apply the hostname, ip address config. remebering that I have instaled the [https://github.com/OpenNebula/addon-context-linux/releases/download/v5.0.2/one-context-ec2\_5.0.2.deb](https://github.com/OpenNebula/addon-context-linux/releases/download/v5.0.2/one-context-ec2_5.0.2.deb).

This is the correct workflow, although you are probably missing adding a new NIC to the VM Template before instantiating it, is this step also covered?

> 4 When I do a shutdown by Sytem SSH/Console the SunStone show me that VM still in “Running” state, is it normal!?

No, it should go to poweroff state in OpenNebula. What is the state of the VM in vCenter?

---

<div class="post-metadata">

**Author:** ![ccesario](https://avatars.discourse-cdn.com/v4/letter/c/f19dbf/32.png) [@ccesario](https://forum.opennebula.io/u/ccesario)\
**Post date:** [September 19, 2016, 1:18pm UTC](https://forum.opennebula.io/t/details-about-vsphere-environment/2928/4 "2016-09-19T13:18:58Z")

</div>

Hi Tino, thank you by your answers.

I’ll comment inline some doubts.

> [@tinova](#):
>
> > 1 Is not possible resize the SO disk (based on template) ?
> 
> Not currently, we are working to add this feature for next OpenNebula releases
> 
> > 2 How can I add new disks to instance/vm and is it possible resize it? (Should I create an “Image” type “Generic Storage DataBlock” using the Vcenter Datastore previously imported ? Or need execute other procedure?)
> 
> > > You can import Datastores and VMDKs as images. Once imported, you can go to the Storage tab of a running VM and click on Attach Disk button. Currently it is not possible to resize it.
> 
> In case of, the end user using the “Sunstone GUI”, all process need to be done by Sunstone.  
> The correct way is, instanciate new vm, and after that create new datablock disk and attach it on Vm previously instantiated?
> 
> > 3 It seems Opennebula contextualization does not working, if I undertood correctly. I have created a ubuntu template in Vmware and imported it using Sunstone, and I did the same with VM Virtual Network. When I start the ubuntu machine the system does not apply the hostname, ip address config. remebering that I have instaled the [https://github.com/OpenNebula/addon-context-linux/releases/download/v5.0.2/one-context-ec2\_5.0.2.deb](https://github.com/OpenNebula/addon-context-linux/releases/download/v5.0.2/one-context-ec2_5.0.2.deb).
> 
> > > This is the correct workflow, although you are probably missing adding a new NIC to the VM Template before instantiating it, is this step also covered?
> 
> What is the correct/indicated network type when imported by Sunstone Ethernet or IPv4 ?
> 
> > 4 When I do a shutdown by Sytem SSH/Console the SunStone show me that VM still in “Running” state, is it normal!?
> 
> > > No, it should go to poweroff state in OpenNebula. What is the state of the VM in vCenter?
> 
> The current state in vCenter is powerd off. look the images attached.

 ![](https://canada1.discourse-cdn.com/flex031/uploads/opennebula/original/2X/f/fa0dac40e392840f4d4038cae5da945dc3c49606.png) ![](https://canada1.discourse-cdn.com/flex031/uploads/opennebula/original/2X/8/8ea39ceab8248c2ce0a2f6e2e0fd364bbffb66b7.png) ![](https://canada1.discourse-cdn.com/flex031/uploads/opennebula/original/2X/5/5fd9a14ae8a4b258a80d78bb7e8b70d993a5f1ce.png)

---

<div class="post-metadata">

**Author:** ![tinova](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/tinova/32/25_2.png) [@tinova](https://forum.opennebula.io/u/tinova)\
**Post date:** [September 21, 2016, 10:31am UTC](https://forum.opennebula.io/t/details-about-vsphere-environment/2928/5 "2016-09-21T10:31:31Z")

</div>

> In case of, the end user using the “Sunstone GUI”, all process need to be done by Sunstone.  
> The correct way is, instanciate new vm, and after that create new datablock disk and attach it on Vm previously instantiated?

Yes, that would be the correct workflow.

> > What is the correct/indicated network type when imported by Sunstone Ethernet or IPv4 ?

With type Ethernet, OpenNebula won’t assign IP addresses to VMs, only MAC addresses. With type IP4, OpenNebula will assign IP addresses.

> > The current state in vCenter is powerd off. look the images attached.

Odd, could you send through the output of the following command executed in the OpenNebula front-end 🙂

/var/lib/one/remotes/im/vcenter.d/vcenter.rb x x x x ClusterCloud

where HID is the id of the ClusterCloud as seen in the ID column of the Host tab in Sunstone.

---

<div class="post-metadata">

**Author:** ![ccesario](https://avatars.discourse-cdn.com/v4/letter/c/f19dbf/32.png) [@ccesario](https://forum.opennebula.io/u/ccesario)\
**Post date:** [September 21, 2016, 1:42pm UTC](https://forum.opennebula.io/t/details-about-vsphere-environment/2928/6 "2016-09-21T13:42:02Z")

</div>

Hi @tinova,

Thank you by your great explanation!

I’m attaching the result of command, with VM Running and with VM PowerOff.

Thank you.

-Carlos  
[log\_vm\_poweroff.txt](https://canada1.discourse-cdn.com/flex031/uploads/opennebula/original/2X/2/29884729e89971bdf0c9c8fccdb4f2d732eef02a.txt) (5.8 KB)  
[log\_vm\_running.txt](https://canada1.discourse-cdn.com/flex031/uploads/opennebula/original/2X/6/6b9ba82bd0b50b1a537a05861545898a01c58ca4.txt) (6.1 KB)

---

<div class="post-metadata">

**Author:** ![tinova](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/tinova/32/25_2.png) [@tinova](https://forum.opennebula.io/u/tinova)\
**Post date:** [September 27, 2016, 12:39pm UTC](https://forum.opennebula.io/t/details-about-vsphere-environment/2928/7 "2016-09-27T12:39:52Z")

</div>

Thanks for the detailed feedback.

I fail to see the VM being monitored at all in the host.

Let’s see if we can find what is going on. Could you please send through:

- onehost list
- onevm show -x 11

---

<div class="post-metadata">

**Author:** ![ccesario](https://avatars.discourse-cdn.com/v4/letter/c/f19dbf/32.png) [@ccesario](https://forum.opennebula.io/u/ccesario)\
**Post date:** [September 27, 2016, 2:40pm UTC](https://forum.opennebula.io/t/details-about-vsphere-environment/2928/8 "2016-09-27T14:40:41Z")

</div>

Hello @tinova

Thank you by your feedback.  
Follow the files, a bit details is that the current vm now has ID 16, I removed the other with ID 11.

Best regards,

-Carlos  
[onevm\_show\_running.txt](https://canada1.discourse-cdn.com/flex031/uploads/opennebula/original/2X/4/49490070e5955392dc610e4419c1308049c76d1f.txt) (9.7 KB)  
[onehost\_list.txt](https://canada1.discourse-cdn.com/flex031/uploads/opennebula/original/2X/a/a3070efdf47f74788939c909280801ed0197334b.txt) (194 Bytes)  
[onevm\_show\_poweroff.txt](https://canada1.discourse-cdn.com/flex031/uploads/opennebula/original/2X/7/747ac5234ea67c778e3256b74a6cd8e5427de1e1.txt) (9.7 KB)

---

<div class="post-metadata">

**Author:** ![ccesario](https://avatars.discourse-cdn.com/v4/letter/c/f19dbf/32.png) [@ccesario](https://forum.opennebula.io/u/ccesario)\
**Post date:** [September 27, 2016, 2:46pm UTC](https://forum.opennebula.io/t/details-about-vsphere-environment/2928/9 "2016-09-27T14:46:12Z")

</div>

@tinova,

Look this other log attached pls.  
As I told, I’ve deleted the VM with ID 11 days ago. But **onevm show -x 11** show me information about that VM and any other that I already deleted.

Is it normal !? I believe that no…

-Carlos

[wrong\_data.txt](https://canada1.discourse-cdn.com/flex031/uploads/opennebula/original/2X/b/bae6be9348e8f7b7f55b7ca2849907f2695d2ae0.txt) (7.7 KB)

---

<div class="post-metadata">

**Author:** ![tinova](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/tinova/32/25_2.png) [@tinova](https://forum.opennebula.io/u/tinova)\
**Post date:** [October 4, 2016, 10:36am UTC](https://forum.opennebula.io/t/details-about-vsphere-environment/2928/10 "2016-10-04T10:36:52Z")

</div>

It is the normal behaviour, OpenNebula maintains the VM in the DB after its lifecycle ends. Please note that the state is DONE (6 is the internal number for state DONE).

Since the ID has changed, I would need the test again:

/var/lib/one/remotes/im/vcenter.d/vcenter.rb x x x x ClusterCloud

as well as the log VM 11 and the last 500 lines of oned.log

---

<div class="post-metadata">

**Author:** ![ccesario](https://avatars.discourse-cdn.com/v4/letter/c/f19dbf/32.png) [@ccesario](https://forum.opennebula.io/u/ccesario)\
**Post date:** [October 5, 2016, 1:55pm UTC](https://forum.opennebula.io/t/details-about-vsphere-environment/2928/11 "2016-10-05T13:55:09Z")

</div>

Hello @tinova,

Thank you by your help. It follow the log files.

Best regards,

-Carlos

[vm\_demo.log](https://canada1.discourse-cdn.com/flex031/uploads/opennebula/original/2X/2/2b5e865f3e792bdd1b6bdbc4aa011e4e706e45e5.log) (18.4 KB)  
[cluster\_cloud\_off.txt](https://canada1.discourse-cdn.com/flex031/uploads/opennebula/original/2X/e/e437090a93c36857a98b4186cb561398d559c196.txt) (6.3 KB)  
[cluster\_cloud\_on.txt](https://canada1.discourse-cdn.com/flex031/uploads/opennebula/original/2X/2/22ea884e85ef5b60a810ec56766cc4bbdbe7d294.txt) (6.7 KB)  
[vm\_list\_after\_poweroff.txt](https://canada1.discourse-cdn.com/flex031/uploads/opennebula/original/2X/c/c57d7ce6e5f70caafa76f8edb348b66f9f79e339.txt) (437 Bytes)  
[oned.log](https://canada1.discourse-cdn.com/flex031/uploads/opennebula/original/2X/9/91b07b1f17752cff35c3022985711864fae848cc.log) (67.5 KB)
