Hi, this is my first post. I discovered lxd and lxc containers two years ago and since then I have been a happy user promoting them among my colleagues. Great job guys, thank you for creating and maintaining it! I was able to find solutions to all minor problems so far, but now I am really lost. Please help.
I am running Ubuntu 18.04 on the host machine. My GUI profile is built folowing this post and so far it worked great.
My graphics card deceased today, it was a GTX 480. It was running with the 390.x legacy driver from NVidia. As a quick replacement I found home a GTX 280, however that required me to downgrade the driver to 340.x. Since then, the gui-enabled containers won’t start. Those using only the
default profile work fine. I also tried to use the X11 profile to launch a new container, however it does not even start downloading the image, it stop immediately with the same error.
Creating gtx280 Starting gtx280 Error: Failed to run: /snap/lxd/current/bin/lxd forkstart gtx280 /var/snap/lxd/common/lxd/containers /var/snap/lxd/common/lxd/logs/gtx280/lxc.conf: Try `lxc info --show-log local:gtx280` for more info
So looking at
lxc info --show-log local:gtx280 gives
Name: gtx280 Location: none Remote: unix:// Architecture: x86_64 Created: 2020/03/29 18:02 UTC Status: Stopped Type: container Profiles: default, x11 Log: lxc gtx280 20200329180234.355 ERROR cgfsng - cgroups/cgfsng.c:mkdir_eexist_on_last:1136 - File exists - Failed to create directory "/sys/fs/cgroup/cpuset//lxc.monitor.gtx280" lxc gtx280 20200329180234.356 ERROR cgfsng - cgroups/cgfsng.c:mkdir_eexist_on_last:1136 - File exists - Failed to create directory "/sys/fs/cgroup/cpuset//lxc.payload.gtx280" lxc gtx280 20200329180234.358 ERROR utils - utils.c:lxc_can_use_pidfd:1834 - Kernel does not support pidfds lxc gtx280 20200329180235.357 ERROR conf - conf.c:run_buffer:323 - Script exited with status 1 lxc gtx280 20200329180235.357 ERROR conf - conf.c:lxc_setup:3373 - Failed to run mount hooks lxc gtx280 20200329180235.357 ERROR start - start.c:do_start:1232 - Failed to setup container "gtx280" lxc gtx280 20200329180235.357 ERROR sync - sync.c:__sync_wait:41 - An error occurred in another process (expected sequence number 5) lxc gtx280 20200329180235.359 WARN network - network.c:lxc_delete_network_priv:3213 - Failed to rename interface with index 0 from "eth0" to its initial name "veth830970ab" lxc gtx280 20200329180235.359 ERROR start - start.c:__lxc_start:1947 - Failed to spawn container "gtx280" lxc gtx280 20200329180235.359 ERROR lxccontainer - lxccontainer.c:wait_on_daemonized_start:852 - Received container state "ABORTING" instead of "RUNNING" lxc gtx280 20200329180235.359 WARN start - start.c:lxc_abort:1030 - No such process - Failed to send SIGKILL to 4193 lxc 20200329180235.476 WARN commands - commands.c:lxc_cmd_rsp_recv:122 - Connection reset by peer - Failed to receive response for command "get_state"
I suppose I need to tell lxd somehow that the graphics driver changed. Can you please help me how to accomplish that?
Just to be sure, I hope the 340.x is supported, isn’t it?
Btw installing libpam-cgfs did not help.