Skip to content

Instantly share code, notes, and snippets.

@egernst
egernst / dpdk-debug.md
Last active March 14, 2017 20:08
dpdk-debug

Baseline

Make necessary changes in vm.json/hypervisor.args to move from pc-lite to pc:

diff --git a/hypervisor.args b/hypervisor.args                                                                                               │root@d0d829266c89:/# 
-pc,accel=kvm,kernel_irqchip,nvdimm                                                                                                          │
+pc-lite,accel=kvm,kernel_irqchip,nvdimm  
diff --git a/vm.json b/vm.json
-                       "path": "/usr/share/clear-containers/vmlinuz-4.9.4-53.container",
+                       "path": "/usr/share/clear-containers/vmlinux.container",
@egernst
egernst / debug-of-clear-containers.md
Last active March 13, 2017 21:28
debugging clear containers

#Debug with your own rootfs: Easy setup available to build your own kernel, rootfs and image available at:

$ git clone https://github.com/clearcontainers/osbuilder.git

##Connect to mini-OS: To aid in debug of the mini-os itself, you can create a debug console service and add it to the rootfs. Directions for this can be found at : https://github.com/jcvenegas/cc-oci-runtime/commit/3334a2bc7c915e

@egernst
egernst / Debug CC QEMU pc-lite.md
Last active April 28, 2017 07:54 — forked from mcastelino/Debug CC QEMU pc-lite.md
Debugging Clear Containers Kernel and Rootfs using qemu-lite

Debug the kernel and rootfs for Clear Containers with pc lite

sudo qemu-lite-system-x86_64 \
  -machine pc-lite,accel=kvm,kernel_irqchip,nvdimm \
  -cpu host -m 256,maxmem=1G,slots=2 \
  -smp 2 -no-user-config -nodefaults \
  -rtc base=utc,driftfix=slew -global kvm-pit.lost_tick_policy=discard \
  -kernel ./vmlinux-4.9.4-53.container \
  -append "reboot=k panic=1 rw tsc=reliable no_timer_check \