Difference between revisions of "Create your first instance"

From Luna Node
Jump to: navigation, search
 
(5 intermediate revisions by one user not shown)
Line 1: Line 1:
Once your Luna Node Dynamic account has been provisioned, you can login to your account via [https://www.lunanode.com/clientarea.php?action=products My Services] → Dynamic hosting account → Authenticate into panel. You can also login directly from https://dynamic.lunanode.com/, although this login is disabled by default; open a support ticket if you would like to be able to login without having to go through the billing pnel.
+
First, login from https://dynamic.lunanode.com/. If you don't have an account yet, sign up at https://dynamic.lunanode.com/register.
  
Luna Node Dynamic templates are cloud images, which can get an SSH public key from a metadata server on boot and configure that in the authorized_keys file. If you wish to use this feature, '''upload your SSH key''' from Account tab → [https://dynamic.lunanode.com/panel/key.php Manage SSH keypairs]; on this page, give a label for your key and paste the public key (beginning with ssh-rsa and ending with your computer's hostname).
+
Templates come with cloud-init, which can automatically obtain an SSH public key from a metadata server on the first boot and append that key to the authorized_keys file. So, if you want to login with SSH key, '''upload your SSH key''' from the [https://dynamic.lunanode.com/panel/key SSH Keys] page: enter a label for your key, paste the public key (beginning with ssh-rsa and ending with your computer's hostname), and then hit Add.
  
Now, let's provision a VM instance. Virtual machines are managed via the Virtual Machines tab; after selecting this tab, press the "Create a new virtual machine" button. On the new VM page, you will first be asked to select a region; currently Luna Node Dynamic is only in Toronto, so pick Toronto. Then, enter any hostname for your VM, along with a plan selection (use 512 MB if you are just trying out a new VM). Pick an image to start with, for example "Ubuntu 12.04 32-bit (template)" (ISO images require manual installation of the operating system, while templates are setup automatically). For '''storage type''', local image storage is usually the best option as it offers higher disk I/O; if you need automatic failover in case a node goes down, pick cloud volume storage (the price is the same). Finally, if you uploaded a keypair earlier, select it so that so that it will be inserted into the template on boot. Hit "Create virtual machine".
+
Now, let's provision a VM. Select the "Create VM" sidebar page. You will first be asked to select a region; we have locations in Toronto, Montreal, and Roubaix; SSD instances are only available in Toronto, and Montreal and Roubaix include DDoS filtering at no extra cost. After selecting a region, enter a hostname for your VM and select a plan (if you're just testing, you can just start with the smallest 512 MB plan). Then, pick an image, like "Ubuntu 14.04 64-bit (template)". ISO images require manual installation of the operating system over VNC, while templates are setup automatically. Finally, if you uploaded a keypair earlier, select it so that so that it will be inserted into the template on initial setup. Hit "Create virtual machine".
  
You will now be returned to the Virtual Machines tab. The VM will initially show up with "Unknown" for the details, because it has not finished provisioning yet; you can meanwhile still select the VM from the list to view your VM details. Once it finishes building (this should be pretty quick for installation from a template), you should see a primary and private IP address; if you don't see a primary IP, try clicking on "Associate floating IP". After another minute or so, your VM should finish the first boot process (it'll need to resize partitions and such, so the first boot takes a while). Once booted, you can SSH into your VM through the public IP address. If you did not use a keypair, the initial login information will be displayed on the VM details page.
+
You will now be returned to the Virtual Machines tab, where you can select your new VM. Once it finishes building (this should take less than 60 seconds for installation from a template), you should see a primary and private IP address, and after a bit more time, your VM should finish the first boot process (it'll need to resize partitions and perform other one-time operations, so the first boot may take longer). Once booted, you can SSH into your VM through the public IP address. If you did not use a keypair, the initial login information will be displayed on the VM details page; after logging in with the specified username and password, you can use "sudo su" to login as root ([[Frequently asked questions#I cannot login as root!|see the FAQ]] if you want to set a root password).
  
 
Congratulations, you have your first instance up! We hope you'll find our services useful.
 
Congratulations, you have your first instance up! We hope you'll find our services useful.
Line 13: Line 13:
 
If you are unfamiliar with SSH keypairs and how to generate or use them to connect to your virtual machine, see the links below:
 
If you are unfamiliar with SSH keypairs and how to generate or use them to connect to your virtual machine, see the links below:
  
* [https://www.digitalocean.com/community/articles/how-to-create-ssh-keys-with-putty-to-connect-to-a-vps Keypairs on PuTTY (Windows)]
+
* [https://www.howtoforge.com/ssh_key_based_logins_putty Keypairs on PuTTY (Windows)]
* [https://www.digitalocean.com/community/articles/how-to-set-up-ssh-keys--2 Keypairs on UNIX-based operating systems]
+
* [http://www.cyberciti.biz/faq/how-to-set-up-ssh-keys-on-linux-unix/ Keypairs on UNIX-based operating systems]
  
 
Once you have generated your keypair, you can export it and copy the contents into the "Public key" box when uploading it to lndynamic. The cloud images take care of the steps of disabling root login without a password and appending your public key to the authorized_keys file.
 
Once you have generated your keypair, you can export it and copy the contents into the "Public key" box when uploading it to lndynamic. The cloud images take care of the steps of disabling root login without a password and appending your public key to the authorized_keys file.
  
 
If you do not want to use SSH keypairs, simply do not select anything under keypair, and a password will be set up for login after the VM boots the first time. This password will be displayed on the VM detais page.
 
If you do not want to use SSH keypairs, simply do not select anything under keypair, and a password will be set up for login after the VM boots the first time. This password will be displayed on the VM detais page.

Latest revision as of 22:57, 5 January 2016

First, login from https://dynamic.lunanode.com/. If you don't have an account yet, sign up at https://dynamic.lunanode.com/register.

Templates come with cloud-init, which can automatically obtain an SSH public key from a metadata server on the first boot and append that key to the authorized_keys file. So, if you want to login with SSH key, upload your SSH key from the SSH Keys page: enter a label for your key, paste the public key (beginning with ssh-rsa and ending with your computer's hostname), and then hit Add.

Now, let's provision a VM. Select the "Create VM" sidebar page. You will first be asked to select a region; we have locations in Toronto, Montreal, and Roubaix; SSD instances are only available in Toronto, and Montreal and Roubaix include DDoS filtering at no extra cost. After selecting a region, enter a hostname for your VM and select a plan (if you're just testing, you can just start with the smallest 512 MB plan). Then, pick an image, like "Ubuntu 14.04 64-bit (template)". ISO images require manual installation of the operating system over VNC, while templates are setup automatically. Finally, if you uploaded a keypair earlier, select it so that so that it will be inserted into the template on initial setup. Hit "Create virtual machine".

You will now be returned to the Virtual Machines tab, where you can select your new VM. Once it finishes building (this should take less than 60 seconds for installation from a template), you should see a primary and private IP address, and after a bit more time, your VM should finish the first boot process (it'll need to resize partitions and perform other one-time operations, so the first boot may take longer). Once booted, you can SSH into your VM through the public IP address. If you did not use a keypair, the initial login information will be displayed on the VM details page; after logging in with the specified username and password, you can use "sudo su" to login as root (see the FAQ if you want to set a root password).

Congratulations, you have your first instance up! We hope you'll find our services useful.

Using SSH keypairs

If you are unfamiliar with SSH keypairs and how to generate or use them to connect to your virtual machine, see the links below:

Once you have generated your keypair, you can export it and copy the contents into the "Public key" box when uploading it to lndynamic. The cloud images take care of the steps of disabling root login without a password and appending your public key to the authorized_keys file.

If you do not want to use SSH keypairs, simply do not select anything under keypair, and a password will be set up for login after the VM boots the first time. This password will be displayed on the VM detais page.