Public bug reported:

Situation: (focal) ubuntu-minimal + linux-virtual-hwe-20.04 + 
linux-cloud-tools-virtual-hwe-20.04
Running as a Gen-2 Hyper-V guest on Windows 10.

1) Ubuntu release

Description:    Ubuntu 20.04.1 LTS
Release:        20.04

2) package versions

linux-cloud-tools-5.4.0-52:
  Installed: 5.4.0-52.57

linux-cloud-tools-common:
  Installed: 5.4.0-52.57

3) expected behavior

hv_kvp_daemon should work out of the box, providing information to the
Hyper-V host.

4) actual behavior

hv_kvp_daemon logs errors about not finding files it needs to provide
the information:

hv_kvp_daemon[276209]: sh: 1: /usr/libexec/hypervkvpd/hv_get_dns_info: not found
hv_kvp_daemon[276211]: sh: 1: /usr/libexec/hypervkvpd/hv_get_dhcp_info: not 
found

5) anasysis

The actual hv_kvp_daemon binary is hardcoded with a path to the sub-
utilities it uses (I don't think it is runtime configurable).

$ strings /usr/lib/linux-tools-5.4.0-52/hv_kvp_daemon | grep libexec
/usr/libexec/hypervkvpd/%s
/usr/libexec/hypervkvpd/%s %s

These binaries are instead located at:
$ locate hv_get_dns_info
/usr/sbin/hv_get_dns_info

Suggested solution: either compile hv_kvp_daemon so it uses /usr/sbin
instead of /usr/libexec/hypervkvpd, or (probably easier) make linux-
cloud-tools-common install the scripts in /usr/libexec/hypervkvpd
instead of in /usr/sbin, or (easiest) install an extra symlink as in the
workaround below.

6) workaround

$ sudo mkdir /usr/libexec
$ sudo ln -s /usr/sbin /usr/libexec/hypervkvpd

** Affects: ubuntu
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1903391

Title:
  linux-cloud-tools and linux-cloud-tools-common disagree on file paths

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to