Skip to content

Instantly share code, notes, and snippets.

@jcvenegas
Created June 26, 2020 20:55
Show Gist options
  • Save jcvenegas/698251f0d8c3ee4b8405c1b8756b8f92 to your computer and use it in GitHub Desktop.
Save jcvenegas/698251f0d8c3ee4b8405c1b8756b8f92 to your computer and use it in GitHub Desktop.
Debug kata like a pro
# Enable debug of kata (kata-deploy or default path
sudo sed -i 's/#enable_debug = true/enable_debug = true/g' /opt/kata/share/defaults/kata-containers/configuration.toml
sudo sed -i 's/#enable_debug = true/enable_debug = true/g' /usr/share/defaults/kata-containers/configuration.toml
here=$(date +'%Y-%m-%d %H:%M:%S')
# Run what is not working
# Example: docker run ...
journalctl -t kata-hypervisor -t kata-runtime -t virtiofsd --since "${here}" -f | tee container_log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment