[SOLVED] How the reboots are handled when run inside on the containers

kristian.kirilov

Active Member
Nov 17, 2016
52
1
28
37
Hello guys,
I'm working on an playbook (Ansible) intended to perform so called "unattended upgrades" of the whole environment. Because the playbook includes actions like setting up scheduled downtime in Nagios, rebooting the server and wait till it came up again online I created a logic, all of these actions to be performed only on KVM virtual machines (based on Ansible facts).
So far so good, but today I got a thought that what will happen if I try to reboot the same way LXC container? I logged into one of it and simply issued reboot - and it worked.
On the hypervisor I see the uptime change of the process, but no event was generated, most probably because it not comes from the Proxmox hypervisor itself.

So regarding the tests everything is fine, but I'm not sure is it wise to extend the playbook with these actions for LXC containers as well.
What do you think?
Thanks in advance.
 
Last edited:

oguz

Proxmox Retired Staff
Retired Staff
Nov 19, 2018
5,207
680
118
hi,
So far so good, but today I got a thought that what will happen if I try to reboot the same way LXC container? I logged into one of it and simply issued reboot - and it worked.
On the hypervisor I see the uptime change of the process, but no event was generated, most probably because it not comes from the Proxmox hypervisor itself.
when you do a reboot from inside the VM, also no event is generated.
if you want to see the reboot event in the task log you'll need to call the API to reboot that VM/CT instead.

So regarding the tests everything is fine, but I'm not sure is it wise to extend the playbook with these actions for LXC containers as well.
What do you think?
if everything works what seems to be the issue?
 

kristian.kirilov

Active Member
Nov 17, 2016
52
1
28
37
Ah, sorry, no issue at all. Just wondering if this is the right way to do the things.
I'm 100% sure when using VM, because this is completely separated/emulated process from the host OS, but what about CT's - it seems to work.

Just a matter of discussion. If you want, I can close the topic in order to not flood the forum.
All good by far :)
 

oguz

Proxmox Retired Staff
Retired Staff
Nov 19, 2018
5,207
680
118
Ah, sorry, no issue at all. Just wondering if this is the right way to do the things.
I'm 100% sure when using VM, because this is completely separated/emulated process from the host OS, but what about CT's - it seems to work.

Just a matter of discussion. If you want, I can close the topic in order to not flood the forum.
All good by far :)
no worries :) the forum is for asking questions ^^

you can mark the thread [SOLVED] if you don't have any other questions :)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get your own in 60 seconds.

Buy now!