Running Virtual Machines

In previous tutorials of this Quick Start Guide, we:

In this tutorial, we’ll use that infrastructure to deploy a fully-configured virtual machine with a ready-to-use WordPress installation, in under five minutes.

We’ll follow these high-level steps:

  1. Download the WordPress Appliance from the OpenNebula Marketplace.

  2. Instantiate the Virtual Machine for the Appliance.

  3. Verify the Installation by Connecting to WordPress.

Important

As mentioned above, in this tutorial we’ll deploy to the Edge Cluster created previously in this Quick Start Guide. To complete this tutorial, you need the Edge Cluster up and running.

Step 1. Download the WordPress Appliance from the OpenNebula Marketplace

The OpenNebula Public Marketplace is a repository of Virtual Machines and appliances which are curated, tested and certified by OpenNebula.

To access the Marketplace, first log in to Sunstone on your OpenNebula Front-end, as user oneadmin.

Open the left-hand pane (by hovering the mouse over the icons on the left), then select Storage, then Apps.

../../_images/sunstone-select_apps.png

Sunstone will display the Apps screen, showing the first page of apps that are available for download.

../../_images/sunstone-apps_list.png

Search for the app called Service WordPress - KVM. If it’s not on the list, type wordpress in the search field at the top, to filter by name.

../../_images/sunstone-apps-word_filter.png

Click Service WordPress - KVM to select it, then click the Import into Datastore icon1 icon:

../../_images/sunstone-import_wordp_to_ds.png

Sunstone will display the Download App to OpenNebula dialog:

../../_images/sunstone-download_app.png

Click Next. In the next screen, we’ll need to select a datastore. For efficiency, and to try out the cluster created in Provisioning an Edge Cluster, select the aws-cluster-image datastore:

../../_images/aws_cluster_images_datastore.png

Click Finish. Sunstone will download the appliance template and display basic information for the appliance, shown below in the Info tab:

../../_images/sunstone-wordpress_info.png

Wait for the appliance State to indicate READY. When it does, the VM will be ready to be instantiated.

Step 2. Instantiate the VM

In the left-hand pane, click Templates, then VM Templates:

../../_images/sunstone-vm_templates.png

Select Service WordPress - KVM, then click the Instantiate icon2 icon at the top:

../../_images/sunstone-vm_instantiate.png

Sunstone will display the first screen of the Instantiate VM Template wizard:

../../_images/sunstone-vm_instantiate_wiz1.png

Feel free to modify the VM’s capacity according to your requirements, or leave the default values.

Click Next. Sunstone displays the User Inputs screen, where you can modify parameters such as the security credentials for the site administrator, or SSL certificates.

../../_images/sunstone-vm_instantiate_wiz2.png

Click Next. Sunstone displays the last screen of the wizard, Advanced Options:

../../_images/sunstone-vm_instantiate_wiz3.png

In this screen we need to specify what network the VM will connect to. Select the Network tab, then click the Attach NIC button:

../../_images/sunstone-vm_instantiate_wiz4-attach_nic.png

Sunstone will display a wizard with network parameters:

../../_images/sunstone-vm_instantiate-attach_nic1.png

Click Next. Sunstone displays the Select a network screen:

../../_images/select_aws_cluster_public_network.png

Select aws-cluster-public, then click Next. Sunstone displays the final screen, Select QoS:

../../_images/sunstone-vm_instantiate-attach_nic3.png

To instantiate the VM, click Finish. Sunstone will take you to the last screen of the Instantiate VM Template wizard. To deploy the VM, click Finish.

Sunstone will deploy the VM to the AWS edge cluster, and display the VMs screen with the status of the VM. When the VM is running — as indicated by the green dot — it will be ready for your first login.

../../_images/sunstone-wordpress.png

Note

The VNC icon icon3 displayed by Sunstone does not work for accessing VMs deployed on Edge Clusters, since this access method is considered insecure and is disabled by OpenNebula.

Step 3. Connect to WordPress

Select the public IP of the VM, which is highlighted in bold (blurred in the screen shown above). Simply enter the IP in your browser, and you’ll be greeted by the famous five-minute WordPress installation process.

wordpress_install_page

That’s it — you have a working OpenNebula cloud with a WordPress up and running. Congratulations!