# Running opennebula as VM

**URL:** <https://forum.opennebula.io/t/running-opennebula-as-vm/975>\
**Category:** Integration Support\
**Created:** [July 8, 2015, 10:06am UTC](https://forum.opennebula.io/t/running-opennebula-as-vm/975 "2015-07-08T10:06:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![varadarajan](https://avatars.discourse-cdn.com/v4/letter/v/898d66/32.png) [@varadarajan](https://forum.opennebula.io/u/varadarajan)\
**Post date:** [July 8, 2015, 10:06am UTC](https://forum.opennebula.io/t/running-opennebula-as-vm/975/1 "2015-07-08T10:06:16Z")

</div>

Please refer to [http://docs.opennebula.org/4.12/advanced\_administration/high\_availability/oneha.html](http://docs.opennebula.org/4.12/advanced_administration/high_availability/oneha.html)

“OpenNebula can be (and it is usually) installed in a virtual machine.  
Therefore the previous one-server1 and one-server2 can be in fact  
virtual machines running in the same physical host (you can run them  
in different hosts, requiring a different fencing plugin)”

I am wondering what is the best practice for running Opennebula as VM. Can anyone comment on that ?  
Do we use virt-install to create VMs ? Virt manager ? Since KVM is installed this should not be a problem.  
Any comments ?

Cheers

Rad

---

<div class="post-metadata">

**Author:** ![stefan](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@stefan](https://forum.opennebula.io/u/stefan)\
**Post date:** [July 10, 2015, 6:39am UTC](https://forum.opennebula.io/t/running-opennebula-as-vm/975/2 "2015-07-10T06:39:26Z")

</div>

We have two frontends and two sunstone servers in seperate VM’s on seperate hosts. We manage them through virsh / virt-manager. We have one primary master (running opennebula) and one slave that use MySQL master-master replication. We don’t do automatic failovers (not for opennebula, not for vm’s running on hosts) so no fancing is needed.

---

<div class="post-metadata">

**Author:** ![varadarajan](https://avatars.discourse-cdn.com/v4/letter/v/898d66/32.png) [@varadarajan](https://forum.opennebula.io/u/varadarajan)\
**Post date:** [July 10, 2015, 1:33pm UTC](https://forum.opennebula.io/t/running-opennebula-as-vm/975/3 "2015-07-10T13:33:13Z")

</div>

Hi !

Thank you . I remember you from Berlin Conference and we had good time ! Do you remember ? I would like to know why you chose to run opennebula as VM when you had physical hosts at your disposal .

Cheers

Rad

---

<div class="post-metadata">

**Author:** ![DaD](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/dad/32/8466_2.png) [@DaD](https://forum.opennebula.io/u/DaD)\
**Post date:** [July 13, 2015, 10:13am UTC](https://forum.opennebula.io/t/running-opennebula-as-vm/975/4 "2015-07-13T10:13:21Z")

</div>

varadarajan [forum@opennebula.org](mailto:forum@opennebula.org) writes:

[…]

> I am wondering what is the best practice for running Opennebula as VM. Can anyone comment on that ?  
> Do we use virt-install to create VMs ? Virt manager ? Since KVM is installed this should not be a problem.  
> Any comments ?

Hello,

We use corosync/pacemaker with a shared /var/lib/one/datastores.

We actually do not have redundant setup, the frontend VM is started  
somewhere else when a node get fenced.

Here is the cleaned pacemaker configuration if you want to see how it  
looks:  
[pcmk.conf](https://canada1.discourse-cdn.com/flex031/uploads/opennebula/original/2X/4/4367a2c3ea756b8526eadd45dcb23ab80d8e1e9b.conf) (7.56 KB)

[signature.asc](https://canada1.discourse-cdn.com/flex031/uploads/opennebula/original/2X/0/0eda2c390633312b2c1e1cc3c1a6d370e25432f0.asc) (342 Bytes)

---

<div class="post-metadata">

**Author:** ![FrancJP](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/francjp/32/7690_2.png) [@FrancJP](https://forum.opennebula.io/u/FrancJP)\
**Post date:** [June 25, 2025, 4:06pm UTC](https://forum.opennebula.io/t/running-opennebula-as-vm/975/5 "2025-06-25T16:06:00Z")

</div>


