canonical / lxd-ui

Easy and accessible container and virtual machine management. A browser interface for LXD
GNU General Public License v3.0
263 stars 33 forks source link

Fail to attach ISO when VM is running #832

Open mas-who opened 1 month ago

mas-who commented 1 month ago

When attempting to attach an ISO to a running VM using remote ceph RBD storage, an error was returned “Device cannot be added when instance is running”.

Additionally, attaching ISO to a running LXD VM instance with local storage works fine in the UI. The CLI also works for attaching ISO to a running VM with remote storage.

image

mas-who commented 1 month ago

I tried replicating the error by setting up a ceph pool inside a lxd cluster, then created an instance with the root storage volume using the ceph pool. However, when attaching an ISO (uploaded to a local non-ceph pool or ceph pool) while the instance is running, the reported error did not occur.

Also tried replicating the error with the issue reporter, unfortunately we also couldn't successfully produce this error. We agreed to reach out to the user who encountered this error, asking for more detail regarding their system setup before closing this issue.