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

[New Feature]: Support for Oracle Linux #1593

Open
andreasjordan opened this issue Dec 4, 2023 · 3 comments
Open

[New Feature]: Support for Oracle Linux #1593

andreasjordan opened this issue Dec 4, 2023 · 3 comments
Assignees
Labels
Enhancement The issue is an enhancement request.

Comments

@andreasjordan
Copy link
Contributor

andreasjordan commented Dec 4, 2023

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?

@raandree raandree added the Enhancement The issue is an enhancement request. label Feb 16, 2024
@raandree
Copy link
Member

I have taken the liberty of giving this topic to @nyanhp. If anyone can realize it, it's him.

@andreasjordan
Copy link
Contributor Author

If I can help with finding the right changes in the PowerShell code, ping me. But I cannot change the C# code.

@raandree
Copy link
Member

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement The issue is an enhancement request.
Projects
None yet
Development

No branches or pull requests

3 participants