Force Stop LXC Proxmox 7.2-7

Mengalami stuck saat menjalankan lxc centos7 di proxmox versi 7.2-7:

Warning saat di jalankan:
old systemd (< v232) detected, container won't run in a pure cgroupv2 environment! Please see documentation -> container -> cgroup version.

Solusinya adalah:
Masuk kedalam lxc id disini lxc id nya 122

root@pve:~# pct enter 122

tidak otomatis dapat ip sehingga perlu perintah dhclient:

[root@centos7-diremote ~]# ip a
1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0@if32: mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 16:56:36:50:25:99 brd ff:ff:ff:ff:ff:ff link-netnsid 0
[root@centos7-diremote ~]# dhclient
/etc/init.d/functions: line 63: /dev/stderr: Permission denied
/etc/rc.d/init.d/functions: line 63: /dev/stderr: Permission denied
/etc/init.d/functions: line 63: /dev/stderr: Permission denied
/etc/rc.d/init.d/functions: line 63: /dev/stderr: Permission denied
[root@centos7-diremote ~]#

Install Wget karena default centos7 tidak ada wgetnya
[root@centos7-diremote ~]# yum install wget

Download repo berikut:
[root@centos7-diremote ~]# wget https://copr.fedorainfracloud.org/coprs/jsynacek/systemd-backports-for-centos-7/repo/epel-7/jsynacek-systemd-backports-for-centos-7-epel-7.repo -O /etc/yum.repos.d/jsynacek-systemd-centos-7.repo

Update Systemd
[root@centos7-diremote ~]# yum update systemd

Keluar dari lxc 122
[root@centos7-diremote ~]# exit
exit

Stop paksa proxmox dengan perintah lxc-stop

root@pve:~# lxc-stop --name 122
root@pve:~#

Setelah stop jalankan ulang lxc id dan warning sudah tidak muncul lagi.

Administrator

Saya adalah saya, dimana saya tinggal disitu saya berada. Saya suka menulis disela kesibukan saya, tapi saat sibuk saya tidak bisa menyempatkan waktu untuk menulis.

Leave a Reply

Your email address will not be published.