juju add-machine creates CONTAINER instead of VM for lxd based controller
- Created localhost lxd based juju-controller using : juju bootstrap localhost lxd-controller
- Add new model and add new machine using : juju add-machine -n 1 --constraints=“cores=2 mem=2G” --disks=“10G,2”
- Expected lxc list type will be shown as VIRTUAL-MACHINE but still shown as CONTAINER. (Plz refer lxc list output)
When & How juju-dff35d-0 & juju-dff35d-2 type will be shown as VIRTUAL-MACHINE.?
Which command to be used to create VM type for juju add-machine ? Am i missing something here
Thank you.
user1@juju:~$ juju version
2.9.43-ubuntu-amd64
user1@juju:~$ juju clouds
Only clouds with registered credentials are shown.
There are more clouds, use --all to see them.
Clouds available on the controller:
Cloud Regions Default Type
localhost 1 localhost lxd
user1@juju:~$ juju controllers
Controller Model User Access Cloud/Region Models Nodes HA Version
lxd-controller* ceph admin superuser localhost/localhost 3 4 none 2.9.43
user1@juju:~$ juju models
Controller: lxd-controller
Model Cloud/Region Type Status Machines Cores Access Last connection
ceph* localhost/localhost lxd available 2 4 admin 2 minutes ago
controller localhost/localhost lxd available 1 - admin just now
default localhost/localhost lxd available 0 - admin 18 minutes ago
user1@juju:~$ juju machines
Machine State Address Inst id Series AZ Message
0 started 10.220.131.238 juju-dff35d-0 focal Running
2 started 10.220.131.78 juju-dff35d-2 focal Running
user1@juju:~$ juju machines
Machine State Address Inst id Series AZ Message
0 started 10.220.131.238 juju-dff35d-0 focal Running
2 started 10.220.131.78 juju-dff35d-2 focal Running
user1@juju:~$ lxc list
+---------------+---------+------------------------+------+-----------------+-----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
+---------------+---------+------------------------+------+-----------------+-----------+
| juju-3e83c9-0 | RUNNING | 10.220.131.223 (eth0) | | CONTAINER | 0 |
+---------------+---------+------------------------+------+-----------------+-----------+
| juju-dff35d-0 | RUNNING | 10.220.131.238 (eth0) | | CONTAINER | 0 |
+---------------+---------+------------------------+------+-----------------+-----------+
| juju-dff35d-2 | RUNNING | 10.220.131.78 (eth0) | | CONTAINER | 0 |
+---------------+---------+------------------------+------+-----------------+-----------+
| vm1 | RUNNING | 10.220.131.35 (enp5s0) | | VIRTUAL-MACHINE | 0 |
+---------------+---------+------------------------+------+-----------------+-----------+
NOTE: Above vm1 is manually created using "lxc launch ubuntu:22.04 vm1 --vm -c limits.cpu=2 -c limits.memory=2GiB"