Skip to content

Commit

Permalink
Disable Hyper-V KVP daemon for Ubuntu AMI
Browse files Browse the repository at this point in the history
When launching Ubuntu 18.04 AMIs, it can be seen from the console
output that that a kernel daemon fails on startup, with the name
"Dependency failed for Hyper-V KVP Protocol Daemon." This adds over 60
seconds of boot time to the instance. Since AMIs are only running on
AWS, there is no need for a Hyper-V daemon, and it can safely be
disabled. The same steps were taken for OVAs/ESX images months ago.
  • Loading branch information
codenrhoden committed Aug 5, 2020
1 parent 49d594a commit 0277723
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions images/capi/ansible/roles/providers/tasks/aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
state: present
with_items:
- https://s3.amazonaws.com/ec2-downloads-windows/SSMAgent/latest/linux_amd64/amazon-ssm-agent.rpm
when:
- ansible_os_family == "RedHat"
when:
- ansible_os_family == "RedHat"
- ansible_distribution != "Amazon"

- name: install aws agents RPM
Expand Down Expand Up @@ -57,3 +57,10 @@
state: started
enabled: yes
when: ansible_distribution == "Ubuntu"

- name: Disable Hyper-V KVP protocol daemon on Ubuntu
systemd:
name: hv-kvp-daemon
state: stopped
enabled: false
when: ansible_os_family == "Debian"

0 comments on commit 0277723

Please sign in to comment.