sudo vi /etc/libvirt/qemu.conf
user = "root"
group = "root"
sudo systemctl restart libvirtd.service
sudo vi /etc/libvirt/qemu.conf
user = "root"
group = "root"
sudo systemctl restart libvirtd.service
If container will not start automatically:
ploop check -F /vz/private/CTID/root.hdd/root.hdd
ploop mount /vz/private/CTID/root.hdd/root.hdd/DiskDescriptor.xml
fsck /dev/ploop11111p1
vzctl start CTID
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
modprobe ploop
modprobe pfmt_ploop1
modprobe pfmt_raw
modprobe pio_direct
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
lxc-console -n name -t 0
cat /sys/module/kvm_intel/parameters/nested
N
Temporarily remove the KVM intel Kernel module, enable nested virtualization to be persistent across reboots and add the Kernel module back:
sudo rmmod kvm-intel
sudo sh -c “echo ‘options kvm-intel nested=y’ >> /etc/modprobe.d/dist.conf”
sudo modprobe kvm-intel
Ensure the Nested KVM Kernel module parameter for Intel is enabled on the host:
cat /sys/module/kvm_intel/parameters/nested
Y
modinfo kvm_intel | grep nested
parm: nested:bool
vzctl set XXX --disable no --save
vzctl start XXX
sudo docker stop $(sudo docker ps -a -q) && sudo docker rm $(sudo docker ps -a -q)
sudo docker run --name test --privileged -d -ti docker.io/centos /usr/sbin/init