Proxmox 7 LXC容器 Centos7模板不能上网和重启修复

My workaround:
– gain access to the CT with pct enter <CTID>
– enable the network with ifup eth0
– download this yum repository: https://copr.fedorainfracloud.org/coprs/jsynacek/systemd-backports-for-centos-7/

curl -o /etc/yum.repos.d/jsynacek-systemd-backports-for-centos-7-epel-7.repo https://copr.fedorainfracloud.org/coprs/jsynacek/systemd-backports-for-centos-7/repo/epel-7/jsynacek-systemd-backports-for-centos-7-epel-7.repo
yum update or  yum update systemd

 

– exit from the CT
– stop the CT with pct stop <CTID>
– start the CT normally

赞 (0)

评论 0

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址