VMWare fusion /ESXi: No available machine matches constraints

Hi

I am lucky to have a i7 win10 laptop with 64G RAM, I like to create all-in-one VM to run mini openstack farm on ubuntu 20.4.5, using juju for learning purpose.

I looked at R1 similar issue I have now and was able install the dependency
I am still not sure this is a juju or maas or vmware issue(tried both on ESXi and Windows VMWare Fusion).
I also tried the latest juju/lxd/maas channel but only have more verbose message when running
following command.

juju bootstrap --config default-series="focal" --config bootstrap-timeout=1200 maas maas-controller
  • OS info
me@u20t01:~$ cat /etc/os-release ;df -lh |grep loop
NAME="Ubuntu"
VERSION="20.04.5 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.5 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
/dev/loop2                          64M   64M     0 100% /snap/core20/1822
/dev/loop1                          62M   62M     0 100% /snap/core20/1611
/dev/loop0                          56M   56M     0 100% /snap/core18/2679
/dev/loop5                          93M   93M     0 100% /snap/juju/21790
/dev/loop3                          38M   38M     0 100% /snap/maas-test-db/53
/dev/loop4                         143M  143M     0 100% /snap/maas/12555
/dev/loop6                          92M   92M     0 100% /snap/lxd/24061
/dev/loop7                          15M   15M     0 100% /snap/maas-cli/79
/dev/loop8                          50M   50M     0 100% /snap/snapd/17950
me@u20t01:~$

  • kvm-ok
me@u20t01:~$ kvm-ok
INFO: /dev/kvm exists
KVM acceleration can be used
me@u20t01:~$

me@u20t01:~$ sudo lsmod | sort | egrep 'kvm|vhost|vsock'
kvm                   663552  1 kvm_intel
kvm_intel             282624  0
vhost                  49152  0
vmw_vmci               69632  2 vmw_balloon,vmw_vsock_vmci_transport
vmw_vsock_virtio_transport_common    36864  0
vmw_vsock_vmci_transport    32768  1
vsock                  40960  3 vmw_vsock_virtio_transport_common,vmw_vsock_vmci_transport
me@u20t01:~$

  • maas status
me@u20t01:~$ sudo maas status
bind9                            RUNNING   pid 16313, uptime 0:38:24
dhcpd                            RUNNING   pid 19513, uptime 0:31:26
dhcpd6                           STOPPED   Not started
http                             RUNNING   pid 16677, uptime 0:37:59
ntp                              RUNNING   pid 16481, uptime 0:38:06
proxy                            RUNNING   pid 18894, uptime 0:35:43
rackd                            RUNNING   pid 16317, uptime 0:38:24
regiond                          RUNNING   pid 16320, uptime 0:38:24
syslog                           RUNNING   pid 16478, uptime 0:38:06
me@u20t01:~$

  • dmesg has DENIED message
me@u20t01:~$ dmesg |grep DENIED | tail -2
[ 2386.350657] audit: type=1400 audit(1676325338.425:1804): apparmor="DENIED" operation="open" profile="snap.maas.supervisor" name="/etc/squid/errorpage.css" pid=16768 comm="squid" requested_mask="r" denied_mask="r" fsuid=584788 ouid=0
[ 2517.704090] audit: type=1400 audit(1676325469.776:1816): apparmor="DENIED" operation="open" profile="snap.maas.supervisor" name="/etc/squid/errorpage.css" pid=18897 comm="squid" requested_mask="r" denied_mask="r" fsuid=584788 ouid=0
me@u20t01:~$

  • No available machine matches constraint showing up also when in interactive mode.
 me@u20t01:~/$ juju bootstrap --config default-series="focal" --config bootstrap-timeout=1200
Clouds
aws
aws-china
aws-gov
azure
azure-china
equinix
google
localhost
maas
oracle

Select a cloud [localhost]: maas

Enter a name for the Controller [maas-default]:

Creating Juju controller "maas-default" on maas/default
Looking for packaged Juju agent version 2.9.38 for amd64
Located Juju agent version 2.9.38-ubuntu-amd64 at https://streams.canonical.com/juju/tools/agent/2.9.38/juju-2.9.38-linux-amd64.tgz
Launching controller instance(s) on maas/default...
ERROR failed to bootstrap model: cannot start bootstrap instance in availability zone "default": failed to acquire node: No available machine matches constraints: [('agent_name', ['6a75\
c02c-37ac-48d0-841d-457222a34dca']), ('mem', ['3584']), ('zone', ['default'])] (resolved to "mem=3584.0 zone=default")
me@u20t01:~/$ 
  • I still don’t know what exactly is local/local controller option but it was created fine.
me@u20t01:~/$ juju bootstrap --config default-series="focal" --config bootstrap-timeout=1200
Clouds
aws
aws-china
aws-gov
azure
azure-china
equinix
google
localhost
maas
oracle

Select a cloud [localhost]: localhost

Enter a name for the Controller [localhost-localhost]:

Creating Juju controller "localhost-localhost" on localhost/localhost
Looking for packaged Juju agent version 2.9.38 for amd64
Located Juju agent version 2.9.38-ubuntu-amd64 at https://streams.canonical.com/juju/tools/agent/2.9.38/juju-2.9.38-linux-amd64.tgz
To configure your system to better support LXD containers, please see: https://linuxcontainers.org/lxd/docs/master/explanation/performance_tuning/
Launching controller instance(s) on localhost/localhost...
 - juju-1c87d3-0 (arch=amd64)
Installing Juju agent on bootstrap instance
Fetching Juju Dashboard 0.8.1
Waiting for address
Attempting to connect to 10.0.8.150:22
Connected to 10.0.8.150
Running machine configuration script...
Bootstrap agent now started
Contacting Juju controller at 10.0.8.150 to verify accessibility...

Bootstrap complete, controller "localhost-localhost" is now available
Controller machines are in the "controller" model
Initial model "default" added
me@u20t01:~/$

uhm, @tjyang2001, are you actually having issues or are you just worried about the apparmor message? i’m not entirely sure from your post.

@billwear

  • This command below has same issue like the R1 URL
juju bootstrap --config default-series="focal" --config bootstrap-timeout=1200 maas maas-controller
  • Error message from above command

ve command

Error: Failed instance creation: Failed creating instance record: Instance type "virtual-machine" is not supported on this server
  • It will be great if you guys can try creating a VMWare VM and show maas controller can be created inside the VMWare VM.

are you nesting VMs?

Yes, I am doing VM nesting.

win10 with i7 CPU running ubuntu20.4.5 VM on top of VMware Workstation. But I also tried this on ESXi Host running as VMWare VM. All failed at “maas maas-controller” boostrap step while using juju to bootstrap lxd controller is ok. Also when I was in class, the test VM was running as GCP VM. It should be a one step mistake along the nesting VM configuration.

it’s definitely a mistake in the VM configuration, likely nothing to do with MAAS itself. not sure how to help.

1 Like

@billwear, thanks for the follow-up of my post. Not sure why I can run (nested) ESXi VM via VMWare workstation on my Win10 laptop but I can’t get ubuntu20+maas to work. I will keep testing when I have free time.

1 Like

@tjyang2001, let us know what you find out. we can all learn things. :slight_smile: