DebuggingKVM

Differences between revisions 4 and 8 (spanning 4 versions)
Revision 4 as of 2008-08-06 16:30:38
Size: 1026
Editor: localhost
Comment: converted to 1.6 markup
Revision 8 as of 2015-06-18 16:22:08
Size: 1562
Editor: serge-hallyn
Comment:
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
||<tablestyle="float:right; font-size: 0.9em; width:30%; background:#F1F1ED; background-image: url('https://librarian.launchpad.net/1812570/bugsquad.png'); background-repeat: no-repeat; background-position: 98% 0.5ex; margin: 0 0 1em 1em; padding: 0.5em;">'''Contents'''<<BR>><<TableOfContents>>|| ||<tablestyle="float:right; font-size: 0.9em; width:30%; background:#F1F1ED; background-image: url('https://librarian.launchpad.net/1812570/bugsquad.png'); background-repeat: no-repeat; background-position: 98% 0.5ex; margin: 0 0 1em 1em; padding: 0.5em;"><<TableOfContents>>||

= Bug importance =

 * critical: eats your data
 * high: crashes the host
 * medium: crashes the guest (and most other "normal" bugs)
 * low: doesn't crash host or guest, but has undesirable, clearly buggy behavior, or if it does cause crashes, can be worked around
 * wishlist: feature requests, everything else lower priority
Line 6: Line 14:
 * If it is easily reproducible, try building from upstream git and reproducing. Then bisect
   * [ todo - give example ]
 * Try a newer kernel if available
 * If KSM is enabled, see whether disabling it helps
Line 15: Line 27:
 * If your linux guest can't boot, start kvm with {{{ -serial file:kvm_guset_debug.log }}}.
   {{{ kvm linux_guest.img -serial file:kvm_guset_debug.log
 * If your linux guest can't boot, start kvm with {{{ -serial file:kvm_guest_debug.log }}}.
   {{{
kvm linux_guest.img -serial file:kvm_guset_debug.log
Line 19: Line 32:
   {{{ kernel /vmlinuz root=/dev/sda1 earlycon=ttyS0 console=ttyS0    {{{
kernel /vmlinuz root=/dev/sda1 earlycon=ttyS0 console=ttyS0

Debugging Central

This page is part of the debugging series — pages with debugging details for a variety of Ubuntu packages.

Bug importance

  • critical: eats your data
  • high: crashes the host
  • medium: crashes the guest (and most other "normal" bugs)
  • low: doesn't crash host or guest, but has undesirable, clearly buggy behavior, or if it does cause crashes, can be worked around
  • wishlist: feature requests, everything else lower priority

Debugging procedure

  • If it is easily reproducible, try building from upstream git and reproducing. Then bisect
    • [ todo - give example ]
  • Try a newer kernel if available
  • If KSM is enabled, see whether disabling it helps

Reporting a bug

All reports should contain the following information. Please be sure to attach these files to the bug report.

  • uname -a > uname-a.log

  • cat /proc/version_signature > proc_version_signature.log

  • dmesg > dmesg.log

  • cat /proc/cpuinfo > proc_cpuinfo.log

  • If your linux guest can't boot, start kvm with  -serial file:kvm_guest_debug.log .

    •  kvm linux_guest.img -serial file:kvm_guset_debug.log 

      And edit grub to boot kernel with  earlycon=ttyS0 console=ttyS0 

       kernel /vmlinuz root=/dev/sda1 earlycon=ttyS0 console=ttyS0 


CategoryServerTeam CategoryBugSquad CategoryDebugging

DebuggingKVM (last edited 2015-06-18 16:22:08 by serge-hallyn)