translated by Google

Stratus.FI logo

Stratus.FI is a private cloud for users of FI built on software OpenNebula .

The primary purpose is to provide users with an experimentation and quick test environment, or even software production that can not be installed directly on servers managed by CVT FI (for example, Anxur or Aisa) for various reasons.

Content


Login

You can find the Stratus.FI web interface at the following URL:

https://stratus.fi.muni.cz/

Login to the web interface with faculty login and faculty password (more about the faculty account and password change here ).


Configure user context

Pre-installed virtual machine images are configured to retrieve some information from the user's settings (SSH key, superuser password, ...). Therefore, before setting up the virtual machine, these parameters must be set. Sign in to web interface , click on the top right of the user name and select Settings from the menu:

ssh key

SSH key

If you do not already have one, create an SSH key, for example, on the Aise command:

ssh-keygen -b 4096 -t rsa

The secret key is saved to your file $HOME/.ssh/id_rsa and the public there in the file id_rsa.pub . When creating, you can enter the passphrase that will be required every time you use the SSH key.

In the web interface in the user settings, click on the blue icon to the right of the Public SSH Key and copy the mouse public key to the form box - the contents of the file id_rsa.pub .

ssh-key

Encrypted password

Create an encrypted password for a virtual machine, such as a command openssl passwd -1 on Aise or other Linux:

xnekdo@aisa$ openssl passwd -1
Password: correct horse battery staple
Retype password: correct horse battery staple
$1$t2DaE4vm$i8A...630
xnekdo@aisa$

In the user settings in the Stratus.FI web interface, add a new attribute at the bottom of the Attributes section CRYPTED_PASSWORD , the value created above (string $1$... ) and save by clicking [+] .

Windows VM password

To use a virtual machine with Windows, you need to add two additional attributes to the user attributes: WIN_USERNAME with the user login name and WIN_PASSWORD containing an unencrypted login password. Here, we recommend choosing a different password than you are using on faculty systems.

Overall, contextual information looks like this:

context


I want a preinstalled virtual machine

Use the following procedure if you need to try something on a pre-installed machine (run / compile your software version, etc.) and you do not want to waste the time to install and configure the operating system.

Configure the user context as described in the previous chapter .

Open yourself main page Stratus.FI (from the other page of Stratus.FI, click on the top of the Dashboard ).

On the left side of the page, click on green [+] .

Choose from a pre-installed system menu (such as CentOS 7) and click on the selected system.

Tip: If you want to try the Stratus.FI interface quickly, use the pre-installed ttylinux minidistribution system. Here, you do not even need to configure the context: the superuser password is fixed and is displayed on the system console.

On the left side of the page, fill in the name of the virtual machine you are creating (for example, Test CentOS ) and click on the green Create on the right.

Wait for a green square instead of an orange to appear next to the name of the virtual machine you just created (restore the view using the two arrows in the circle shown at the top right).

Once the virtual machine is active, you can try to login from SSH to the IP address shown on the virtual machine that you created from the internal FI network. The console of the machine can be accessed by clicking on its title and then on the bottom left on the blue icon of the terminal. You can log in as a root with a previously entered password.

Newly created virtual machines have allocated NAT private IPv4 and public IPv6 address. There is no need to use the HTTP proxy cache to access the public IPv4 Internet. More about the technical solution you can read in our blog post in ISe.


Quotas and rules of use

Our goal is to enable users to use a large number of computing resources in the short term (8 virtual machines). Users will be able to test distributed apps for example. System resource quotes are therefore set to this mode of use.

Please be aware of other users: Current hardware does not have the capacity to allow every FI user to use all the resources permanently up to the size of his quota. The quota set does not apply to permanently running virtual machines . If we detect virtual machines running for more than a day or a maximum of small units of days, we will terminate these machines and later disable their drives.

If you need a longer-running test or production virtual machine, or a short-run amount of computing resources, contact your system administrator at unix@fi.muni.cz .

When using virtual machines, keep in mind that even here Operating rules , in particular the ban on the provision of publicly available network services without the prior approval of CVT FI.


I want to install my operating system

Cloud versus User view

The Stratus.FI web interface is available to users in two versions: a simpler cloud view that is set by default and which is described in chapter I want to create a virtual machine quickly , and a more complex user view with the menu on the left and more controls. Switch between them by clicking on the user name and choosing the last item called Views . Compare - cloud view:

Cloud view

... a user view:

User view

In this chapter, we assume that the user has the interface switched to User view .

Creating discs

