Comment 33 for bug 1820063

Revision history for this message
Ladar Levison (kingladar) wrote :

This bug returned with the Groovy Gorilla release. In this case, the `linux-cloud-tools-generic` package was installed during setup. I confirmed the fixes linked to above were being used by the requisite udev/service unit files. To see for yourself you can run:

vagrant init --box-version=3.1.0
vagrant up --provider=libvirt

If pulling the console up using virt-viewer you will see the boot process hang.

I managed to fix the bug with following:

# Disable the daemon to remove the symlihk.
systemctl disable hv-kvp-daemon.service

# Override the default unit file with a version that won't hang during boot ups.
cat <<-EOF > /etc/systemd/system/multi-user.target.wants/hv-kvp-daemon.service
[Unit]
Description=Hyper-V KVP Protocol Daemon
ConditionVirtualization=microsoft
ConditionPathExists=/dev/vmbus/hv_kvp
DefaultDependencies=no
BindsTo=sys-devices-virtual-misc-vmbus\x21hv_kvp.device
After=systemd-remount-fs.service
Before=shutdown.target cloud-init-local.service walinuxagent.service
Conflicts=shutdown.target
RequiresMountsFor=/var/lib/hyperv

[Service]
ExecStart=/usr/sbin/hv_kvp_daemon -n

[Install]
WantedBy=multi-user.target

EOF

See:
https://github.com/lavabit/robox/pull/174
https://github.com/lavabit/robox/blob/master/scripts/ubuntu2010/fixkvp.sh