Jump to content
  • 0

LXD containers can be created, but not started


dutch-master
 Share

Question

Managed to install lxd and everything that comes with it on my AMD k10 system (Phenom II X4 965 proc, 16GB RAM, 120GB SSD). Then I proceeded by getting the lxd image for k10 arch and set up lxd following the Wiki by DRobbins. but launching the testcontainer as per the instructions failed with an error. After some trial and continues errors I managed to get both the lxd-generic_64 and intel westmere images installed and associated with a testcontainer:

# lxc list
+---------------+---------+------+------+-----------+-----------+
|     NAME      |  STATE  | IPV4 | IPV6 |   TYPE    | SNAPSHOTS |
+---------------+---------+------+------+-----------+-----------+
| testcon2      | STOPPED |      |      | CONTAINER | 0         |
+---------------+---------+------+------+-----------+-----------+
| testcontainer | STOPPED |      |      | CONTAINER | 0         |
+---------------+---------+------+------+-----------+-----------+

testcontainer is associated with the generic_64 image, testcon2 has the intel westmere image as its base. Attempts to launch these fail with an "error: not found" message.

The logs for both are identical (except of course for the name) and show this:

lxc info --show-log testcontainer
Name: testcontainer
Location: none
Remote: unix://
Architecture: x86_64
Created: 2021/02/28 20:51 UTC
Status: Stopped
Type: container
Profiles: default

Log:

The "location: none" instance is suspicious, so I had a look in /var/lib/lxd/containers:

ls -l /var/lib/lxd/containers/
total 0
lrwxrwxrwx 1 root root 54 Feb 28 21:53 testcon2 -> /var/lib/lxd/storage-pools/default/containers/testcon2
lrwxrwxrwx 1 root root 59 Feb 28 21:52 testcontainer -> /var/lib/lxd/storage-pools/default/containers/testcontainer

And a look inside /var/lib/lxd/storage-pools/default/containers/ resulted in:

ls -l
total 0
d--x------ 1 root root 78 Feb 28 21:53 testcon2
d--x------ 1 root root 78 Feb 28 21:52 testcontainer

I see a distinct lack of permissions, is that the root (sic ? ) cause of the issue?

 

Anything else I missed or went wrong?

 

TIA!

 

[edit: I forgot to mention that during lxd init I choose btrfs as storage backend, the relevant btrfs packages have been installed (including the maintenance package) /edit]

Edited by dutch-master
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...