FIx for Openvz Centos 7
yum downgrade http://vault.centos.org/7.2.1511/os/x86_64/Packages/iputils-20121221-7.el7.x86_64.rpm
FIx for Openvz Centos 7
yum downgrade http://vault.centos.org/7.2.1511/os/x86_64/Packages/iputils-20121221-7.el7.x86_64.rpm
cat /proc/vz/vzquota | grep CTID
vzquota off CTID
vzquota drop CTID
OpenVZ is running…
Checking for CPT version compatibility
Checking for CPU flags compatibility
Error: CT is locked
Error in ioctl(CPT_TEST_VECAPS): Resource temporarily unavailable
Error: CPU capabilities check failed!
Error: Destination node CPU is not compatible
Error: Can’t continue live migration
Reboot not help:
vzctl restart CTID
Restarting container
Stopping container …
Child 441850 exited with status 7
Killing container …
Child 441851 exited with status 7
Unable to stop container
Fix:
vzctl chkpnt CTID --kill
vzmigrate -t -v --live -s -c --remove-area no --ssh-mux 192.168.0.101 1000
Upgrade to CentOS 7.5 systemd does not work. server running but you can access it:
unable to open pty no such file or directory centos 7 openvz
You should check ovz kernel version: uname -a
if you have 2.6.32-042stab108.8 you should upgrade kernel up to 2.6.32-042stab120.11
ln -sf /usr/share/zoneinfo/EET /etc/localtime
This could be happen after server migration using some utils like rsync.
vzctl stop server_id
vzquota drop server_id
vzctl start server_id
root@host# vzctl set 777 --iolimit 3M --save
Setting iolimit: 3145728 bytes/sec
CT configuration saved to /etc/vz/conf/777.conf
root@host# vzctl enter 777
root@CT:/# cat /dev/urandom | pv -c - >/bigfile3
39.1MB 0:00:10 [ 3MB/s] [ <=> ]
^C
vzctl stop
du -sh /vz/private/
vzquota show
vzquota drop
vzctl start
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
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
Starting container…
vzquota : (error) Quota getstat syscall for id XXXXXX: Inappropriate ioctl for device
vzquota on failed [3]
FIX. service openvz start
Remove old unused OpenVZ kernels:
rpm -qa | grep vzkernel
yum remove vzkernel-2.6.32-042stab059.7
cat /dev/urandom | pv -c - >/bigfile
vzctl set 100 --iolimit 3M --save