If you’ve been using Red Hat Enterprise Linux (RHEL) for very long, you’ve likely created and used KVM virtual machines at some point. In RHEL 7, the primary graphical user interface tool that is used for this is virt-manager. With RHEL 8, now in beta, you’ll be able to do this from your browser.
One of the features included with RHEL 8 Beta is the ability to manage virtual machines from the Web Console (also known as Cockpit), and the announcement that virt-manager has been deprecated. The Web Console is intended to become its replacement in a subsequent release. It is recommended that you use the Web Console as your virtual machine graphical management tool.
However, virt-manager is still included in RHEL 8, and some functionality may only be available from virt-manager or from the command line.
If you’re not familiar with the Web Console, it is a web based management tool that allows you to complete many common RHEL tasks from a web browser. Want to see it in action? I’ve created a video that provides an overview of Web Console and its functionality.
The advantage of managing virtual machines from the Web Console is that you can access it from anywhere in the world you have a web browser and access to port 9090 on the RHEL 8 system. So if your workstation at your desk runs a different operating system, you can still use a web browser on it to connect to the RHEL Web Console and manage the virtual machines running on the RHEL system.
You can even manage virtual machines from a mobile device using a mobile web browser. For more information on using the Web Console from a mobile device, see “Managing RHEL 8 Beta from your Mobile Device with the Web Console.”
Getting Started
The Web Console is installed by default on most RHEL 8 installations, unless you do a minimal installation. However, the Web Console is not started by default, so the first step is to enable it with this command:
# systemctl enable --now cockpit.socket
We then need to install some additional packages, starting with the cockpit-machines package, which enables managing virtual machines from the Web Console:
# yum install cockpit-machines
The virt-viewer package can optionally be installed if you want the ability to open a graphical console in the desktop viewer from the RHEL 8 system itself (for example, if you are at the RHEL 8 system console, login, and open a web browser and access the Web Console locally).
# yum install virt-viewer
The next step is to open a web browser (either from a remote host, or from the RHEL 8 system console), and go to the RHEL 8 systems hostname or IP address, followed by :9090
to specify port 9090, for example: https://rhel8beta.example.com:9090
Log in to the Web Console with the root account, or with another RHEL account. If using another account which has sudo access setup, you can check the “Reuse my password for privileged tasks” box in order to have the Web Console use sudo for privileged tasks.
Once logged in, click on the Virtual Machines option in the menu on the left. If you don’t see this option listed in the menu, verify that you installed the cockpit-machines package as previously covered.
To create a new virtual machine, click on the Create VM button. In this example, we have downloaded a Fedora 29 ISO image to /iso/Fedora-Workstation-Live-x86_64-29-1.2.iso, and will create a new VM with it as an installation source, as shown:
Once we click Create, the VM is automatically started since we checked Immediately Start VM, and we are taken to the console of the newly created virtual machine:
While the system is booting up, we will take a look at the other tabs available.
From the Overview tab we can see basic information about the virtual machine, such as the memory, vCPUs, boot order, etc:
From the Usage tab, we can see information regarding memory and vCPU usage:
Under the Disks tab, we can see the virtual disks that are allocated to the virtual machine, and have the ability to add additional disks:
On the Networks tab, the virtual network interface devices assigned to the virtual machine are listed, and we can edit or unplug them.
Finally on the Consoles tab, we have the ability to access a console on the VM, using the web-based Graphics Console (VNC), the Graphics Console in Desktop Viewer (which uses virt-viewer), or the Serial Console.
On the upper right side of the virtual machine menu, there is the option to restart, shut down, or delete the virtual machine.
Last word
The virtual machine capabilities in the RHEL 8 Web Console can help make management of virtual machines easier, especially when you are managing a remote server through a web browser. To see a video demonstration of managing virtual machines from the Web Console in RHEL 8, view this video.
About the author
Brian Smith is a Product Manager at Red Hat focused on RHEL automation and management. He has been at Red Hat since 2018, previously working with Public Sector customers as a Technical Account Manager (TAM).
Browse by channel
Automation
The latest on IT automation for tech, teams, and environments
Artificial intelligence
Updates on the platforms that free customers to run AI workloads anywhere
Open hybrid cloud
Explore how we build a more flexible future with hybrid cloud
Security
The latest on how we reduce risks across environments and technologies
Edge computing
Updates on the platforms that simplify operations at the edge
Infrastructure
The latest on the world’s leading enterprise Linux platform
Applications
Inside our solutions to the toughest application challenges
Original shows
Entertaining stories from the makers and leaders in enterprise tech
Products
- Red Hat Enterprise Linux
- Red Hat OpenShift
- Red Hat Ansible Automation Platform
- Cloud services
- See all products
Tools
- Training and certification
- My account
- Customer support
- Developer resources
- Find a partner
- Red Hat Ecosystem Catalog
- Red Hat value calculator
- Documentation
Try, buy, & sell
Communicate
About Red Hat
We’re the world’s leading provider of enterprise open source solutions—including Linux, cloud, container, and Kubernetes. We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.
Select a language
Red Hat legal and privacy links
- About Red Hat
- Jobs
- Events
- Locations
- Contact Red Hat
- Red Hat Blog
- Diversity, equity, and inclusion
- Cool Stuff Store
- Red Hat Summit