Introduction
WebVirtCloud the (virtualization web interface for admins and users).
So, WebVirtCloud is a virtualization web interface for admins and users.It can delegate Virtual Machine’s to users. A noVNC viewer presents a full graphical console to the guest domain. KVM is currently the only hypervisor supported.
Features
- QEMU/KVM Hypervisor Management
- QEMU/KVM Instance Management – Create, Delete, Update
- Hypervisor & Instance web based stats
- Manage Multiple QEMU/KVM Hypervisor
- Also Manage Hypervisor Datastore pools
- Manage Hypervisor Networks
- Instance Console Access with Browsers
- Libvirt API based web management UI
- User Based Authorization and Authentication
- Also User can add SSH public key to root in Instance (Tested only Ubuntu)
- In addition to, User can change root password in Instance (Tested only Ubuntu)
- Supports cloud-init datasource interface
Installation
- Update your system
dnf update -y
- Install and configure KVM and KVM Management Tools on CentOS 8
dnf install @virt virt-top libvirt-devel libguestfs-tools -y
- Start and enable KVM libvirtd service
systemctl start libvirtd && systemctl enable libvirtd
- Download the installer script for webvirtCloud KVM Management
curl -o webvirtcloud-install.sh https://raw.githubusercontent.com/retspen/webvirtcloud/master/install.sh
- Make the script executable
chmod +x webvirtcloud-install.sh
- Then, Install WebVirtCloud KVM Management Dashboard by running the script.
./webvirtcloud-install.sh
- Agree to configure fqdn for Nginx as shown below by typing y then Enter name of nginx fqdn
- Also accept the NOVNC service and public port number and Listen address as shown
![](http://unixcop.com/wp-content/uploads/2021/12/image-33.png)
- The packages installation is ready to be executed by the script
![](http://unixcop.com/wp-content/uploads/2021/12/image-34-1024x505.png)
- Â The installation was successful, So you should copy the URL used below to access webvirtcloud web console.
![](http://unixcop.com/wp-content/uploads/2021/12/image-35-1024x602.png)
- Go to http://kvm.unixcop.com , the login screen will be showed as follows, So enter the default login credentials which are :
username: admin
Password: admin
![](http://unixcop.com/wp-content/uploads/2021/12/image-36.png)
- Also you can Update your profile information, just go to admin>profile
![](http://unixcop.com/wp-content/uploads/2021/12/image-37.png)
- This information such as your name, last name and your email address
- Also you can change your login password from here.
![](http://unixcop.com/wp-content/uploads/2021/12/image-38.png)
NOTE: Now, we will add KVM Compute Hosts to Manage, but first we will generate ssh keys to access and connect these compute hosts
- Generate ssh keys
sudo -u nginx ssh-keygen
![](http://unixcop.com/wp-content/uploads/2021/12/image-43.png)
- Â Disable StrictHostKeyChecking(Optional)
vim /var/lib/nginx/.ssh/config
- Then add the following
Host *
StrictHostKeyChecking no
- Set an appropriate ownership of the SSH configuration file to nginx user
chown nginx -R /var/lib/nginx/.ssh/config
-  Upload webvirtcloud public key into authorized keys on the compute node.
For local KVM node:
cat /var/lib/nginx/.ssh/id_rsa.pub >>~/.ssh/authorized_keys
For remote KVM node:
sudo -u nginx ssh-copy-id root@exampleCompute1
- On the WebVirt Cloud, go to Computes then choose SSH.
![](http://unixcop.com/wp-content/uploads/2021/12/image-40.png)
- Choose SSH connection to add your KVM Nodes and input KVM node details as shown below.
![](http://unixcop.com/wp-content/uploads/2021/12/image-41.png)
![](http://unixcop.com/wp-content/uploads/2021/12/image-42.png)
Conclusion
That’s it
We illustrated how to install and configure WebVirtCloud KVM and also we created a computes.
Thank you.