Skip to content

Commit

Permalink
M #-: Update README, link to Wiki
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlastimil Holer committed Jun 19, 2019
1 parent 4b1be08 commit 663362b
Show file tree
Hide file tree
Showing 11 changed files with 27 additions and 184 deletions.
211 changes: 27 additions & 184 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,209 +1,52 @@
# MiniONE
# miniONE

MiniONE is an easy to use deployment tool to build an evaluation OpenNebula cloud based on either **KVM** or **LXD** (Linux containers). All necessary components to manage and run the virtual machines or containers are installed and configured on your dedicated system with just a single command run.
**miniONE** is an easy to use deployment tool to build an evaluation OpenNebula cloud based on either virtual machines (KVM) or system containers (LXD). All necessary components to manage and run the virtual machines or containers are installed and configured on your dedicated system with just a single command run.

## Requirements

- for **KVM** evaluation:
- dedicated physical host
- operating system: **CentOS 7, Ubuntu 16.04, Ubuntu 18.04, Ubuntu 18.10 or Debian 9**
- for **LXD** evaluation:
- dedicated virtual machine (*) or physical host
- operating system: **Ubuntu 18.04, Ubuntu 18.10**
- min. 2 GiB RAM
- min. 20 GiB free space on disk
- fresh default installation of the operating system with the latest updates
Common min. requirements:
- 4 GiB RAM
- 20 GiB free space on disk
- default installation of the operating system with the latest updates
- privileged user access (`root`)

(*) For example MiniONE allows to easily build a LXD/OpenNebula environment on an **Amazon VM**. The minimal recommended size is perhaps t2.medium. Just give it at least 25GB disk space and allow access to the 9869 TCP where the WebUI is running.
For KVM evaluation:
- physical host
- x86-64 Intel or AMD processor with **virt. capabilities**
- operating system:
- CentOS 7 (RHEL 7)
- Debian 9
- Ubuntu 16.04, 18.04

For LXD evaluation:
- physical host or virtual machine (e.g., Amazon EC2 VM)
- x86-64 Intel or AMD processor
- operating system:
- Ubuntu 18.04

## Quickstart

