Skip to content

Conversation

@helsaawy
Copy link
Contributor

@helsaawy helsaawy commented Apr 19, 2022

Added functionality to internal\tools\uvmboot for LCOW:

  • specifying boot file path;
  • picking kernel or vmlinux file;
  • mounting SCSI VHDS and sharing files into the uVM;
  • disabling the time sync;
  • setting the uVM security policy.

Added IsElevated() bool function to internal/winapi to quit early
if the command is not run with admin privileges rather than returning a
cryptic error.

This is to support testing and benchmarking the Linux GCS.

Signed-off-by: Hamza El-Saawy [email protected]

Added functionality to internal\tools\uvmboot for LCOW:
* specifying boot file path;
* picking kernel or vmlinux file;
* mounting SCSI VHDS and sharing files into the uVM;
* disabling the time sync;
* setting the uVM security policy.

Added `IsElevated() bool` function to `internal/winapi` to quite early
if the command is not run with admin privileges rather than returning a
cryptic error.

This is to support testing and benchmarking the Linux GCS.

Signed-off-by: Hamza El-Saawy <[email protected]>
@jterry75
Copy link
Contributor

LCOW gets all the love :). This is cool

Signed-off-by: Hamza El-Saawy <[email protected]>
"golang.org/x/sys/windows"
)

func IsEvelated() bool {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
func IsEvelated() bool {
func IsElevated() bool {

Signed-off-by: Hamza El-Saawy <[email protected]>
@helsaawy helsaawy merged commit 12a54a3 into microsoft:master Apr 26, 2022
@helsaawy helsaawy deleted the he/uvmboot branch April 26, 2022 23:55
@helsaawy helsaawy mentioned this pull request Apr 26, 2022
3 tasks
anmaxvl added a commit that referenced this pull request Feb 7, 2023
princepereira pushed a commit to princepereira/hcsshim that referenced this pull request Aug 29, 2024
* uvmboot functionality

Added functionality to internal\tools\uvmboot for LCOW:
* specifying boot file path;
* picking kernel or vmlinux file;
* mounting SCSI VHDS and sharing files into the uVM;
* disabling the time sync;
* setting the uVM security policy.

Added `IsElevated() bool` function to `internal/winapi` to quite early
if the command is not run with admin privileges rather than returning a
cryptic error.

This is to support testing and benchmarking the Linux GCS.

Signed-off-by: Hamza El-Saawy <[email protected]>

* PR: math

Signed-off-by: Hamza El-Saawy <[email protected]>

* PR: spelling

Signed-off-by: Hamza El-Saawy <[email protected]>
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

Successfully merging this pull request may close these issues.

4 participants