Hi
I am trying to create lxc ubuntu container or Arch
I have a feeling I am missing something.
I done all the set up of etc/subuid and subgid and added them to ~/.config/lxc/defoult.config
I done the $systemd-run --unit=myunit --user --scope -p "Delegate=yes" -- lxc-start myFirstContainer
and I get
lxc-start: myFirstContainer: tools/lxc_start.c: main: 266 No container config specified
On my system I found that I needed to configure a systemd drop-in file for the user
sudo systemctl edit user@1000.service
### Anything between here and the comment below will become the new contents of the file
[Service]
Delegate=yes
### Lines below this comment will be discarded
Now this is set up I can create and start using the lxc-create, lxc-start without having to embed in a systemd-run command.
I have also found that lxc-create, lxc-start run without embedding them in a systemd-run command if I launch them in Gnome Terminal. Otherwise this is required.
I appreciate your help.
I put the Arch on hold at the moment as I’m getting to grips with lxc on debian and Ubuntu.
Once I feel more confident with these Distros I’ll be back with Arch and no doubt your advice will come in handy.