With some more digging, I believe I've found the root of the bug.

https://git.launchpad.net/~ubuntu-
kernel/ubuntu/+source/linux/+git/jammy/tree/debian/rules.d/3-binary-
indep.mk

(see also 2-binary-arch.mk for the hv_* daemon binaries, and how they
get into their installed location)

That makefile is installing the scripts into $(cloudsbin), which looks
like it defaults to /usr/sbin, contrary to the path embedded in the
hv_kvp_daemon binary and the corresponding Makefile over in
jammy/tools/hv.

I think hv_* should live in /usr/libexec/hypervkvpd, and only lsvmbus
should live in /usr/sbin (as it has some diagnostic utility).  I think
rules.d/* needs to changed to eliminate the path mismatch involved in
this bug.  If consensus says these things should live in /usr/sbin, then
I'm ok with that too (and the path embedded in the hv_kvp_daemon binary
needs to be changed).

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

Title:
  [Hyper-V] KVP daemon fails to start

Status in linux package in Ubuntu:
  Confirmed
Status in linux-azure package in Ubuntu:
  Confirmed
Status in linux source package in Bionic:
  Confirmed
Status in linux-azure source package in Bionic:
  Confirmed
Status in linux source package in Cosmic:
  Confirmed
Status in linux-azure source package in Cosmic:
  Confirmed

Bug description:
  While testing Bionic daily build with kernel 4.15.0-20-generic we saw
  that there are 2 issues with the KVP daemon:

  1. KVP daemon crash after boot. Opened a different bug for this:
  https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1779640

  2. After the KVP daemon is being started the following messages
  appear:

  Apr 25 04:45:25 bionicDaily hv_kvp_daemon[1895]: sh: 1: 
/usr/libexec/hypervkvpd/hv_get_dns_info: not found
  Apr 25 04:45:25 bionicDaily hv_kvp_daemon[1895]: sh: 1: 
/usr/libexec/hypervkvpd/hv_get_dhcp_info: not found

  The above binaries are present on the system, but the their actual
  path is /usr/sbin/hv_get_dns_info and /usr/sbin/hv_get_dhcp_info.
  Either the hv_get_dhcp_info and hv_get_dns_info binaries should be
  placed in the location where the daemon is looking for
  (/usr/libexec/hypervkvpd/), or the daemon should be set to search for
  the binaries in the /usr/sbin directory.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1766857/+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