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

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

Title:
  [Hyper-V] KVP daemon fails to start on first boot of disco VM

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

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

Reply via email to