vzctl stop
du -sh /vz/private/
vzquota show
vzquota drop
vzctl start
vzctl stop
du -sh /vz/private/
vzquota show
vzquota drop
vzctl start
vzquota off
It possible your /vx pasttioniom have file system error, so you should check it before vzquota off.
ploop check -F /vz/private/139/root.hdd/root.hdd
ploop mount /vz/private/139/root.hdd/DiskDescriptor.xml
fdisk -l /dev/ploop56824
e2fsck /dev/ploop56824p1
vzctl start 139
sudo -i
mv /var/lib/docker/ /var/lib/docker.backup
exit
sudo systemctl start docker
service virtualizor stop
service virtnetwork stop # For KVM only
rm -rf /usr/local/emps
rm -rf /usr/local/virtualizor
rm -rf /var/virtualizor
Use: vzctl status C_ID
pptpd[]: GRE: read(fd=6,buffer=611860,len=8196) from PTY failed: status = -1 error = Input/output error, usually caused by unexpected termination of pppd, check option syntax and pppd logs
vzctl stop 101
vzctl set 101 --features ppp:on --save
vzctl start 101
vzctl set 101 --devices c:108:0:rw --save
vzctl exec 101 mknod /dev/ppp c 108 0
vzctl exec 101 chmod 600 /dev/ppp
modprobe tun
modprobe ppp-compress-18
modprobe ppp_mppe
modprobe ppp_deflate
modprobe ppp_async
modprobe pppoatm
modprobe ppp_generic
vi /etc/sysconfig/docker-storage
DOCKER_STORAGE_OPTIONS="--storage-opt dm.no_warn_on_loop_devices=true"
Remove old unused OpenVZ kernels:
rpm -qa | grep vzkernel
yum remove vzkernel-2.6.32-042stab059.7
Set the lowest priority:
vzctl set 101 --ioprio 0 --save
Set the highest priority:
vzctl set 101 --ioprio 7 --save
vzctl chkpnt 101 –dumpfile /tmp/Dump.101
mv /etc/vz/conf/101.conf /etc/vz/conf/102.conf
mv /vz/private/101 /vz/private/102
mv /vz/root/101 /vz/root/102
vzctl restore 102 –dumpfile /tmp/Dump.101
nsenter – run program with namespaces of other processes
PID=$(docker inspect –format {{.State.Pid}}
nsenter –target $PID –mount –uts –ipc –net –pid
chcon -Rt svirt_sandbox_file_t /volume.to.docker/path
setroubleshoot[2501]: SELinux is preventing /bin/bash from getattr access on the chr_file /dev/pts/6. For complete SELinux messages. run sealert -l 865f628b-7bed-4036-8df5-c4bf9ab57565
Lap 27 19:43:28 localhost.localdomain python[2501]: SELinux is preventing /bin/bash from getattr access on the chr_file /dev/pts/6.
***** Plugin catchall (100. confidence) suggests **************************
If you believe that bash should be allowed getattr access on the 6 chr_file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# grep bash /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp
Fix:
sudo systemctl stop docker.service
sudo dnf reinstall docker-selinux
sudo systemctl start docker.service
Start KVM vm on server boot:
virsh autostart VM_NAME
Domain test_server marked as autostarted.