From d4002edb2e461473aec626e064df6eebf002abd2 Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Tue, 20 May 2025 18:11:35 -0700 Subject: [PATCH] Add cloud-init support to hyperv provider Adds the required actions to support cloud-init when using the hyperv provider. --- plugins/providers/hyperv/action.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/providers/hyperv/action.rb b/plugins/providers/hyperv/action.rb index f50c0a1bc..d72c22ff5 100644 --- a/plugins/providers/hyperv/action.rb +++ b/plugins/providers/hyperv/action.rb @@ -152,12 +152,14 @@ module VagrantPlugins b3.use NetSetMac end + b3.use CloudInitSetup b3.use CleanupDisks b3.use Disk b3.use SyncedFolderCleanup b3.use StartInstance b3.use WaitForIPAddress b3.use WaitForCommunicator, [:running] + b3.use CloudInitWait b3.use SyncedFolders b3.use SetHostname end