OnWorks Linux and Windows Online WorkStations

Logo

Free Hosting Online for WorkStations

< Previous | Contents | Next >

3.2.3. Create the VM using uvt-kvm


In order to connect to the virtual machine once it has been created, you must have a valid SSH key available for the Ubuntu user. If your environment does not have an SSH key, you can easily create one using the following command:


$ ssh-keygen

Generating public/private rsa key pair.

Enter file in which to save the key (/home/ubuntu/.ssh/id_rsa): Enter passphrase (empty for no passphrase):

Enter same passphrase again:

Your identification has been saved in /home/ubuntu/.ssh/id_rsa. Your public key has been saved in /home/ubuntu/.ssh/id_rsa.pub. The key fingerprint is: 4d:ba:5d:57:c9:49:ef:b5:ab:71:14:56:6e:2b:ad:9b ubuntu@bionicS The key's randomart image is:

+--[ RSA 2048]----+

| ..|

| o.=|

| . **|

| + o+=|

| S . ...=.|

| o . .+ .|

| . . o o |

| * |

| E |

+-----------------+


To create of a new virtual machine using uvtool, run the following in a terminal:


$ uvt-kvm create firsttest


This will create a VM named firsttest using the current LTS cloud image available locally. If you want to specify a release to be used to create the VM, you need to use the release= filter:


$ uvt-kvm create secondtest release=bionic


uvt-kvm wait can be used to wait until the creation of the VM has completed:


$ uvt-kvm wait secondttest --insecure



Warning: secure wait for boot-finished not yet implemented; use --insecure.


Top OS Cloud Computing at OnWorks: