[New Feature]: Support for Oracle Linux
Description
I tried to use Oracle Linux today - as it should be working like RedHat. The ISO "OracleLinux-R8-U9-x86_64-dvd.iso" was displayed by Get-LabAvailableOperatingSystem like this:
Architecture : x64
OperatingSystemName : Oracle Linux 8.9.0
Version : 8.9
PublishedDate : 19.11.2023 00:19:03
Size : 13434355712
Edition : AppStream
Installation : Client
AzureImageName :
VMWareImageName :
ProductKey :
IsoPath : C:\AutomatedLab-Sources\ISOs\OracleLinux-R8-U9-x86_64-dvd.iso
IsoName : OracleLinux-R8-U9-x86_64-dvd
BaseDiskPath :
LinuxPackageGroup : {}
LinuxType : Unknown
OperatingSystemType : Linux
OperatingSystemImageName : Oracle Linux 8.9.0
OperatingSystemImageDescription :
ImageIndex : 0
So LinuxType is "Unknown" here.
While running Install-Lab it is recognized as "Suse" and is failing in "AutomatedLabWorker.psm1:6863" while copying data.
As far as I scanned the code I don't have a chance to change some lines of code to get it to present itself as RedHat. Best chance is to change OperatingSystem.cs and include "Oracle" in if (System.Text.RegularExpressions.Regex.IsMatch(OperatingSystemName, "CentOS|Red Hat|Fedora")) return LinuxType.RedHat;. But I don't know how to change and compile this locally.
Do you have any plans to support Oracle Linux? Do you see a chance for a workaround inside of the PowerShell code that I can try locally?
I have taken the liberty of giving this topic to @nyanhp. If anyone can realize it, it's him.
If I can help with finding the right changes in the PowerShell code, ping me. But I cannot change the C# code.
Normally the C# code does not need to be touched, only if new properties need to be added to the VM or role class. In this case I am happy to help.
@nyanhp, what do you think? Is it necessary to change the C# classes to support a new Linux distribution?