For your virtual machine, you will need an installation media (CD-ROM), a system disk, and possibly a volatile disk for temporary data, such as a storage compartment. Available discs can be viewed by clicking StorageImages in the left menu.

If you do not find the installation media of the system you choose between the available drives, you can create them:

  • click on the top of the page to the top [+] ,
  • fill in the disk name (for example, CentOS 7.1511 netinst.iso ), or a description,
  • as a type, select the Read-only CD-ROM and the storage ( datastore ) to keep the cephds ,
  • Under Image location, select Upload and scroll to ISO image on your computer,
  • Create an image by clicking on the green Create above.

The newly created disk should appear in the list of available disks. In order to save disk space, please offer your ISO image to other users as well: click on the appropriate row in the disk list and add the right Use for Group and Other right in the right-hand side of the page.

Similarly, create a system disk. On the StorageImages page, click on the green [+] , fill in the disc name (for example MujTest ) or the description. As a type, choose Generic storage datablock , leave the cephds storage. Important: check the checkbox This image is persistent . (Non persistent image: created instances using copy-on-write copy of the image. When canceling VM changes will be lost. Persistent image: it can only be used by one VM, the changes are retained even after the abolition of the VM.) Next, select the source Empty disk image and enter the size. Complete the action by clicking the green Create button at the top of the page. After you create the disc, you can still click on the row in the discs list to change the disk type from DATABLOCK to OS . For Linux or Windows and faster virtio drivers, set the DRIVER attribute to virtio-scsi , otherwise the hosted operating system will access the disk as an ATA disk, and the virtualization software will needlessly emulate the I / O instructions, which is slower than using the virtio drivers .

Virtual machine template

Stratus.FI (OpenNebula) uses templates to describe how the virtual machine should look. Primarily, templates are meant to be used when you need to efficiently create a larger number of identical virtual machines, for example, for load distribution. However, each virtual machine must have a template, although we know in advance that it will always run in only one instance.

In the left menu, select TemplatesVMs to view a list of available templates (all of yours and public aliases). Click on the green [+] to create a new template. On the General tab, fill out the name of the template, the default memory size, and processor information: The CPU item determines the hardness of this virtual machine for selecting the physical node where the machine will run. Because the machine probably does not take the whole processor 100% time, set the value to about 0.2 . The VCPU tells you how many virtual machine operating systems will see the processors. Set the value to 1 .

Next, click the Storage tab at the top of the page (next to the General tab). Select (select) Image Type as Disk 0 and select the disc you created above from the list. Add another disc to blue (+) . Select Drive CD-ROM as Disk 1 . Similarly, you can add Volatile disk , such as swap . This disk is not a standalone image, it is always created again when the template instance is instantiated. One of the appropriate types of use is storage space.

On the third Network tab, you set the virtual machine's network interfaces. Connect the NIC 0 network card to the 503- net network.

The fourth OS Booting tab controls the order of disks when booting the system. To install the operating system from the CD-ROM image, select this image first (check the Boot from Disk 1 and use the arrows to move the disk above).

On the other tabs at this stage you do not have to set anything else, just click on the green Create at the top of the page.

Start virtual machine

Based on the created template, we can instantiate a virtual machine. Select the appropriate template from the list by clicking on its line, and click on the blue Instantiate from the detailed template page. Here, you can even change some of the parameters for a particular instance, especially when customizing pre-installed pre-installed images and templates. Click on the green Instantiate at the top of the page.

The newly created virtual machine is visible in the list of virtual machines: InstancesVMs from the left menu. Here are also the assigned network addresses. When installing a new system, set up the network statically; write this information to the installer. For production virtual machines, it is better to use the contextualisation packages that the system sets itself, for example addon-context-linux , addon-context-windows .

At the virtual machine console, you can use the terminal icon on the right in the virtual machine list or the VNC terminal icon from the virtual machine's detail page. Here you can continue to install the system.

After instalation

After installing, just boot from disk. Turn off the installed virtual machine ( Shutdown button at the top of the details page about this virtual machine, and then Undeploy ). Then, select the Conf tab to the far right, click the green Update Configuration, and change the boot order. Save the changes by clicking on the green Update at the top of the page. Then you can run the virtual machine with the triangle button to the right ("Play", ). Alternatively, a similar effect can be achieved by virtually canceling the virtual machine (persistent disk remains), modifying the template, and instantiating it.

Useful configuration

Finally, we recommend checking the list tips when installing the machine on FI . It contains helpful advice on how to use some of the services specific to the faculty network.


Links