Download the [latest release](https://github.com/OpenNebula/minione/releases/latest) of the `minione` script, run it and follow the instructions on the terminal.
Download the [latest release](https://github.com/OpenNebula/minione/releases/latest) of the **miniONE** tool, run it and follow the instructions on the terminal.

### KVM evaluation
### Get KVM cloud

Run:
Run the commands to deploy the evaluation cloud:

```
wget 'https://github.com/OpenNebula/minione/releases/latest/download/minione'
sudo bash minione
```

### LXD evaluation
### Get LXD cloud

Run:
Run the commands to deploy the evaluation cloud:

```
wget 'https://github.com/OpenNebula/minione/releases/latest/download/minione'
sudo bash minione --lxd
```

If the deployment ends succesfully, you now have your OpenNebula all-in-one evaluation environment ready to use! On the terminal, you'll see a deployment report with login information.

Or you can use following one-liner for download and run the MiniONE at once (add `--lxd` at your convenience):

```
wget https://github.com/OpenNebula/minione/releases/download/v5.8.0/minione && yes | bash minione
```

### Deployment Steps

- enable OpenNebula repository
- install OpenNebula frontend and KVM or LXD hypervisor
- prepare networking for virt. machines (bridge `minionebr`)
- configure firewall to provide NAT for virt. machines
- run private DNS server for virt. machines (`dnsmasq`)
- start OpenNebula and prepare user, virt. networks, datastores
- import CentOS 7 virtual machine appliance

## Advanced Deployment

The evaluation deployment tool comes with default parameters suitable for most cases. You can list all the deployment parameters by running:

```
sudo bash minione --help
```

### Examples

Start a verbose deployment and setup LXD envirnoment instead of KVM:
```
sudo bash minione --verbose --lxd
```

Start a verbose deployment and set own password for the default OpenNebula user:

```
sudo bash minione --verbose --password MySecretPassword
```


Specify OpenNebula virtual private network IP range for new deployment:

```
sudo bash minione --vnet-address 192.168.100.0 --vnet-gateway 192.168.100.1 --vnet-ar-ip-start 192.168.100.2
```

## Try Out

### Report
Once the minione is done, you will get an overview how to connect to the web interface similar to following:

```
### Report
OpenNebula 5.8 was installed
Sunstone (the webui) is runninng on:
http://192.168.100.101:9869/
Use following to login:
user: oneadmin
password: o6ARsMAdGe
```

### Try the Admin View in the Sunstone GUI

After the minione finishes, the first thing we are going to do is to log in as oneadmin to take a look at the Admin View of Sunstone, which has more options than the other Sunstone views for a regular users.

Take a look at all the already bootstrapped resources in the cloud.

![dashboard](https://raw.githubusercontent.com/OpenNebula/minione/master/screenshots/dashboard.png)


### Try the Cloud View

With the Admin View you can do anything in OpenNebula, but you don’t want all those options for the final users! Switch to the Cloud View to see how a final user will see OpenNebula:

![switch_to_cloud_view.png](https://raw.githubusercontent.com/OpenNebula/minione/master/screenshots/switch_to_cloud_view.png)

The Cloud View interface is much simpler and targeted at end users.

Create a new Virtual Machine by clicking the `+` button. Select the only available template and click `Create`.

After clicking create you will be taken to the dashboard where you can see your running VMs.

![vm_list](https://raw.githubusercontent.com/OpenNebula/minione/master/screenshots/vm_list.png)

You can click on your VM and manage it: access it through VNC, Save its state, Reboot it, etc:

![vm_info](https://raw.githubusercontent.com/OpenNebula/minione/master/screenshots/vm_info.png)

Clicking on the Console icon will let you login into the VM. The default credentials are:

Login: root
Password: opennebula

With the oneadmin role you can customize what your cloud users can do and see.


### Quick Overview of the CLI Interface

You need to connect to the server either using the web console or using ssh. OpenNebula runs as the oneadmin user, and the main administrator should run commands as that user, therefore the first thing you need to do is to switch to oneadmin:

```
su - oneadmin
```

From the oneadmin account you can see all the already bootstrapped resources:
```
onehost list
```

There is one network created
```
$ onevnet list
```

You can see the leases and the specific configuration of the network
```
$ onevnet show 0
```

A Centos image has been created
```
$ oneimage list
```

A Virtual Machine template is registered
```
$ onetemplate list
```

You can see the template configuration if further detail
```
$ onetemplate show 0
```

### Access to MarketPlace
OpenNebula comes with predefined MarketPlace where you can get a lot of prepared images (Apps).

![vm_info](https://raw.githubusercontent.com/OpenNebula/minione/master/screenshots/market_place1.png)

There are various Linux distributions: Alpine, Centos, Debian etc and also some service images with preconfigured applications, like WordPress or GitLab.

![vm_info](https://raw.githubusercontent.com/OpenNebula/minione/master/screenshots/market_place2.png)

You can also check `LinuxContainers.org`, the LXD marketplace, backed by the [public LXD image server](https://us.images.linuxcontainers.org).

![vm_info](https://raw.githubusercontent.com/OpenNebula/minione/master/screenshots/add_linux_containers_marketplace.png)

Then get back to the `Apps` and try to search for `LXD`. `LinuxContainers.org` provides plenty of LXD containers which you can download to the datastore and try it.

![vm_info](https://raw.githubusercontent.com/OpenNebula/minione/master/screenshots/containers_app_list.png)

We can try some quite fresh Ubuntu.

![vm_info](https://raw.githubusercontent.com/OpenNebula/minione/master/screenshots/choose_image.png)

And Download it to the datastore.

![vm_info](https://raw.githubusercontent.com/OpenNebula/minione/master/screenshots/download_image.png)

Now when you go to the `Template -> VMs` section you can instantiate it.

### Further Exploration
This is just a quick overview to get you started with OpenNebula. If you liked it, you may want to check the OpenNebula documentation for more information on how to deploy OpenNebula in your infrastructure and a detailed version of the OpenNebula features.

### Troubleshooting
Logs are located in /var/log/one. Be sure to check that in order to troubleshoot. If you need assistance, head out to our forum.

Continue with detailed **[tutorial](https://github.com/OpenNebula/minione/wiki)**.

## License

Expand Down
Binary file removed screenshots/add_linux_containers_marketplace.png
Binary file not shown.
Binary file removed screenshots/choose_image.png
Binary file not shown.
Binary file removed screenshots/containers_app_list.png
Binary file not shown.
Binary file removed screenshots/dashboard.png
Binary file not shown.
Binary file removed screenshots/download_image.png
Binary file not shown.
Binary file removed screenshots/market_place1.png
Binary file not shown.
Binary file removed screenshots/market_place2.png
Binary file not shown.
Binary file removed screenshots/switch_to_cloud_view.png
Binary file not shown.
Binary file removed screenshots/vm_info.png
Binary file not shown.
Binary file removed screenshots/vm_list.png
Binary file not shown.

0 comments on commit 663362b

Please sign in to comment.