MAAS 2.6 breaks Virsh ESXi Powertype


I’ve just upgraded to 2.6 and noticed that machines with a power configuration of Virsh which are ESXi based guests are now failing to be controlled.

I have a whole bunch of ESXi guests registered in MAAS and have happily been controlling them using Virsh as their power type

If I run below command manually on the MAAS region or rack controllers it returns with no error.

virsh -c esx://root@ list --all

However on the MAAS GUI, all machines with that power type have a validation error saying
Error: Supplying extra parameters to the Virsh address is not supported.



This was changed in

Why do you need the ?no_verify=1 flag?


So I thought I’d bring this up just because it’s what I’m seeing. :joy:
I’m not really expecting a fix because bringing in ESXi Guests into MAAS is not really a production type scenario.

So the /?no_verify=1 flag? is due to the fact that the ESX machine is using a self signed certificate.
I tried dropping it but it just returns :

Error: Failed to login to virsh console.

Since then I’ve set those machines to manual power types.
I’ve also started playing with KVM pods and composable machines. MAAS 2.6 has made this really nice and easy to setup and get going :heart_eyes:


MAAS has a VMware power driver. Have you tried using that?


Yeah, it’s for vcenter, i don’t have a vcenter server, only the vsphere hosts themselves


Could you please file a bug report?


I am able to list all the VMs from VMware after I exchanged SSL certs using:
virsh -c list --all

but whenever I try to add a machine through MAAS it keeps replying "failed to detect a valid IP address from ". It seems like MaaS does not translate the hostname to its IP address which is why it does not recognize it as a valid IP.