Chapter 2. Managing virtual machines using Cockpit

2.1. Creating a virtual machine from a template using Cockpit

  1. Log in to Cockpit.
  2. Click the hostname, then click oVirt MachinesTemplate.
  3. Click the New VM button beside the template that you want to use.
  4. Specify a Name for your VM and click Create.

    Your new virtual machine is created on one of the hosts in your hyperconverged cluster.

2.2. Updating a virtual machine using Cockpit

You cannot currently update virtual machines using Cockpit.

See Upgrading to RHHI for Virtualization 1.5 for information about updating the Hosted Engine virtual machine using Red Hat Virtualization Manager.

See Updating Virtual Machine Guest Agents and Drivers in the Red Hat Virtualization 4.2 documentation for instructions on updating virtualization related software on a virtual machine using Red Hat Virtualization Manager.

2.3. Starting a virtual machine using Cockpit

  1. Log in to Cockpit.
  2. Click the hostname, then click oVirt MachinesCluster.
  3. Click Run beside the virtual machine you want to start.

2.4. Pausing a virtual machine using Cockpit

  1. Log in to Cockpit.
  2. Click the hostname, then click oVirt MachinesHost.
  3. Click the virtual machine to pause.
  4. Click Suspend.

2.5. Resuming a virtual machine using Cockpit

  1. Log in to Cockpit.
  2. Click the hostname, then click oVirt MachinesHost.
  3. Click the virtual machine to resume.
  4. Click Resume.

2.6. Deleting a virtual machine using Cockpit

  1. Log in to Cockpit.
  2. Click the hostname, then click oVirt MachinesHost.
  3. Click the virtual machine to delete.
  4. Click Shut Down to shut down the virtual machine before deletion.
  5. Click Delete.
  6. Confirm deletion.

2.7. Shutting down a virtual machine using Cockpit

  1. Log in to Cockpit on the host that is running the virtual machine.
  2. Click the hostname, then click oVirt MachinesHost.
  3. Click on the virtual machine you want to shut down.
  4. Click Shut Down. This shuts the virtual machine down gracefully.

    If your virtual machine is not responding, click the dropdown arrow beside Shut Down and click Force Shut Down instead.

2.8. Migrating a virtual machine to a different virtualization host using Cockpit

  1. Log in to Cockpit.
  2. Click the hostname, then click oVirt MachinesHost.
  3. Click the virtual machine to migrate.
  4. Click the oVirt section.

    The oVirt section of the virtual machine summary

    The oVirt section of the virtual machine summary

  5. Specify a host in the dropdown menu, or use the default value of Automatically selected host.
  6. Click Migrate to and wait for the virtual machine to migrate.
  7. Click the Cluster subtab and verify that the virtual machine is now running on a different host.

2.9. Accessing the console of a virtual machine using Cockpit

  1. Log in to Cockpit.
  2. Click the hostname, then click oVirt MachinesHost.
  3. Click the Console subtab.
  4. Select a Console Type.

    1. For the Hosted Engine virtual machine

      The default console type for the Hosted Engine virtual machine is Graphics Console (VNC). The console loads after several seconds.

      Graphics Console (VNC)

      The Console section of the virtual machine summary

      Click anywhere in the console and log in to the Hosted Engine virtual machine to perform any administrative operations.

    2. For any other virtual machine:

      Graphics Console in Desktop Viewer

      The Console section of the virtual machine summary

      On Red Hat Enterprise Linux based systems, click Launch Remote Viewer to launch the Remote Viewer application.

      Otherwise, use the information under Manual Connection to connect to the console with your preferred client.