I updated to LXD to 5.20-f3dd836 and it solve the problem of "Certified Restricted". However, when I try to create a LXD vm I got another issue:
from rackd.log
2024-02-09 17:27:47 provisioningserver.rpc.pods: [critical] server4: Failed to compose machine: RequestedMachine(hostname='nasrin', architecture='amd64/generic', cores=4, memory=20480, block_devices=[RequestedMachineBlockDevice(size=195000000000, tags=['pool1'])], interfaces=[RequestedMachineInterface(ifname=None, attach_name=None, attach_type=None, attach_options=None, attach_vlan=None, requested_ips=[], ip_mode=None)], cpu_speed=None, known_host_interfaces=[], pinned_cores=[], hugepages_backed=False)
Traceback (most recent call last):
File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/usr/lib/python3.10/threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "/snap/maas/32469/usr/lib/python3/dist-packages/twisted/_threads/_threadworker.py", line 47, in work
task()
File "/snap/maas/32469/usr/lib/python3/dist-packages/twisted/_threads/_team.py", line 182, in doWork
task()
--- <exception caught here> ---
File "/snap/maas/32469/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 244, in inContext
result = inContext.theWork() # type: ignore[attr-defined]
File "/snap/maas/32469/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 260, in <lambda>
inContext.theWork = lambda: context.call( # type: ignore[attr-defined]
File "/snap/maas/32469/usr/lib/python3/dist-packages/twisted/python/context.py", line 117, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/snap/maas/32469/usr/lib/python3/dist-packages/twisted/python/context.py", line 82, in callWithContext
return func(*args, **kw)
File "/snap/maas/32469/lib/python3.10/site-packages/provisioningserver/utils/twisted.py", line 203, in wrapper
result = func(*args, **kwargs)
File "/snap/maas/32469/lib/python3.10/site-packages/provisioningserver/drivers/pod/lxd.py", line 440, in compose
**self._get_machine_nics(request),
File "/snap/maas/32469/lib/python3.10/site-packages/provisioningserver/drivers/pod/lxd.py", line 526, in _get_machine_nics
raise LXDPodError("No host network to attach VM interfaces to")
provisioningserver.drivers.pod.lxd.LXDPodError: No host network to attach VM interfaces to
lxc storage ls
+---------+--------+------------------------------------------------+-------------+---------+---------+
| NAME | DRIVER | SOURCE | DESCRIPTION | USED BY | STATE |
+---------+--------+------------------------------------------------+-------------+---------+---------+
| default | dir | /var/snap/lxd/common/lxd/storage-pools/default | | 4 | CREATED |
+---------+--------+------------------------------------------------+-------------+---------+---------+
| pool1 | dir | /mnt/gpu4/pool1/ | | 2 | CREATED |
+---------+--------+------------------------------------------------+-------------+---------+---------+
This is a machine was created 2 weeks ago (No track of LXD version) and is using the pool1.
lxc ls
+-------+---------+-----------------------+------+-----------------+-----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
+-------+---------+-----------------------+------+-----------------+-----------+
| mpiw4 | RUNNING | 172.16.20.13 (enp5s0) | | VIRTUAL-MACHINE | 0 |
| | | 10.96.52.48 (enp6s0) | | | |
+-------+---------+-----------------------+------+-----------------+-----------+
I updated to LXD to 5.20-f3dd836 and it solve the problem of "Certified Restricted". However, when I try to create a LXD vm I got another issue:
from rackd.log
2024-02-09 17:27:47 provisioningser ver.rpc. pods: [critical] server4: Failed to compose machine: RequestedMachin e(hostname= 'nasrin' , architecture= 'amd64/ generic' , cores=4, memory=20480, block_devices= [RequestedMachi neBlockDevice( size=1950000000 00, tags=['pool1'])], interfaces= [RequestedMachi neInterface( ifname= None, attach_name=None, attach_type=None, attach_ options= None, attach_vlan=None, requested_ips=[], ip_mode=None)], cpu_speed=None, known_host_ interfaces= [], pinned_cores=[], hugepages_ backed= False) python3. 10/threading. py", line 1016, in _bootstrap_inner python3. 10/threading. py", line 953, in run _target( *self._ args, **self._kwargs) maas/32469/ usr/lib/ python3/ dist-packages/ twisted/ _threads/ _threadworker. py", line 47, in work maas/32469/ usr/lib/ python3/ dist-packages/ twisted/ _threads/ _team.py" , line 182, in doWork maas/32469/ usr/lib/ python3/ dist-packages/ twisted/ python/ threadpool. py", line 244, in inContext attr-defined] maas/32469/ usr/lib/ python3/ dist-packages/ twisted/ python/ threadpool. py", line 260, in <lambda> theWork = lambda: context.call( # type: ignore[ attr-defined] maas/32469/ usr/lib/ python3/ dist-packages/ twisted/ python/ context. py", line 117, in callWithContext text(). callWithContext (ctx, func, *args, **kw) maas/32469/ usr/lib/ python3/ dist-packages/ twisted/ python/ context. py", line 82, in callWithContext maas/32469/ lib/python3. 10/site- packages/ provisioningser ver/utils/ twisted. py", line 203, in wrapper maas/32469/ lib/python3. 10/site- packages/ provisioningser ver/drivers/ pod/lxd. py", line 440, in compose self._get_ machine_ nics(request) , maas/32469/ lib/python3. 10/site- packages/ provisioningser ver/drivers/ pod/lxd. py", line 526, in _get_machine_nics rver.drivers. pod.lxd. LXDPodError: No host network to attach VM interfaces to
Traceback (most recent call last):
File "/usr/lib/
self.run()
File "/usr/lib/
self.
File "/snap/
task()
File "/snap/
task()
--- <exception caught here> ---
File "/snap/
result = inContext.theWork() # type: ignore[
File "/snap/
inContext.
File "/snap/
return self.currentCon
File "/snap/
return func(*args, **kw)
File "/snap/
result = func(*args, **kwargs)
File "/snap/
**
File "/snap/
raise LXDPodError("No host network to attach VM interfaces to")
provisioningse
Additional Info
lxc network ls ----+-- ------- -+----- ----+-- ------- ------- +------ ------- ------- ------- +------ ------- +------ ---+--- ------+ ----+-- ------- -+----- ----+-- ------- ------- +------ ------- ------- ------- +------ ------- +------ ---+--- ------+ ----+-- ------- -+----- ----+-- ------- ------- +------ ------- ------- ------- +------ ------- +------ ---+--- ------+ ----+-- ------- -+----- ----+-- ------- ------- +------ ------- ------- ------- +------ ------- +------ ---+--- ------+ ----+-- ------- -+----- ----+-- ------- ------- +------ ------- ------- ------- +------ ------- +------ ---+--- ------+ ----+-- ------- -+----- ----+-- ------- ------- +------ ------- ------- ------- +------ ------- +------ ---+--- ------+ ----+-- ------- -+----- ----+-- ------- ------- +------ ------- ------- ------- +------ ------- +------ ---+--- ------+ ----+-- ------- -+----- ----+-- ------- ------- +------ ------- ------- ------- +------ ------- +------ ---+--- ------+ ----+-- ------- -+----- ----+-- ------- ------- +------ ------- ------- ------- +------ ------- +------ ---+--- ------+ ----+-- ------- -+----- ----+-- ------- ------- +------ ------- ------- ------- +------ ------- +------ ---+--- ------+ 6541:5f80: :1/64 | | 4 | CREATED | ----+-- ------- -+----- ----+-- ------- ------- +------ ------- ------- ------- +------ ------- +------ ---+--- ------+
+------
| NAME | TYPE | MANAGED | IPV4 | IPV6 | DESCRIPTION | USED BY | STATE |
+------
| br-eno1 | bridge | NO | | | | 2 | |
+------
| br-eno2 | bridge | NO | | | | 1 | |
+------
| eno1 | physical | NO | | | | 0 | |
+------
| eno2 | physical | NO | | | | 0 | |
+------
| enp9s0f0 | physical | NO | | | | 0 | |
+------
| enp9s0f1 | physical | NO | | | | 0 | |
+------
| ibp8s0 | physical | NO | | | | 0 | |
+------
| idrac | physical | NO | | | | 0 | |
+------
| lxdbr0 | bridge | YES | 10.152.74.1/24 | fd42:7ddd:
+------
lxc storage ls ---+--- -----+- ------- ------- ------- ------- ------- ------- -----+- ------- -----+- ------- -+----- ----+ ---+--- -----+- ------- ------- ------- ------- ------- ------- -----+- ------- -----+- ------- -+----- ----+ lxd/common/ lxd/storage- pools/default | | 4 | CREATED | ---+--- -----+- ------- ------- ------- ------- ------- ------- -----+- ------- -----+- ------- -+----- ----+ ---+--- -----+- ------- ------- ------- ------- ------- ------- -----+- ------- -----+- ------- -+----- ----+
+------
| NAME | DRIVER | SOURCE | DESCRIPTION | USED BY | STATE |
+------
| default | dir | /var/snap/
+------
| pool1 | dir | /mnt/gpu4/pool1/ | | 2 | CREATED |
+------
This is a machine was created 2 weeks ago (No track of LXD version) and is using the pool1.
lxc ls -+----- ----+-- ------- ------- ------- +------ +------ ------- ----+-- ------- --+ -+----- ----+-- ------- ------- ------- +------ +------ ------- ----+-- ------- --+ -+----- ----+-- ------- ------- ------- +------ +------ ------- ----+-- ------- --+
+------
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
+------
| mpiw4 | RUNNING | 172.16.20.13 (enp5s0) | | VIRTUAL-MACHINE | 0 |
| | | 10.96.52.48 (enp6s0) | | | |
+------
Pls let me know if you need more info.
Thanks.