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

basic hypverv machine implementation #17838

Merged
merged 1 commit into from
Mar 20, 2023

Conversation

baude
Copy link
Member

@baude baude commented Mar 17, 2023

with libhvee, we are able to do the basics of podman machine management on hyperv. The basic functions like init, rm, stop, and start are all functional. Start and stop will periodically throw a benign error processing the hyperv message being returned from the action. The error is described in the todo's below.

notable items:

  • no podman commands will work (like ps, images, etc)
  • the machine must be initialized with --image-path and fed a custom image.
  • disk size is set to 100GB statically.
  • the vm joins the default hyperv network which is TCP/IP network based.
  • podman machine ssh does not work
  • podman machine set does not work
  • you can grab the ip address from hyperv and fake a machine connection with podman system connection.
  • when booting, use the hyperv console to know the boot is complete.

TODOs:

  • podman machine ssh
  • podman machine set
  • podman machine rm needs force bool
  • disk size in NewMachine is set to 100GB
  • podman start needs to wait until fully booted
  • establish a boot complete signal from guest
  • implement gvproxy like user networking
  • fix benign failures in stop/start -> Error: error 2147749890 (FormatMessage failed with: The system cannot find message text for message number 0x%1 in the message file for %2.)

[NO NEW TESTS NEEDED]

Does this PR introduce a user-facing change?

none

@openshift-ci openshift-ci bot added the do-not-merge/release-note-label-needed Enforce release-note requirement, even if just None label Mar 17, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 17, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: baude

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 17, 2023
@openshift-ci openshift-ci bot added release-note-none and removed do-not-merge/release-note-label-needed Enforce release-note requirement, even if just None labels Mar 17, 2023
@baude
Copy link
Member Author

baude commented Mar 17, 2023

@n1hility ptal as well

Copy link
Member

@ashley-cui ashley-cui left a comment

Choose a reason for hiding this comment

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

Starting with these comments, continuing to review

pkg/machine/hyperv/machine.go Outdated Show resolved Hide resolved
pkg/machine/hyperv/machine.go Outdated Show resolved Hide resolved
pkg/machine/pull.go Outdated Show resolved Hide resolved
pkg/machine/hyperv/config.go Outdated Show resolved Hide resolved
with libhvee, we are able to do the basics of podman machine management
on hyperv.  The basic functions like init, rm, stop, and start are all
functional.  Start and stop will periodically throw a benign error
processing the hyperv message being returned from the action.  The error
is described in the todo's below.

notable items:

* no podman commands will work (like ps, images, etc)
* the machine must be initialized with --image-path and fed a custom image.
* disk size is set to 100GB statically.
* the vm joins the default hyperv network which is TCP/IP network based.
* podman machine ssh does not work
* podman machine set does not work
* you can grab the ip address from hyperv and fake a machine connection
  with `podman system connection`.
* when booting, use the hyperv console to know the boot is complete.

TODOs:
* podman machine ssh
* podman machine set
* podman machine rm needs force bool
* disk size in NewMachine is set to 100GB
* podman start needs to wait until fully booted
* establish a boot complete signal from guest
* implement gvproxy like user networking
* fix benign failures in stop/start -> Error: error 2147749890 (FormatMessage failed with: The system cannot find message text for message number 0x%1 in the message file for %2.)

[NO NEW TESTS NEEDED]

Signed-off-by: Brent Baude <[email protected]>
@ashley-cui
Copy link
Member

LGTM

@rhatdan
Copy link
Member

rhatdan commented Mar 20, 2023

/lgtm
There are a lot of TODOs in here, which will hopefully get fixed over time.

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Mar 20, 2023
@openshift-merge-robot openshift-merge-robot merged commit 060c125 into containers:main Mar 20, 2023
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 5, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. release-note-none
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants