Opennebula 4.12.1 Installation on CentOS 7 in Virtualbox VM

Hi,

My plan was to create a single host cloud using Opennebula for testing purposes.
I used Virtualbox and created a VM using CentOS 7. After booting up the VM, I followed the tutorial as given at
http://docs.opennebula.org/4.12/design_and_installation/quick_starts/qs_centos7_kvm.html

I could install the frontend without any issues. But during installation in the node (step 2.2 in the link above), I encounter following issue. Looks like there is an issue with messagebus and nfs service. See error below.

root@localhost# systemctl enable messagebus.service
Failed to issue method call: No such file or directory
root@localhost# systemctl enable libvirtd.service
root@localhost# systemctl start libvirtd.service
root@localhost# systemctl enable nfs.service
Failed to issue method call: No such file or directory

Please let me know has anyone faced this problem and solved it. Is the combination of CentOS and Opennebula 4.12.1 causing the issue. Please advice.

My initial idea was to create 2 VMs (one frontend and one node) but I wanted to do that after single host installation.

Thanks in advance
raks

the messagebus.service is provided by the dbus package. Is it installed? it should or else you have a strange Centos 7 installation.

I can also confirm that there is absolutely no problem in running OpenNebula on 1 node with CentOS 7.

If you need to test migration, 2 nodes is obviously better.

Thank you for your reply.I checked if dbus is enabled but it returns static (meaning unit file is not enabled).

[admin@oneserver ~]$ systemctl is-enabled dbus.service
static

Enabling dbus also failed as shown below. I am basic linux user. I download centos 7 DVD from official website and using it to install opennebula. I am tempted to tru openSuse.

[admin@oneserver ~]$ sudo systemctl enable dbus.service
[sudo] password for admin:
The unit files have no [Install] section. They are not meant to be enabled
using systemctl.
Possible reasons for having this kind of units are:

  1. A unit may be statically enabled by being symlinked from another unit’s
    .wants/ or .requires/ directory.
  2. A unit’s purpose may be to act as a helper for some other unit which has
    a requirement dependency on it.
  3. A unit may be started when needed via activation (socket, path, timer,
    D-Bus, udev, scripted systemctl call, …).

Hi

Inspite of the errors thrown when enabling messagebus.service and nfs.service, I could setup Opennebula frontend and host node. My setup is as follows:
On my windows laptop, I installed virtualbox and created 2 VMs. One VM for Frontend, second VM for Node. I managed to setup a virtual network and created image, templates. I am facing problem in the last step of the tutorial, which is instantiating a VM from the template.

I am getting the following error: Domain requires KVM, but it is not available. Check that virtualisation is enabled in the host BIOS, and host configuration is setup to load the kvm modules.

I followed the steps mentioned in http://stackoverflow.com/questions/28712839/domain-requires-kvm-but-it-is-not-available-check-that-virtualization-is-enabl, but still cant make VM up and running. Do I need to make configuration changes to make it work. Please note that as my frontend and host are VMs, worker VM is created inside another VM.

[root@vm101 ~]# lsmod | grep kvm
kvm 461126 0

Here is the output of /var/log/one/0.log

Thu Apr 30 18:11:45 2015 [Z0][DiM][I]: New VM state is ACTIVE.
Thu Apr 30 18:11:45 2015 [Z0][LCM][I]: New VM state is PROLOG.
Thu Apr 30 18:13:11 2015 [Z0][LCM][I]: New VM state is BOOT
Thu Apr 30 18:13:11 2015 [Z0][VMM][I]: Generating deployment file: /var/lib/one/vms/0/deployment.0
Thu Apr 30 18:13:12 2015 [Z0][VMM][I]: ExitCode: 0
Thu Apr 30 18:13:12 2015 [Z0][VMM][I]: Successfully execute network driver operation: pre.
Thu Apr 30 18:13:13 2015 [Z0][VMM][I]: Command execution fail: cat << EOT | /var/tmp/one/vmm/kvm/deploy ‘/var/lib/one//datastores/0/0/deployment.0’ ‘192.168.186.101’ 0 192.168.186.101
Thu Apr 30 18:13:13 2015 [Z0][VMM][I]: error: Failed to create domain from /var/lib/one//datastores/0/0/deployment.0
Thu Apr 30 18:13:13 2015 [Z0][VMM][I]: error: unsupported configuration: Domain requires KVM, but it is not available. Check that virtualisation is enabled in the host BIOS, and host configuration is setup to load the kvm modules.
Thu Apr 30 18:13:13 2015 [Z0][VMM][E]: Could not create domain from /var/lib/one//datastores/0/0/deployment.0
Thu Apr 30 18:13:13 2015 [Z0][VMM][I]: ExitCode: 255
Thu Apr 30 18:13:13 2015 [Z0][VMM][I]: Failed to execute virtualization driver operation: deploy.
Thu Apr 30 18:13:13 2015 [Z0][VMM][E]: Error deploying virtual machine: Could not create domain from /var/lib/one//datastores/0/0/deployment.0
Thu Apr 30 18:13:13 2015 [Z0][DiM][I]: New VM state is FAILED

do you have enable the virtualization support in your VM? I don’t use Virtualbox but you have to enable vmx/svm flags inside your VM. To check if you have this flags, cat /proc/cpuinfo

Hi Madko,

Thanks for your comments which led to the following conclusions.

Virtual box doesn’t support nested virtualization (VM within VM) and I cannot set vmx/svm flag in a VM running in VirtualBox even f the host supports it. See these threads

https://forums.virtualbox.org/viewtopic.php?f=3&t=38241
https://www.virtualbox.org/ticket/4032

So I cannot use VMs in Virtual Box to install OpenNebula

Thanks.