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

Petri: Hyper-V support #644

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

tjones60
Copy link
Contributor

Adds support for running Hyper-V VMM tests to Petri. Includes functionality to run basic boot test, more configuration options will be added in future PRs to run more specialized tests.

@tjones60 tjones60 requested review from a team as code owners January 10, 2025 01:21
path,
),
#[cfg(windows)]
ImageType::Vhd => build_disk_image_vhd(
Copy link
Member

Choose a reason for hiding this comment

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

Don't do this. Just build a raw image and then call disk_vhd1::Vhd1Disk::make_fixed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh cool I didn't know we had that

@@ -278,7 +278,7 @@ impl SimpleFlowNode for Node {

if add_hyperv_pipette_reg_key && rt.platform() == FlowPlatform::Windows {
let sh = xshell::Shell::new()?;
xshell::cmd!(sh, "reg add \"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Virtualization\\GuestCommunicationServices\\00001337-facb-11e6-bd58-64006a7986d3\" /v ElementName /t REG_SZ /d \"pipette\" /f").run()?;
xshell::cmd!(sh, "MSYS_NO_PATHCONV=1 reg add \"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Virtualization\\GuestCommunicationServices\\00001337-facb-11e6-bd58-64006a7986d3\" /v ElementName /t REG_SZ /d \"pipette\" /f").run()?;
Copy link
Member

Choose a reason for hiding this comment

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

What makes you think we're going through msys/cygwin?

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