-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Open
Description
Debug output
Debug Logs: https://gist.github.com/urbanogilson/714258afe608a8cec49767db215e39a0
Expected behavior
Create VM
Actual behavior
An error occurred, and abort VM creation
Reproduction information
Vagrant version
> vagrant -v
Vagrant 2.4.8
Host operating system
> Get-ComputerInfo | Select-Object WindowsProductName, WindowsVersion, OsHardwareAbstractionLayer
WindowsProductName WindowsVersion OsHardwareAbstractionLayer
------------------ -------------- --------------------------
Windows 10 Pro 2009 10.0.22621.2506
Steps to reproduce
> vagrant up
Bringing machine 'vm' up with 'hyperv' provider...
==> vm: Verifying Hyper-V is enabled...
==> vm: Verifying Hyper-V is accessible...
==> vm: Importing a Hyper-V instance
vm: Creating and registering the VM...
An error occurred while executing a PowerShell script. This error
is shown below. Please read the error message and see if this is
a configuration error with your system. If it is not, then please
report a bug.
Script: import_vm.ps1
Error:
Cannot process argument transformation on parameter 'VM'. Cannot convert the "VirtualMachine (Name = 'generic-rhel9-hyperv') [Id = 'e944984f-ae71-4e1f-9d49-11d168b687a6']" value of type "Microsoft.HyperV.PowerShell.VirtualMachine" to type "Microsoft.HyperV.PowerShell.VirtualMachine".
Vagrantfile
Vagrant.configure("2") do |config|
config.vm.box = "generic/rhel9"
config.vm.box_version = "4.2.16"
end