Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resource injection fails on Win 8.1 x86 image #18

Closed
iainbrighton opened this issue Oct 20, 2015 · 1 comment
Closed

Resource injection fails on Win 8.1 x86 image #18

iainbrighton opened this issue Oct 20, 2015 · 1 comment
Labels

Comments

@iainbrighton
Copy link
Contributor

When injecting resources and VM customisations on Win 8.1 x86 image fails with

VERBOSE: [20:52:05] Mounting disk image 'D:\TestLab\VM Disks\WIN81.vhdx'.
Cannot the drive letter for disk image 'd:\testlab\vm disks\win81.vhdx'. The parent disk image may be corrupted or
recreate the master image.
At C:\Users\Iain\OneDrive\PowerShell\Modules\VirtualEngineLab\Lib\DiskImage.ps1:18 char:13
+             throw ($localized.CannotLocateDiskImageLetter -f $DiskIma ...
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (Cannot the driv...e master image.:String) [], RuntimeException
    + FullyQualifiedErrorId : Cannot the drive letter for disk image 'd:\testlab\vm disks\win81.vhdx'. The parent disk
    image may be corrupted or recreate the master image.
@iainbrighton
Copy link
Contributor Author

x86 VMs are created with a MBR boot record, whilst x64 VMs are creadted with a GPT boot record. This results in different partition types. Need to add x86/x64 detection to both the SetLabVMDiskFile and SetLabVMDiskResource functions.

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

No branches or pull requests

1 participant