Hyper-V KVP infrastructure not working properly in 14.04 Trusty

Bug #1274702 reported by Abhishek Gupta
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
hv-kvp-daemon-init (Ubuntu)
Fix Released
Undecided
Robert C Jennings

Bug Description

The Hyper-V KVP package is required to display various metadata from a virtual machine. Currently, the package is installed by using the following command:

sudo apt-get install hv-kvp-daemon-init

However the installed drivers and daemons do not start even after rebooting the VM.

One some further investigation it seems that the kernel installed through the Ubuntu 12.10 ISO is different from the kernel for which the package is compiled and that is why the daemons do not start. After upgrading the kernel manually to match the package, the daemons could be started. After talking to Ben it appears that the kernel should have been automatically upgraded once the hv-kvp package was installed and this might be an issue.

For Ubuntu 13.10, we saw that we have to use two commands to install the hv-kvp package:

apt-get install linux-tools-3.11.0-15-generic
apt-get install hv-kvp-daemon-init

Furthermore, even after installing the packages, the daemons are not available under /usr/sbin and have to be manually moved there. Can we make the hv-kvp package dependent on the Linux-tools package? Also can be automatically store in the daemons on the correct disk location?

Please let us know.
Thanks,
Abhishek

Martin Pitt (pitti)
affects: systemd (Ubuntu) → hv-kvp-daemon-init (Ubuntu)
Revision history for this message
Ben Howard (darkmuggle-deactivatedaccount) wrote :

Can you provide more information about the version(s) where you are seeing this?

Changed in hv-kvp-daemon-init (Ubuntu):
assignee: nobody → Robert C Jennings (rcj)
Revision history for this message
Abhishek Gupta (abgupta) wrote :

We are seeing this with both Ubuntu 12.10 and Ubuntu 13.10. The problems are slightly different on the two versions as I mentioned above.

On Ubuntu 12.10, the default kernel version is 3.5.0-17 and the tools package that is installed is linux-tools-3.5.0-45.

On Ubuntu 13.10, my setup shows kernel version 3.11.0-9 but tools show 3.11.0-12.

There is definitely such mismatch. Have you guys tested this on hyper-v?
Please let us know if you need more information.

Thanks,
Abhishek

Revision history for this message
Andy Whitcroft (apw) wrote :

The tools should not be directly in /usr/sbin, the names there are installed by the linux-tools-common package (a dependancy of the appropriate linux-tools package). They must be wrappers to allow appropraiatly versioned daemons for the running kernel.

Revision history for this message
Andy Whitcroft (apw) wrote :

The hyper-v tooling has now been split out into a cloud-tools package which should simplify things, this should be retested.

Revision history for this message
Abhishek Gupta (abgupta) wrote :

Hi Andy, Will the changes also make things right for older distributions? Please let me know.
Thanks,
Abhishek

Revision history for this message
Abhishek Gupta (abgupta) wrote :

The daemons are not running by default in the latest trusty builds picked up from here:

http://cdimage.ubuntu.com/ubuntu-server/daily/current/

Please could you suggest which build may have the daemons running by default?
Thanks,
Abhishek

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in hv-kvp-daemon-init (Ubuntu):
status: New → Confirmed
Revision history for this message
Abhishek Gupta (abgupta) wrote :

Hello, Can we get some update on this issue. It seems that the kvp and vss daemon have completely disappeared and now we neither have them in the ISO nor there are packages for them. Please can someone help fix this?
Thanks,
Abhishek

Abhishek Gupta (abgupta)
summary: - Hyper-V KVP infrastructure not working properly
+ Hyper-V KVP infrastructure not working properly in 14.04
summary: - Hyper-V KVP infrastructure not working properly in 14.04
+ Hyper-V KVP infrastructure not working properly in 14.04 Trusty
Revision history for this message
Robert C Jennings (rcj) wrote :

Abhishek,
I am working on resolving this issue. 14.04 images will include the hv-kvp-daemon-init package which will pre-req the linux-cloud-tools-virtual package apw mentioned in comment #4. I will post another update with progress by EOD Friday March 12th.

Changed in hv-kvp-daemon-init (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Abhishek Gupta (abgupta) wrote :

Thanks for the update Robert! Eagerly awaiting the fix.
Abhishek

Revision history for this message
Andy Whitcroft (apw) wrote :

I believe the fix for this will express correctly when hv-kvp-daemon-init 0.4ubuntu3 hits the images, hopefully tonight.

Revision history for this message
Robert C Jennings (rcj) wrote :

Confirmed that this is correct with Ubuntu_DAILY_BUILD-trusty-14_04-LTS-amd64-server-20140316-en-us-30GB

At boot the two expected daemons are running:
# ps -ef|egrep "hv.*daemon"
root 1163 1 0 05:43 ? 00:00:00 /usr/lib/linux-tools/3.13.0-17-generic/hv_vss_daemon
root 1242 1 0 05:43 ? 00:00:00 /usr/lib/linux-tools/3.13.0-17-generic/hv_kvp_daemon

Changed in hv-kvp-daemon-init (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Chris Valean (chvale) wrote :

Hi Robert,
Please let us know how we obtain that build or when it will be released?
At http://cdimage.ubuntu.com/ubuntu-server/daily/current/ (or http://cdimage.ubuntu.com/ubuntu-server/daily/ ) the latest build is dated 2014-03-13.

Chris V.

Revision history for this message
Robert C Jennings (rcj) wrote :

Chris V.

This was in the images we publish to azure, not the server image. So I'll open a separate bug to discuss adding packages to the server CD image.

Revision history for this message
Abhishek Gupta (abgupta) wrote :

Hi Robert, Thank you for taking notice. Please could you add me and Chris to the new issue as well? Thank you,
Abhishek

Revision history for this message
Robert C Jennings (rcj) wrote :

Opened bug #1294856 to request inclusion on the server install image.

Revision history for this message
Tom Fanning (tfanning) wrote :

I just ran into this on ubuntu-14.04.3-server-amd64 and the package I had to install to get Hyper-V to be able to see the IP address on its Networking tab was linux-cloud-tools-generic-lts-vivid, despite me being on trusty.

Most confusing.

Revision history for this message
Chris Valean (cvalean) wrote :

Hi Tom,
The lts-vivid tag comes from the fact that the Ubuntu kernel on 14.04.3 got re-based to the Vivid kernel, so for that reason all related kernel packages are caring the lts-vivid tag.

For ease of use, if you use the package name in this format linux-cloud-tools-`uname -r` then that will take care of this.

Revision history for this message
Tom Fanning (tfanning) wrote :

Thanks Chris, very helpful, appreciate that.

Revision history for this message
Tom Fanning (tfanning) wrote :

One question - how does that handle kernel updates?

Obviously running apt-get install linux-cloud-tools-`uname -r` right now gets me linux-cloud-tools-3.16.0-48-generic but what when I apt-get upgrade myself to a new kernel automatically? Will linux-cloud-tools-3.16.0-48-generic get updated as well?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.