-
-
Save feiskyer/43e2f4cad9d7b4b0a1e2 to your computer and use it in GitHub Desktop.
Smoke testing Clear Containers on RHEL7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Roughly the diff from upstream Docker-1.8: | |
https://github.com/docker/docker/compare/release/1.8...clearlinux:clr-1.8.1-submit | |
# uname -r | |
3.10.0-316.el7.x86_64 | |
# getenforce | |
Enforcing | |
# cd /etc/yum.repos.d/ | |
# wget http://download.opensuse.org/repositories/home:clearlinux:preview/CentOS_7/home:clearlinux:preview.repo | |
# yum install clear-containers-docker -y | |
# rpm -ql linux-container | |
/usr/lib/kernel | |
/usr/lib/kernel/config-4.2.0-37.1.container | |
/usr/lib/kernel/vmlinux-4.2.0-37.1.container | |
/usr/lib/kernel/vmlinux.container | |
/usr/lib/kernel/vmlinuz-4.2.0-37.1.container | |
/usr/lib/kernel/vmlinuz.container | |
# systemctl start docker | |
# docker info|grep Execu | |
Execution Driver: clr-3090 | |
# time docker run -d rhel7 sleep infinity | |
15b140a29f47d9e81393afdcf8956a1165760c10b1677779ad8289de24fa42cd | |
real 0m0.255s | |
user 0m0.013s | |
sys 0m0.008s | |
# ps auxwww|grep lkvm | |
root 21183 115 0.0 4136868 73672 ? Ssl 17:51 0:33 lkvm run -c 6 -m 1024 --name 15b140a29f47d9e81393afdcf8956a1165760c10b1677779ad8289de24fa42cd --console virtio --kernel /usr/lib/kernel/vmlinux.container --params root=/dev/plkvm0p1 rootfstype=ext4 rootflags=dax,data=ordered init=/usr/lib/systemd/systemd systemd.unit=container.target rw tsc=reliable systemd.show_status=false no_timer_check rcupdate.rcu_expedited=1 console=hvc0 quiet ip=172.18.0.3::172.18.42.1::15b140a29f47::off --shmem 0x200000000:0:file=/var/lib/docker/clear-3090-containers.img:private --network mode=tap,script=none,tapif=tb-15b140a29f47,guest_mac=02:42:ac:12:00:03 --9p /var/lib/docker/overlay/15b140a29f47d9e81393afdcf8956a1165760c10b1677779ad8289de24fa42cd/merged rootfs | |
# docker run -it rhel7/rhel-tools bash | |
[root@f20847eabca2 /]# ip a l eth0 | |
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000 | |
link/ether 02:42:ac:12:00:08 brd ff:ff:ff:ff:ff:ff | |
inet 172.18.0.8/16 brd 172.18.255.255 scope global eth0 | |
valid_lft forever preferred_lft forever | |
inet6 fe80::42:acff:fe12:8/64 scope link | |
valid_lft forever preferred_lft forever | |
[root@f20847eabca2 /]# mpstat -P ALL | |
Linux 4.2.0-37.1.container (f20847eabca2) 09/18/2015 _x86_64_ (6 CPU) | |
05:38:02 PM CPU %usr %nice %sys %iowait %irq %soft %steal %guest %gnice %idle | |
05:38:02 PM all 0.17 0.00 0.57 0.00 0.00 0.00 0.00 0.00 0.00 99.26 | |
05:38:02 PM 0 0.11 0.00 1.23 0.00 0.00 0.00 0.00 0.00 0.00 98.66 | |
05:38:02 PM 1 0.10 0.00 0.71 0.00 0.00 0.00 0.00 0.00 0.00 99.19 | |
05:38:02 PM 2 0.30 0.00 0.61 0.00 0.00 0.00 0.00 0.00 0.00 99.09 | |
05:38:02 PM 3 0.10 0.00 0.31 0.00 0.00 0.00 0.00 0.00 0.00 99.59 | |
05:38:02 PM 4 0.00 0.00 0.20 0.00 0.00 0.00 0.00 0.00 0.00 99.80 | |
05:38:02 PM 5 0.10 0.00 0.30 0.00 0.00 0.00 0.00 0.00 0.00 99.59 | |
[root@f20847eabca2 /]# lscpu | |
lscpu: failed to determine number of CPUs: /sys/devices/system/cpu/possible: No such file or directory | |
[root@f20847eabca2 /]# uname -r | |
4.2.0-37.1.container | |
On an AMD system: | |
# docker run -it busybox sh | |
[ 0.356313] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004 | |
[ 0.356313] | |
[ 0.356637] CPU: 0 PID: 1 Comm: systemd Tainted: G W 4.2.0-37.1.container #1 | |
[ 0.356849] ffffffff81620c00 ffff88003e073c58 ffffffff813a7c93 0000000000000001 | |
[ 0.356993] ffffffff81507716 ffff88003e073cd8 ffffffff813a4c84 ffff88003e06cbc0 | |
[ 0.356993] ffffffff00000010 ffff88003e073ce8 ffff88003e073c88 0000000000000000 | |
[ 0.356993] Call Trace: | |
[ 0.356993] [<ffffffff813a7c93>] dump_stack+0x45/0x57 | |
[ 0.356993] [<ffffffff813a4c84>] panic+0xb9/0x1c5 | |
[ 0.356993] [<ffffffff810548ca>] do_exit+0x473/0x87b | |
[ 0.356993] [<ffffffff81054d3e>] do_group_exit+0x3f/0x93 | |
[ 0.356993] [<ffffffff8105caa0>] get_signal+0x476/0x4a2 | |
[ 0.356993] [<ffffffff810022e4>] do_signal+0x23/0x494 | |
[ 0.356993] [<ffffffff81002a53>] ? do_trap+0x10f/0x11e | |
[ 0.356993] [<ffffffff81027a1e>] ? __do_page_fault+0x2a4/0x31e | |
[ 0.356993] [<ffffffff8105ae4f>] ? __set_task_blocked+0x60/0x67 | |
[ 0.356993] [<ffffffff81027a1e>] ? __do_page_fault+0x2a4/0x31e | |
[ 0.356993] [<ffffffff8105ae4f>] ? __set_task_blocked+0x60/0x67 | |
[ 0.356993] [<ffffffff81002774>] do_notify_resume+0x1f/0x74 | |
[ 0.356993] [<ffffffff813acd23>] retint_signal+0x3d/0x7a | |
[ 0.356993] Kernel Offset: disabled | |
[ 0.356993] Rebooting in 1 seconds.. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment