Package: makedumpfile
Version: 1:1.5.9-5
Severity: important
Tags: patch

Hi, to use kdump on Hyper-V hypervisors, an ata_piix option needs to be passed
otherwise the kdump kernel will attempt - and fail - to connect to the Hyper-V
hypervisor service, which refuses to accept a second connection from any given
VM.

-- System Information:
Debian Release: stretch/sid
  APT prefers xenial-updates
  APT policy: (500, 'xenial-updates'), (500, 'xenial-security'), (500, 'xenial')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.4.0-22-generic (SMP w/1 CPU core)
Locale: LANG=en_NZ.UTF-8, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages makedumpfile depends on:
ii  libc6      2.23-0ubuntu3
ii  libdw1     0.165-3ubuntu1
ii  libelf1    0.165-3ubuntu1
ii  liblzo2-2  2.08-1.2
ii  perl       5.22.1-9
ii  zlib1g     1:1.2.8.dfsg-2ubuntu4

Versions of packages makedumpfile recommends:
ii  crash        7.1.4-1ubuntu4
ii  kexec-tools  1:2.0.10-1ubuntu2

makedumpfile suggests no packages.

-- no debconf information
diff -Nru makedumpfile-1.5.9/debian/changelog makedumpfile-1.5.9/debian/changelog
--- makedumpfile-1.5.9/debian/changelog	2016-02-10 22:15:24.000000000 +1300
+++ makedumpfile-1.5.9/debian/changelog	2016-05-17 17:01:20.000000000 +1200
@@ -1,3 +1,11 @@
+makedumpfile (1:1.5.9-5ubuntu1) UNRELEASED; urgency=medium
+
+  * Support Hyper-V hypervisors. Per https://support.microsoft.com/en-us/kb/2858695
+    the ata_piix driver will attempt to create a second connection to the hypervisor
+    while the original kernel is still connected, which fails.
+
+ -- Robert Collins <robertc@lifelesstab>  Tue, 17 May 2016 16:59:16 +1200
+
 makedumpfile (1:1.5.9-5) sid; urgency=medium
 
   [ Hendrik Brueckner ]
diff -Nru makedumpfile-1.5.9/debian/kdump-config makedumpfile-1.5.9/debian/kdump-config
--- makedumpfile-1.5.9/debian/kdump-config	2016-02-10 22:06:37.000000000 +1300
+++ makedumpfile-1.5.9/debian/kdump-config	2016-05-17 16:54:02.000000000 +1200
@@ -48,7 +48,7 @@
 KDUMP_DUMP_DMESG=${KDUMP_DUMP_DMESG:=1}
 KDUMP_DIR="/var/lib/kdump"
 MAKEDUMP_ARGS=${MAKEDUMP_ARGS:="-c -d 31"}
-KDUMP_CMDLINE_APPEND=${KDUMP_CMDLINE_APPEND:="irqpoll maxcpus=1 nousb systemd.unit=kdump-tools.service"}
+KDUMP_CMDLINE_APPEND=${KDUMP_CMDLINE_APPEND:="irqpoll maxcpus=1 nousb systemd.unit=kdump-tools.service ata_piix.prefer_ms_hyperv=0"}
 KDUMP_KERNEL_HOOK="/etc/kernel/postinst.d/kdump-tools"
 [ -d $KDUMP_COREDIR ] || mkdir -p $KDUMP_COREDIR ;
 
diff -Nru makedumpfile-1.5.9/debian/kdump-tools.default makedumpfile-1.5.9/debian/kdump-tools.default
--- makedumpfile-1.5.9/debian/kdump-tools.default	2016-01-06 02:57:33.000000000 +1300
+++ makedumpfile-1.5.9/debian/kdump-tools.default	2016-05-17 16:53:28.000000000 +1200
@@ -60,10 +60,11 @@
 # KDUMP_CMDLINE - The default is to use the contents of /proc/cmdline.  
 #     Set this variable to override /proc/cmdline.
 # KDUMP_CMDLINE_APPEND - Additional arguments to append to the command line 
-#     for the kdump kernel.  If unset, it defaults to "irqpoll maxcpus=1 nousb"
+#     for the kdump kernel.  If unset, it defaults to
+#     "irqpoll maxcpus=1 nousb systemd.unit=kdump-tools.service ata_piix.prefer_ms_hyperv=0"
 #KDUMP_KEXEC_ARGS=""
 #KDUMP_CMDLINE=""
-#KDUMP_CMDLINE_APPEND="irqpoll maxcpus=1 nousb systemd.unit=kdump-tools.service"
+#KDUMP_CMDLINE_APPEND="irqpoll maxcpus=1 nousb systemd.unit=kdump-tools.service ata_piix.prefer_ms_hyperv=0"
 
 # ---------------------------------------------------------------------------
 # Architecture specific Overrides:

Reply via email to