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

uvmboot functionality #1359

Merged
merged 3 commits into from
Apr 26, 2022
Merged

uvmboot functionality #1359

merged 3 commits into from
Apr 26, 2022

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 hamzaelsaawy@microsoft.com

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 <hamzaelsaawy@microsoft.com>
@jterry75
Copy link
Contributor

LCOW gets all the love :). This is cool

internal/tools/uvmboot/mounts.go Outdated Show resolved Hide resolved
internal/tools/uvmboot/mounts.go Outdated Show resolved Hide resolved
Signed-off-by: Hamza El-Saawy <hamzaelsaawy@microsoft.com>
"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 <hamzaelsaawy@microsoft.com>
@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 <hamzaelsaawy@microsoft.com>

* PR: math

Signed-off-by: Hamza El-Saawy <hamzaelsaawy@microsoft.com>

* PR: spelling

Signed-off-by: Hamza El-Saawy <hamzaelsaawy@microsoft.com>
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