Cloud for Dummies - a Short Tutorial
OK, so this is a serious case of TMI (http://de.urbandictionary.com/define.php?term=TMI) for you. All you want to do is to start a virtual machine, how hard can it be?
Not really hard. When you follow this worked out example in 10 steps you will start an OpenSUSE virtual machine. Just click with me and things will start to work. Then you can change and adapt what you have done here, incorporating more information from the manual. There are many more possibilities, this is just a first gentle touching of the Cloud to familiarise yourself a bit with this new technology. Here we go!
1. The first step is to log into ONE at https://www.cloud.mwn.de/
If you don’t have an account yet, read the section on “How to Get Access” in this manual.
2. Now we select a template for our OpenSUSE VM. Luckily, this has already been prepared, so all we have to do is select it. Click on
Virtual Resources => Templates and then checkmark the oSUSE template:
3. Now we have to modify the template a bit, so that we will be able to log into our new VM after we start it. To do this, we need to make a private copy of the template, so we click “Clone”. We name this template and really clone it by pressing “Clone” in the pop-up window.
4. Now we select this private template, which we can modify in the next step and press “Update”:
5. We want to add a network interface to our VM so that we will be able to log in from the outside. But we are cautious and only select an interface to the MWN. This will keep out 99% of the hackers, but you can be sure that there are some bad guys and some hackers in the MWN as well. Since security is YOUR responsibility, you have to be careful and vigilant!
* Click on the “Network” item from the ribbon,
* select the MWN network
6. We want to insert our ssh key via the contextualization so that we don’t need a password to log into the root account.
* Click on the “Context” item from the ribbon,
* check the “SSH contextualization” box
* copy your ssh key into the text field. You find your ssh key on your local computer in the file $HOME/.ssh/id_dsa.pub. Copy the whole content.
* Then click on “Update”
7. Now you can instantiate (activate) your VM. Click the “Instantiate” button:
8. Name your new baby, so you can identify it later on. Here we call it “Test”. Very innovative… Click “Instantiate” in the pop-up window.
9. After a while we can see our new baby in the “Virtual Machines” display: 1 active VM! You can even see it’s IP address: 220.127.116.11 in this case. You may have to click on the refresh button (don't reload the page!) several times until you see the VM and then a bit later its IP.
10. You can now ssh from your local computer to your VM:
If you are not inside the MWN you will get no connection. In this case you first have to set up a VPN connection to the LRZ, then it will work.
Once you are logged in as root, you should change the root password, as the maker of the template will know the old root-PW (even though you do not know it!) and could take over your VM at any time (well, this template was made by LRZ and we are the good guys, but it is a good habit to change it, especially if you get your VM image from elsewhere). This VM has already a personal firewall in place and all ports other than 22 are blocked, so it should be reasonably safe now
This was all to get you started, enjoy your new VM and shut it down once you no longer need it, to save resources!