How To Instantiate Virtual Machine

From CipherSpace Client Wiki
Jump to navigation Jump to search

How to Instantiate a virtual machine using Appliance (image) from CipherSpace AppMarket in OpenNebula

  1. Login to Sunstone (Sunstone URLs) (https://wiki.cipherspace.com/index.php/OpenNebula_Administrative_Functions - useful info with additional help for admin functions via UI)
  2. Select Datacenter/Zone (RHS Top corner) in which you want to create VM (ZH4, NY7, DW2) – This option might not be available to non-privileged users.
  3. Download an appliance (app) from CipherSpace App Market. You also have option download from OpenNebula AppMarket if needed.
    1. Select appliance you want to download (import) to OpenNebula
      1. Storage -> Apps
      2. Filter by 'CipherSpace AppMarket'
      3. Select the 'App' you want to download (e.g: CentOS7, Debian Linux 9)
    2. To download selected App to OpenNebula
      1. Click on OpenNebula ->
      2. Enter Name (has to be unique) and VM Template Name (defaults to Name)
      3. Select ON datastore in which this App will be downloaded (should select ‘Images-qcow2’ unless there is a strong reason to use something else)
      4. Click on Download to begin download
    3. Check status of downloaded Image
      1. Storage -> Images
      2. Status will show as 'LOCKED'
      3. Once it changes to 'READY', image is ready to use
    4. ( https://wiki.cipherspace.com/index.php/How_To_Use_OpenNebula_AppMarket - Dummies guides for step 3 )
  4. Modify Template of the downloaded App/Image
    1. Templates -> VMs, Select the template which you just downloaded
    2. Click 'Update'
      1. General Tab-> Adjust Memory, CPU and VCPU value as needed, select 'KVM' as hypervisor
      2. Storage Tab -> Select the image you just downloaded, add additional Disks and select images to be used for Disk if required
      3. Network Tab -> Select one of the pre-created network (if unsure to begin with select 'Internet' and check with ‘someone in the know’ - if you are reading this document, you should know who that is) to select the appropriate virtual network
      4. Context Tab -> Add SSH contextualization and ‘Add Network contextualization’ should be selected. Add the public key of users who will access this VM. (For windows users – HowTo for generating SSH Key pair https://wiki.cipherspace.com/index.php/Using_PuTTY_with_SSH_Key_Pair -
      5. Leaving rest of the options to default – you are just about ready to instantiate an ‘internet facing VM’
      6. Click on 'Update' to save these parameters
  5. Instantiate VM
    1. Templates -> VM
    2. Select the Template which you want to instantiate as VM
    3. Click 'Instantiate'
  6. Check Status of VM
    1. Instances -> VMs
    2. Status will start with 'PENDING' and change 'RUNNING'
    3. Once it is 'RUNNING', VM is ready to use.
    4. Once running, note the assigned IP address to SSH into using your preferred SSH client
  7. For additional information to manage running VM (start, stop, pause, terminate, power off, etc.) https://wiki.cipherspace.com/index.php/How_To_Manage_OpenNebula_Virtual_Machines