Comments (7)
Actually we did never have the chance to run AL on a computer having MPIO drives attached. Can you propose a code change to fix this or do you have a test machine we can connect to for a short time to fix this ourselves?
from automatedlab.
I cannot provide access, but I'd be happy to propose a code change. I'll get the specifics and cobble something together.
from automatedlab.
Thanks in advance for your time. If you need help, please reach out to us.
from automatedlab.
What's the reasoning on excluding virtual disks? I think part of the issue I'm seeing could be from the disk is inside a thin provisioned storage space. It seems the checking against BusType should be sufficient.
from automatedlab.
As far as I remember we excluded virtual disk as we did not want to install into a mounted VHD by accident. Also mounted VHDs do not have a serial number and we used the serial number and signature to uniquely identity a disk. However I have looked up the cache and did not find the information there so I am not sure if we still need this info:
Select-Xml -Xml ([xml](Get-ItemProperty -Path HKCU:\SOFTWARE\AutomatedLab\Cache -Name LocalDisks).LocalDisks) -XPath //LocalDisk | Select-Object -ExpandProperty Node | ft @{ Name = 'DriveLetter'; Expression = { ([char][int]$_.DriveLetter) } }, Serial, Signature
Does it help to change the lines in AutomatedLabDefinition.psm1 around line 484 and remove the where statements?
$physicalDisks = Get-PhysicalDisk # | Where-Object { $_.BusType -ne 'File Backed Virtual' }
$disks = Get-CimInstance -Class Win32_DiskDrive #|
#Where-Object { $_.SerialNumber } |
#Where-Object { $_.SerialNumber.Trim() -in $physicalDisks.SerialNumber }
Per, what do you think about this?
from automatedlab.
Commenting out the where statement is exactly the workaround I've been using. In my instance, Get-PhysicalDisk does return a serial number on the storage spaces, but Win32_DiskDrive returns an object for the serial number that doesn't match it.
from automatedlab.
I have asked Per Pedersen if this change is going to create trouble - he has written the disk measurement and discovery feature. If he agrees, we will make this for V4.
from automatedlab.
Related Issues (20)
- [Bug]: Custom role not installed, lab sources file share not accessible HOT 4
- [Bug]: Timeout Error Waiting for Active Directory to Start on Domain Controller HOT 1
- [Bug]: Secondary DC installation is not reentrant HOT 3
- [New Feature]: System Drive Cleanup HOT 2
- [Bug]: VMConnect config file creation fails under SYSTEM HOT 1
- [Bug]: Cannot validate argument on parameter 'ParentPath' HOT 6
- [Bug]: Cannot Install Windows 11 Enterprise with AutomatedLab HOT 10
- [New Feature]: Disable VM Time Synchronization HOT 2
- Release Process Documentation
- [Bug]: Unknown error in 'Stop-LabVM'. Cannot call 'Stop-LabVM2' HOT 1
- [Bug]: -InstallationUserCredential mixed up in New-LabPSSession HOT 8
- [Bug]: Exchange task 'Exchange PrepareSchema' failed on 'E1Ex1' HOT 6
- [Bug]: Cannot reuse NetworkAdapter Objects HOT 2
- Add Windows Server 2025 Product Key HOT 6
- [Bug]: WARNING: (x,y): warning CS0168: The variable 'e' is declared but never used
- [Bug]: Can not install a secondary DC (role = DC) HOT 2
- Azure outdated Windows 10 & 11 image versions HOT 1
- [Bug]: Error configuring SSRS with SQL Server 2022
- [Bug]: When removing an Azure lab, 'Get-VMSwitch' is not recognized as a name of a cmdlet, function...
- [Bug]: Azure Windows 11 Deployment Gen2 VM
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from automatedlab.