How to Install OpenNebula MiniOne on Debian 10

I’ve had problems installing MiniOne of OpenNebula in Debian 10, following the steps of the kick-star guide.

The original steps are:

wget ‘https://github.com/OpenNebula/minione/releases/latest/download/minione’
sudo bash minione

The first step works correctly but the second one has the next error when you executing it:

jrv@nostromo:~/Documents/uoc/pec2/pregunta1$ sudo bash minione
[sudo] password for jrv:

### Checks & detection
Checking distribution and version [Debian 1 5.10] FAILED
Consider running with “–force” to override

and when I executed it with –force:

jrv@nostromo:~/Documents/uoc/pec2/pregunta1$ sudo bash minione –force

### Checks & detection
Checking distribution and version [Debian 1 5.10] IGNORED Will try to install if repository exists
Checking augeas is installed SKIP will try to install
Checking free disk space IGNORE
Checking apt-transport-https is installed SKIP will try to install
Checking AppArmor SKIP will try to modify
Checking for present ssh key SKIP
Checking (iptables|netfilter)-persistent are installed SKIP will try to install

### Main deployment steps:
Install OpenNebula frontend version 5.10
Configure bridge minionebr with IP 172.16.100.1/24
Enable NAT over wlp58s0
Modify AppArmor
Install OpenNebula KVM node
Export appliance and update VM template
Install augeas-tools apt-transport-https iptables-persistent netfilter-persistent

Do you agree? [yes/no]:
yes

### Installation
Updating APT cache OK
Install augeas-tools apt-transport-https iptables-persistent netfilter-persistent OK
Download augeas lens oned.aug OK
Creating bridge interface minionebr OK
Bring bridge interfaces up OK
Configuring NAT using iptables OK
Saving iptables changes OK
Installing DNSMasq OK
Starting DNSMasq OK
Configuring repositories OK
Updating APT cache FAILED

— STDERR —
E: The repository ‘https://downloads.opennebula.org/repo/5.10/Debian/1 stable Release’ does not have a Release file.
————–

The problem is inside the script minione in the line 669:

echo “deb https://downloads.opennebula.org/repo/${VERSION}/${DISTNAME}/${DISTVER} stable opennebula”

You must change the DISTVER variable for 10:

echo “deb https://downloads.opennebula.org/repo/${VERSION}/${DISTNAME}/10 stable opennebula” \

Then before execute the installation again, you must execute:

jrv@nostromo:~/Documents/uoc/pec2/pregunta1$ sudo bash minione –purge

and the installation will work fine:

root@minione:/home/jrv# bash minione –force

### Checks & detection
Checking distribution and version [Debian 10 5.10] IGNORED Will try to install if repository exists
Checking augeas is installed SKIP will try to install
Checking curl is installed SKIP will try to install
Checking bridge-utils are installed SKIP will try to install
Checking apt-transport-https is installed SKIP will try to install
Checking AppArmor SKIP will try to modify
Checking for present ssh key SKIP
Checking (iptables|netfilter)-persistent are installed SKIP will try to install

### Main deployment steps:
Install OpenNebula frontend version 5.10
Configure bridge minionebr with IP 172.16.100.1/24
Enable NAT over enp1s0
Modify AppArmor
Install OpenNebula KVM node
Export appliance and update VM template
Install augeas-tools curl bridge-utils apt-transport-https iptables-persistent netfilter-persistent

Do you agree? [yes/no]:
yes

### Installation
Updating APT cache OK
Install augeas-tools curl bridge-utils apt-transport-https iptables-persistent netfilter-persistent OK
Download augeas lens oned.aug OK
Creating bridge interface minionebr OK
Bring bridge interfaces up OK
Enabling IPv4 forward OK
Configuring NAT using iptables OK
Saving iptables changes OK
Installing DNSMasq OK
Starting DNSMasq OK
Configuring repositories OK
Updating APT cache OK
Installing OpenNebula packages OK
Installing OpenNebula node packages OK
Updating AppArmor OK
Disable default libvirtd networking OK
Restart libvirtd OK

### Configuration
Switching OneGate endpoint in oned.conf OK
Switching scheduler interval in oned.conf OK
Setting initial password for current user and oneadmin OK
Changing WebUI to listen on port 80 OK
Starting OpenNebula services OK
Enabling OpenNebula services OK
Add ssh key to oneadmin user OK
Update ssh configs to allow VM addresses reusig OK
Ensure own hostname is resolvable OK
Checking OpenNebula is working OK
Disabling ssh from virtual network OK
Adding localhost ssh key to known_hosts OK
Testing ssh connection to localhost OK
Updating datastores, TM_MAD=qcow2, SHARED=yes OK
Creating KVM host OK
Creating virtual network OK
Exporting [CentOS 7] from Marketplace to local datastore OK
Updating VM template OK

### Report
OpenNebula 5.10 was installed
Sunstone [the webui] is runninng on:
http://192.168.122.34/
Use following to login:
user: oneadmin
password: YT4PAFaRmO
jrv@nostromo:~/Documents/uoc/pec2/pregunta1$

Enjoy!!!

5 comments

  1. Jan Orel · · Reply

    Hello

    I was about to fix the issue in the MiniONE itself but I can’t reproduce it. Could you try to run the following 3 commands on your debian10 host?

    lsb_release -sr
    cat /etc/os-release
    cat /etc/debian_version

    Also, feel free to open an issue on https://github.com/OpenNebula/minione/issues in such a case.

    Thanks, Jan

    1. Hi Jan,

      I’m working in this platform:

      – Lenovo T470s
      – SO: Linux nostromo 4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+deb10u2 (2019-11-11) x86_64 GNU/Linux
      – QEMU+KVM: QEMU emulator version 3.1.0 (Debian 1:3.1+dfsg-8+deb10u4)
      – VM: CPUs: 2 / Memory: 4194304 KiB
      – VM SO:

      lsb_release -sr -> 10

      cat /etc/os-release:
      PRETTY_NAME=”Debian GNU/Linux 10 (buster)”
      NAME=”Debian GNU/Linux”
      VERSION_ID=”10″
      VERSION=”10 (buster)”
      VERSION_CODENAME=buster
      ID=debian
      HOME_URL=”https://www.debian.org/”
      SUPPORT_URL=”https://www.debian.org/support”
      BUG_REPORT_URL=”https://bugs.debian.org/”

      cat /etc/debian_version -> 10.3

      – OpenNebula: OpenNebula 5.10.1

      Should you need any further information, please let me know.

      Regards. JR.

  2. Jan Orel · · Reply

    Thanks, it was already fixed in the master branch and will be part of the next release

    https://github.com/OpenNebula/minione/commit/10e2c9a4da760acc4bde7cb6c9aacaa196fba652

    1. Thank you very much indeed. JR.

  3. Khoa Huynh Tan · · Reply

    Checking cpu virtualization capabilities SKIP QEMU will be used
    Checking SELinux SKIP will try to disable
    Checking minionebr interface is not present FAILED
    Consider running with “–force” to override

    i can’t fix it , can you help me

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: