I also can see existing VM on KVM hypervisor as discovered VM in Morpheus. However, I can’t select custom instance to provision on custom morpheus cloud with KVM Hypervisor. The custom instance type is grayed out when I try to provision the instance. That custom instance type uses KVM technology and QCOW2 VM image.
I’ve done some testing similar to yours, and I’ve found the same. At this time, we do not deploy a custom instance type (or the system KVM type) to a brownfield host. The hosts can be added into a cloud, such as the Morpheus cloud and VMware, for example, and the VMs on them can be discovered. You can convert them to managed using a custom instance type however, just not directly provisioning to them.
For the KVM Instance Types, they will “un-gray” when a cloud has a KVM Cluster provisioned to it. In the case for a Morpheus cloud, you can specify base deployed VMs (without KVM installed) and enter their connection information, which Morpheus will connect and configure the hosts appropriately. You’d not want to enter brownfield hosts here, otherwise Morpheus will attempt to install KVM and configure the hosts. For VMware, Morpheus will deploy the VMs for you and then also set them up as KVM hosts. Once a cluster is associated with a cloud, the KVM Instance Type will become usable.
thank you @kgawronski. for your response. and I understood.
One more thing, when I try to provision the KVM cluster with the layout “Morpheus KVM Suse Cluster” under vCenter Cloud. I faced 500 gasket error code as below screenshot. Not sure if you also got the same issue or not. My environment is using v5.5.2. I didn’t get any error when I selected “CentOS layout” for KVM cluster provision.
@aungkyawthu - In my case, I am in 5.5.3 but I did not get the same error as you are seeing above. I created a custom Ubuntu Cluster Layout and chose that. I put screenshots from my configuration for comparison. If you continue to receive that error, I’d recommend to upgrade (may resolve it) or submit a support ticket. You may find more information in the Morpheus logs too around the error Administration > Health > Morpheus Logs
I tried to install KVM on my ubuntu server (version 22.04) using Morpheus KVM Ubuntu Cluster layout under Morpheus custom cloud. KVM installation is not successful and found some error messages from/var/log/Morpheus-node/morphd/current log. It seems KVM packages are not installed.
I tested with Ubuntu 16.04. Morpheus installed KVM packages in this version. It seems KVM cluster layout template didn’t work with Ubuntu 22.04. Will raise to support team.
So some good news on KVM and Ubuntu 22. It will work in the next release 6.0.7 and 6.2.2 with a few things to be aware of. You have to enable SHA1 keys for ssh to handshake and allow morpheus to prep the box. (This is temporary as its being resolved in a separate task).
The breaking issues with ubuntu 22 involved 2 things. One is a netplan file lookup for configuring the bridge and the other was the hypervisor console password being too long for libvirt. It expects 8 characters and does not like 12. Used to libvirt would just truncate and ignore but now it throws an error.