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

WIP: add qemu support on macos #6

Draft
wants to merge 1 commit into
base: create-refactor-2
Choose a base branch
from
Draft

Conversation

Orzelius
Copy link
Owner

@Orzelius Orzelius commented Feb 23, 2025

Make the qemu provider work on darwin.

  • Hide unsupported flags on darwin. Most network flags are unsupported due to the limited nature of the macos network setup.

Technically this doesn't have to be based on the changes made in siderolabs#10334, but this way it's a bit cleaner. If siderolabs#10334 gets rejected this can still be merged with minimal changes

This is currently in testing stage. Some bugs might still be present and some flags might not function yet, but the bulk of the changes are finished.

TODO:

Networking setup

The nodes run in vmnet shared mode which allows traffic originating from the vmnet interface to reach the Internet through a network address translator (NAT). The vmnet interface can communicate with the host and with other shared mode interfaces on the same subnet.

DHCP is handled via bootpd (apple's native dhcp server). Nodes have to be made sequentially. Node has to be assigned an ip before the following nodes are created to assure correct IPs.

Resources

Make the qemu provider work on darwin.
* Hide unsupported flags on darwin. Most network flags are unsupported
  due to the limited nature of the macos network setup.

Signed-off-by: Orzelius <[email protected]>
@rothgar
Copy link

rothgar commented Feb 25, 2025

After this is working would you be interested in PRing it to the official talosctl code? We get a lot of questions from people on macOS looking for more complete local cluster options.

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