Skip to content

Conversation

@cfergeau
Copy link
Collaborator

@cfergeau cfergeau commented May 26, 2025

This adds a list of adopters (podman/minikube/…), and mentions gvisor-tap-vsock and vmnet-helper.

Summary by Sourcery

Expand project documentation with additional sections and clarifications

Documentation:

  • Add Usage section linking to external usage guide
  • Add Presentations section listing recent conference talks
  • Add Adopters section listing known consumers (minikube, podman, crc, ovm)
  • Rename Background to Technical background and clarify kernel bootloader requirements on Apple Silicon
  • Include note on integration with gvisor-tap-vsock and vmnet-helper for advanced networking options

@sourcery-ai
Copy link

sourcery-ai bot commented May 26, 2025

Reviewer's Guide

This PR enriches and reorganizes the documentation by refactoring the README structure (adding Usage, Presentations, and Adopters sections), clarifying bootloader-specific kernel requirements, and extending the usage guide with networking integration details for gvisor-tap-vsock and vmnet-helper.

Flow Diagram: vfkit Kernel Requirement Check on Apple Silicon

flowchart TD
    A["Start vfkit"] --> B{"Is hardware Apple Silicon?"};
    B -- "No" --> F["Proceed with boot<br/>(no special kernel requirement)"];
    B -- "Yes" --> C{"Bootloader option is 'linux'?"};
    C -- "No (e.g., 'efi')" --> F;
    C -- "Yes" --> D{"Is kernel uncompressed?"};
    D -- "Yes" --> F;
    D -- "No" --> E["Error: vfkit requires uncompressed kernel<br/>with 'linux' bootloader on Apple Silicon"];
Loading

File-Level Changes

Change Details Files
Refactored and expanded README documentation structure
  • updated project description for consistency
  • introduced 'Usage' section linking to external doc
  • added 'Presentations' section with conference links
  • added 'Adopters' section listing consumers
README.md
Reorganized background content and bootloader requirements
  • renamed 'Background' heading to 'Technical background'
  • clarified kernel uncompression requirements for linux and efi bootloaders
README.md
Enhanced usage documentation with networking integrations
  • noted native NAT networking support limitation
  • added integrations with gvisor-tap-vsock and vmnet-helper
doc/usage.md

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@openshift-ci openshift-ci bot requested review from baude and lstocchi May 26, 2025 15:15
Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey @cfergeau - I've reviewed your changes and they look great!

Here's what I looked at during the review
  • 🟢 General issues: all looks good
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Documentation: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.


The `--device virtio-net` option adds a network interface to the virtual machine. If it gets its IP address through DHCP, its IP can be found in `/var/db/dhcpd_leases` on the host.

vfkit only supports NAT networking on its own. However, it integrates with [gvisor-tap-vsock](https://github.com/containers/gvisor-tap-vsock) for a user-mode networking stack, and [vmnet-helper](https://github.com/nirs/vmnet-helper) for shared/bridged/host networking through vmnet.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks good high level overview, but users will need an example to understand how to actually use this.

I have this example:
https://github.com/nirs/vmnet-helper/blob/main/examples/vfkit.sh

Maybe we can have simple examples here for vment-helper and gvproxy? This can also be in an examples/ directory.

Copy link
Collaborator Author

@cfergeau cfergeau Jun 2, 2025

Choose a reason for hiding this comment

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

There is a brief gvproxy example here, but even this one could be more detailed

It makes more sense to me to add examples to https://github.com/crc-org/vfkit/tree/main/contrib/scripts as you suggested, I’ll look into it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I’ve filed #317 as a followup.

cfergeau added 4 commits June 2, 2025 18:21
Clarify a few things, reorder some sections, …

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
These technical details will be easier to find at more relevant places
in usage.md rather than at the end of README.md

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
This lists the higher level projects which are using vfkit.

This fixes crc-org#302

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
This fixes crc-org#291

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
@openshift-ci
Copy link

openshift-ci bot commented Jun 2, 2025

@nirs: changing LGTM is restricted to collaborators

Details

In response to this:

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@openshift-ci
Copy link

openshift-ci bot commented Jun 2, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: nirs
Once this PR has been reviewed and has the lgtm label, please assign praveenkumar for approval. For more information see the Code Review Process.

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

Details 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

@cfergeau cfergeau merged commit 16d5ddd into crc-org:main Jun 3, 2025
6 of 8 checks passed
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