07.07.2013

OpenVZ Linux Containers and CRIU status in Fedora 19

Important: To use OpenVZ containers you need to disable SELinux
Installing:
# yum install -y vzctl crtools
Testing CRIU:
# criu check --ms (00.000528) Error (sk-unix.c:313): Can't stat socket 6863(./dev/log): No such file or directory (00.003971) Error (libnetlink.c:53): ERROR -2 reported by netlink (00.004000) Warn (sockets.c:626): The current kernel doesn't support netlink_diag The sock diag infrastructure is incomplete. Make sure you have: 1. *_DIAG kernel config options turned on; 2. *_diag.ko modules loaded (if compiled as modules). (00.004791) Error (cr-check.c:491): Unable to dump pending signals: Input/output error (00.004846) Warn (cr-check.c:503): Skipping dirty tracking check (not yet merged) /proc//timers file is missing.
socket 6863 - gvfsd-fuse
netlink supported in Linux 3.10
Testing container with CentOS 6:
# vzctl create 101 --ostemplate centos-6-x86_64 Directory /proc/vz not found, assuming non-OpenVZ kernel vps-download WARNING: no public gpg key security@openvz.org found, disabling signature check. To import the public key, see http://wiki.openvz.org/Package_signatures#Importing_the_public_key --2013-07-07 19:06:48-- http://download.openvz.org/template/precreated/centos-6-x86_64.tar.gz Resolving download.openvz.org (download.openvz.org)... 199.115.104.11, 2620:e6::104:11 Connecting to download.openvz.org (download.openvz.org)|199.115.104.11|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 222703901 (212M) [application/x-gzip] Saving to: '/var/lib/vz/template/cache/centos-6-x86_64.tar.gz' 100%[======================================>] 222,703,901 2.65MB/s in 1m 43s 2013-07-07 19:08:31 (2.07 MB/s) - '/var/lib/vz/template/cache/centos-6-x86_64.tar.gz' saved [222703901/222703901] Creating container private area (centos-6-x86_64) Performing postcreate actions CT configuration saved to /etc/vz/conf/101.conf Container private area was created # vzctl start 101 Directory /proc/vz not found, assuming non-OpenVZ kernel Starting container... Container is mounted WARNING: Running container unprivileged. USER_NS not supported, or runtime disabled Container start in progress... # vzctl enter 101 Directory /proc/vz not found, assuming non-OpenVZ kernel entered into CT 101 # ps f -eo pid,command PID COMMAND 600 -bash 615 \_ ps f -eo pid,command 1 init 62 /sbin/udevd -d 415 \_ /sbin/udevd -d 525 /sbin/rsyslogd -i /var/run/syslogd.pid -c 5 539 /usr/sbin/sshd 546 xinetd -stayalive -pidfile /var/run/xinetd.pid 553 /usr/sbin/saslauthd -m /var/run/saslauthd -a pam -n 2 554 \_ /usr/sbin/saslauthd -m /var/run/saslauthd -a pam 569 sendmail: accepting connections 577 sendmail: Queue runner@01:00:00 for /var/spool/client 585 /usr/sbin/httpd 588 \_ /usr/sbin/httpd 593 crond # killall udevd # uname -s -r Linux 3.9.9-301.fc19.x86_64 # rpm -qa upstart upstart-0.6.5-12.el6.x86_64 # logout exited from CT 101 # vzctl suspend 101 Directory /proc/vz not found, assuming non-OpenVZ kernel Checkpointing finished successfully Container is unmounted # vzctl resume 101 Directory /proc/vz not found, assuming non-OpenVZ kernel Container is mounted Container start in progress... # vzctl enter 101 Directory /proc/vz not found, assuming non-OpenVZ kernel entered into CT 101 # ps f -eo pid,command PID COMMAND 529 -bash 545 \_ ps f -eo pid,command 1 init 525 /sbin/rsyslogd -i /var/run/syslogd.pid -c 5 539 /usr/sbin/sshd 546 xinetd -stayalive -pidfile /var/run/xinetd.pid 553 /usr/sbin/saslauthd -m /var/run/saslauthd -a pam -n 2 554 \_ /usr/sbin/saslauthd -m /var/run/saslauthd -a pam 569 sendmail: accepting connections 577 sendmail: Queue runner@01:00:00 for /var/spool/client 585 /usr/sbin/httpd 588 \_ /usr/sbin/httpd 593 crond # logout exited from CT 101 # vzctl stop 101 Directory /proc/vz not found, assuming non-OpenVZ kernel Stopping container ... Container was stopped Container is unmounted
Results:

Комментариев нет: