I was able to properly dump a vmcore with the following steps:

1. kexec-tools patches with:
   - ed15ba1b9977 build_mem_phdrs(): check if p_paddr is invalid
   - 9f62cbddddfc kexec/arch/i386: Add support for KASLR memory randomization
   - dbb99d938810 kexec-tools/x86: get_kernel_vaddr_and_size off-by-one fix

2. crashkernel increased to 192M

3. linux-azure patched with:
   - da63b6b20077 x86/KASLR: Fix kexec kernel boot crash when KASLR 
randomization fails

4. Forced storvsc instead of ata_piix.

With those changes, I was able to consistently dump vmcore images
without any issues using several types of azure instances.

Besides that the utility crash also needs to be updated. Currently the
xenial version of crash is not able to parse a linux-azure vmcore but
the artful version is.

I'm running some tests with the artful crash utility and the linux-
generic kernel to check if it's viable to bring that version to xenial.

** Also affects: crash (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: kexec-tools (Ubuntu)
       Status: Confirmed => In Progress

** Changed in: kexec-tools (Ubuntu Xenial)
       Status: Confirmed => In Progress

** Changed in: kexec-tools (Ubuntu)
   Importance: Undecided => High

** Changed in: kexec-tools (Ubuntu Xenial)
   Importance: Undecided => High

** Changed in: kexec-tools (Ubuntu)
     Assignee: (unassigned) => Marcelo Cerri (mhcerri)

** Changed in: kexec-tools (Ubuntu Xenial)
     Assignee: (unassigned) => Marcelo Cerri (mhcerri)

** Changed in: crash (Ubuntu)
       Status: New => Confirmed

** Changed in: crash (Ubuntu)
   Importance: Undecided => High

** Changed in: crash (Ubuntu)
     Assignee: (unassigned) => Marcelo Cerri (mhcerri)

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to kexec-tools in Ubuntu.
https://bugs.launchpad.net/bugs/1712867

Title:
  [Hyper-V] 16.04 kexec-tools doesn't match linux-azure

Status in crash package in Ubuntu:
  Confirmed
Status in kexec-tools package in Ubuntu:
  In Progress
Status in linux-azure package in Ubuntu:
  In Progress
Status in kexec-tools source package in Xenial:
  In Progress
Status in linux-azure source package in Xenial:
  In Progress

Bug description:
  Because the linux-azure kernel is based on 4.11, kexec on 16.04 gives the 
following error:
  kdump-tools[1436]: ELF core (kcore) parse failed

  Perhaps the artful kexec-tools should be backported?

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/crash/+bug/1712867/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to