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

[Feature Request] Linux support #208

Open
emir4169 opened this issue Jun 16, 2024 · 4 comments
Open

[Feature Request] Linux support #208

emir4169 opened this issue Jun 16, 2024 · 4 comments

Comments

@emir4169
Copy link

I would like the tools in this repository to not be platform-dependant on Windows.

@abhalala
Copy link

It would be really helpful in the cases where we need to deploy KVMs of it.

@jwillhoeft
Copy link

As a Linux first user, it seems wrong to install a full Blabla-Windows to create a Windows I would actually use in a VM.
But "the tools in this repository" are just PowerShell scripts and PowerShell is also available for Linux. I did not test it. Probably the referenced "oscdimg.exe" would need to be made available via Wine. I do not fully understand the code, but maybe you also need the "advapi32.dll"?

@Sectonidse
Copy link

Sectonidse commented Jul 11, 2024

PowerShell is also available for Linux.

Yes indeed, however it doesn't work correctly:

New-Object: ./tiny11Coremaker.ps1:17
Line |
  17 |  $adminSID = New-Object System.Security.Principal.SecurityIdentifier(" …
     |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Exception calling ".ctor" with "1" argument(s): "Windows Principal functionality is not supported on this platform."
InvalidOperation: ./tiny11Coremaker.ps1:18
Line |
  18 |  $adminGroup = $adminSID.Translate([System.Security.Principal.NTAccoun …
     |  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | You cannot call a method on a null-valued expression.
MethodInvocationException: ./tiny11Coremaker.ps1:19
Line |
  19 |  $myWindowsID=[System.Security.Principal.WindowsIdentity]::GetCurrent( …
     |  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Exception calling "GetCurrent" with "0" argument(s): "Windows Principal functionality is not supported on this platform."
New-Object: ./tiny11Coremaker.ps1:20
Line |
  20 |  … wsPrincipal=new-object System.Security.Principal.WindowsPrincipal($my …
     |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | A constructor was not found. Cannot find an appropriate constructor for type System.Security.Principal.WindowsPrincipal.
InvalidOperation: ./tiny11Coremaker.ps1:22
Line |
  22 |  if (! $myWindowsPrincipal.IsInRole($adminRole))
     |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | You cannot call a method on a null-valued expression.

(The filepaths in this log were cut off by me)

@Sectonidse
Copy link

And also, if you still proceed after the errors, then it will request you to input a drive letter, but Unix doesn't mount drives/images as letters.

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

No branches or pull requests

4 participants