-
Notifications
You must be signed in to change notification settings - Fork 98
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
base: main
Are you sure you want to change the base?
Conversation
path, | ||
), | ||
#[cfg(windows)] | ||
ImageType::Vhd => build_disk_image_vhd( |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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()?; |
There was a problem hiding this comment.
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?
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.