Tuesday, 2019-04-02

*** igordc has quit IRC01:02
*** auk has joined #kata-general01:06
*** zhenyuw has quit IRC03:10
*** zhenyuw has joined #kata-general03:11
*** sameo has joined #kata-general04:51
kata-irc-bot<verytired1> Able to meet @xu for beers in Hangzhou with @claire and @haoyang06:16
*** auk has quit IRC06:40
*** sameo has quit IRC06:46
*** eniac_petrov has joined #kata-general06:54
*** sgarzare has joined #kata-general07:12
*** tmhoang has joined #kata-general07:14
*** zhenyuw has quit IRC07:21
*** zhenyuw has joined #kata-general07:22
*** eniac_petrov has quit IRC07:23
*** sameo has joined #kata-general07:43
*** tmhoang has quit IRC07:47
*** zhenyuw has quit IRC08:46
*** tmhoang has joined #kata-general09:17
*** sameo has quit IRC10:01
*** sameo has joined #kata-general10:57
*** langleu_ has joined #kata-general12:18
*** langleu_ has quit IRC12:19
*** lpetrut has joined #kata-general13:26
*** lpetrut has quit IRC14:00
*** lpetrut has joined #kata-general14:59
*** lpetrut has quit IRC15:14
*** tmhoang has quit IRC15:46
*** sameo has quit IRC15:53
*** sgarzare has quit IRC16:02
*** igordc has joined #kata-general20:15
kata-irc-bot<david532> Bleh. Still no debug shell on Ubuntu. :(23:10
*** darix has left #kata-general23:13
kata-irc-bot<david532> For reference, this is what I'm doing  ``` sudo apt-get update && \ sudo apt-get install -y software-properties-common && \ sudo add-apt-repository ppa:longsleep/golang-backports && \ sudo apt-get update && apt-get install -y golang-go flex bison gcc make libelf-dev && \ ARCH=$(arch) && \ sudo sh -c "echo 'deb http://download.opensuse.org/repositories/home:/katacontainers:/releases:/${ARCH}:/master/xUbuntu_$(lsb_release -rs)/ /' >23:14
kata-irc-bot/etc/apt/sources.list.d/kata-containers.list" && \ curl -sL  http://download.opensuse.org/repositories/home:/katacontainers:/releases:/${ARCH}:/master/xUbuntu_$(lsb_release -rs)/Release.key | sudo apt-key add - && \ sudo -E apt-get update && \ sudo -E apt-get -y install kata-runtime kata-proxy kata-shim && \ sudo -E apt-get -y install apt-transport-https ca-certificates software-properties-common && \ curl -sL23:14
kata-irc-bothttps://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - && \ arch=$(dpkg --print-architecture) && \ sudo -E add-apt-repository "deb [arch=${arch}] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" && \ sudo -E apt-get update && \ sudo -E apt-get -y install --allow-downgrades docker-ce='18.06.2~ce~3-0~ubuntu' && \ sudo apt-mark hold docker-ce && \ sudo mkdir -p /etc/systemd/system/docker.service.d/ && \ cat <<EOF |23:14
kata-irc-botsudo tee /etc/systemd/system/docker.service.d/kata-containers.conf [Service] ExecStart= ExecStart=/usr/bin/dockerd -D --add-runtime kata-runtime=/usr/bin/kata-runtime --default-runtime=runc EOF && \ sudo systemctl daemon-reload && \ sudo systemctl restart docker && \ cd /root && \ git clone https://github.com/kata-containers/packaging.git && \ git clone https://github.com/kata-containers/runtime.git && \ git clone23:14
kata-irc-bothttps://github.com/kata-containers/agent.git && \ rm -rf osbuilder/ && \ git clone https://github.com/kata-containers/osbuilder.git && \ export ROOTFS_DIR=/root/osbuilder/rootfs-builder/rootfs && \ export USE_DOCKER=true && \ export EXTRA_PKGS="fuse bash" && \ export SECCOMP=no && \ sudo rm -rf ${ROOTFS_DIR} && \ /root/osbuilder/rootfs-builder/rootfs.sh ubuntu && \ cd /root/osbuilder/image-builder && \23:15
kata-irc-bot/root/osbuilder/image-builder/image_builder.sh ${ROOTFS_DIR} && \ ## Add debug service here (https://github.com/kata-containers/documentation/blob/master/Developer-Guide.md#create-a-debug-systemd-service) name="kata-containers-ubuntu-with-debug-console.img" && \ sudo install -o root -g root -m 0640 kata-containers.img "/usr/share/kata-containers/${name}" && \ (cd /usr/share/kata-containers && sudo ln -sf "$name" kata-containers.img) && \ cd23:15
kata-irc-bot/root/osbuilder/initrd-builder && \ /root/osbuilder/initrd-builder/initrd_builder.sh ${ROOTFS_DIR} && \ commit=$(git log --format=%h -1 HEAD) && \ date=$(date +%Y-%m-%d-%T.%N%z) && \ image="kata-containers-initrd-${date}-${commit}" && \ sudo install -o root -g root -m 0640 -D kata-containers-initrd.img "/usr/share/kata-containers/${image}" && \ (cd /usr/share/kata-containers && sudo ln -sf "$image" kata-containers-initrd.img) && \ cd23:15
kata-irc-bot/root/packaging/kernel/ && \ /root/packaging/kernel/build-kernel.sh setup ## EDIT X86 KVM 4.19x KERNEL CONFIG for FS_FUSE=Y sudo mkdir -p /etc/kata-containers/ && \ sudo install -o root -g root -m 0640 /usr/share/defaults/kata-containers/configuration.toml /etc/kata-containers && \ sudo awk '{if (/^\[proxy\.kata\]/) {got=1}; if (got == 1 && /^.*enable_debug/) {print "#enable_debug = true"; got=0; next; } else {print}}'23:15
kata-irc-bot/etc/kata-containers/configuration.toml > /tmp/configuration.toml && \23:15
kata-irc-bot<david532> sudo install -o root -g root -m 0640 /tmp/configuration.toml /etc/kata-containers/ ```  Does anything look off on that that debug with socat wouldn't return any type of prompts?23:15
kata-irc-bot<david532> ``` root@t:/usr/share/kata-containers# docker run -d --runtime=kata-runtime solita/ubuntu-systemd Unable to find image 'solita/ubuntu-systemd:latest' locally latest: Pulling from solita/ubuntu-systemd 8ee29e426c26: Pull complete 6e83b260b73b: Pull complete e26b65fd1143: Pull complete 40dca07f8222: Pull complete b420ae9e10b3: Pull complete 76a75ff62f5c: Pull complete d13f8a3c0a26: Pull complete d0798d22f294: Pull complete23:15
kata-irc-bot3e86da165f81: Pull complete Digest: sha256:9e92471af23369f67f9ed4db12f986a84eed9bcc3a25b25591150348eeaff308 Status: Downloaded newer image for solita/ubuntu-systemd:latest f4e648d2efaea7987b4eaf430a76aba3a19ed04a1f69fcb51fcee63a2d9b0888 root@t:/usr/share/kata-containers# kata-runtime list ID                                                                 PID         STATUS      BUNDLE23:16
kata-irc-bot                                                                  CREATED                          OWNER f4e648d2efaea7987b4eaf430a76aba3a19ed04a1f69fcb51fcee63a2d9b0888   35209       running     /run/docker/containerd/daemon/io.containerd.runtime.v1.linux/moby/f4e648d2efaea7987b4eaf430a76aba3a19ed04a1f69fcb51fcee63a2d9b0888   2019-04-02T23:13:57.776401161Z   #0 root@t:/usr/share/kata-containers# id=$(sudo docker ps -q --no-trunc)23:16
kata-irc-botroot@t:/usr/share/kata-containers# console="/var/run/vc/vm/${id}/console.sock" root@t:/usr/share/kata-containers# sudo socat "stdin,raw,echo=0,escape=0x11" "unix-connect:${console}" ```23:16
kata-irc-bot<david532> If this is better for kata-dev , let me know.23:17
kata-irc-bot<david532> Inside the thread is the script I've compiled to bootstrap my debug image, but I'm unsure if something I've done is wrong.23:24
kata-irc-bot<eric.ernst> @david532 you have the services for debug shell in and running in the rootfs23:29
kata-irc-bot<david532> The debug proces was within /rootfs/usr/lib/systemd/system/kata-debug along with kata containers and agent services.23:29
kata-irc-bot<eric.ernst> And can you verify that that particular toml is being used? Ie, swap vmlinuz to foo and make sure it fails?23:29
kata-irc-bot<david532> Kata runtime list all showed that it was running on the initd and debug image.23:30
kata-irc-bot<david532> Let me see if I can grab another Packet instance.23:31
kata-irc-bot<david532> Did you want an ls on the root showing kata-containers, kata-agent, and kata-debug along with `kata-runtime list --kata-all` with a running container?23:32
kata-irc-bot<david532> Would that help?23:32
kata-irc-bot<david532> I will record my session with `asciinema` whihc might be of assistance in an environment where I might not have the server in an hour or two.23:36

Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!