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

tart run --nested to enable nested virtualization when available #938

Merged
merged 2 commits into from
Nov 6, 2024

Conversation

fkorotkov
Copy link
Contributor

Only works for Linux VMs under Sequoia hosts.

Fixes #933
Fixes #701

Only works for Linux VMs under Sequoia hosts.

Fixes #933
Fixes #701
@fkorotkov fkorotkov requested a review from edigaryev as a code owner November 6, 2024 15:42
@fkorotkov fkorotkov enabled auto-merge (squash) November 6, 2024 15:43
func platform(nvramURL: URL) throws -> VZPlatformConfiguration {
func platform(nvramURL: URL, needsNestedVirtualization: Bool) throws -> VZPlatformConfiguration {
if needsNestedVirtualization {
throw UnsupportedNestedVirtualization()
Copy link
Collaborator

@edigaryev edigaryev Nov 6, 2024

Choose a reason for hiding this comment

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

What do you think about throwing RuntimeError.VMConfigurationError here with an appropriate message, instead of introducing a new Error struct?

Otherwise LGTM.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

SGTM see 6c07f6d

@edigaryev edigaryev self-requested a review November 6, 2024 17:27
@fkorotkov fkorotkov merged commit 9c879b3 into main Nov 6, 2024
6 checks passed
@fkorotkov fkorotkov deleted the support-nested-virtualization branch November 6, 2024 17:27
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.

2 participants