Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] How to stop custom gentoo LXD image
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
soratobuneko
n00b
n00b


Joined: 20 Oct 2020
Posts: 25

PostPosted: Sun Mar 21, 2021 2:00 am    Post subject: [Solved] How to stop custom gentoo LXD image Reply with quote

I created a custom gentoo LXD image like instructed by https://ubuntu.com/tutorials/create-custom-lxd-images I want to use as a template for my containers.

The container created from that image starts but when I execute lxc stop my_container the command hangs forever. If I execute a shell inside the container I can successfully stop it by running halt.

What do I have to setup to be able to stop my container with lxc stop?


Last edited by soratobuneko on Mon Mar 22, 2021 8:56 pm; edited 1 time in total
Back to top
View user's profile Send private message
Juippisi
Developer
Developer


Joined: 30 Sep 2005
Posts: 724
Location: /home

PostPosted: Sun Mar 21, 2021 7:18 am    Post subject: Reply with quote

Did you update your @world and overwrote /etc/inittab?

https://wiki.gentoo.org/wiki/LXD#Containters_freeze_on_.27lxc_stop.27_with_OpenRC check this to fix it.
Back to top
View user's profile Send private message
soratobuneko
n00b
n00b


Joined: 20 Oct 2020
Posts: 25

PostPosted: Mon Mar 22, 2021 8:56 pm    Post subject: Reply with quote

I missed the inittab part..
Back to top
View user's profile Send private message
Juippisi
Developer
Developer


Joined: 30 Sep 2005
Posts: 724
Location: /home

PostPosted: Tue Mar 23, 2021 5:51 am    Post subject: Reply with quote

I've opened a bug to get the old behaviour back in inittab,
https://bugs.gentoo.org/777459
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum