Skip to content
This repository has been archived by the owner on May 8, 2023. It is now read-only.

Argument Exception when mounting DVD images on Windows 10 #17

Open
acasquete opened this issue Oct 26, 2015 · 2 comments
Open

Argument Exception when mounting DVD images on Windows 10 #17

acasquete opened this issue Oct 26, 2015 · 2 comments

Comments

@acasquete
Copy link

Running on Windows 10 we get an exception when trying to mount the secondary DVD image. It seems that the Add-VMDvdDrive cmdlet needs a third parameter.

==> hyperv-iso: Creating virtual machine...
==> hyperv-iso: Enabling Integration Service...
==> hyperv-iso: Mounting dvd drive...
==> hyperv-iso: Mounting floppy drive...
==> hyperv-iso: Mounting secondary DVD images...
==> hyperv-iso: PowerShell error: Add-VMDvdDrive : Exception of type 'System.ArgumentException' was thrown.
==> hyperv-iso: Parameter name: folderPath
==> hyperv-iso: At C:\Users\Alex\AppData\Local\Temp\ps512879933.ps1:2 char:1
==> hyperv-iso: + Add-VMDvdDrive -VMName $vmName -ControllerNumber $controllerNumber
==> hyperv-iso: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
==> hyperv-iso:     + CategoryInfo          : InvalidArgument: (:) [Add-VMDvdDrive], VirtualizationException
==> hyperv-iso:     + FullyQualifiedErrorId : InvalidParameter,Microsoft.HyperV.PowerShell.Commands.AddVMDvdDrive
==> hyperv-iso: Unmounting floppy drive (cleanup)...
@JMcQuade68
Copy link

I get same issue, running Windows 10.

@pbolduc
Copy link
Owner

pbolduc commented May 16, 2016

I do not recommend the use of this project any more. There has been significant work done to create a first last builder for Packer. You should check out: hashicorp/packer#2576

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants