If I try to create a new kali vm using vagrant I get the following error
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 convert the "System.Xml.XmlElement" value of type "System.Xml.XmlElement" to type "System.Int32".
INFO interface: Machine: error-exit ["VagrantPlugins::HyperV::Errors::PowerShellError", "An error occurred while executing a PowerShell script. This error\nis shown below. Please read the error message and see if this is\na configuration error with your system. If it is not, then please\nreport a bug.\n\nScript: import_vm.ps1\nError:\n\nCannot convert the \"System.Xml.XmlElement\" value of type \"System.Xml.XmlElement\" to type \"System.Int32\"."]
If I specify config.vm.box_version = "2025.1.0" directly it works without a problem |