-
Notifications
You must be signed in to change notification settings - Fork 7
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
Inherit or specify DNS configuration #31
Comments
Hey @WarriorXK, do you happen to use a Tart VM that has DNS configured? For example, our images were setting up DNS which override the host settings. In case |
Is there some special thing we need to do in order to let the VM's use the host network? We have a hosted mac which is connected to a VPN.
|
Hello @PaulWoitaschek, Consider using a VPN solution with Network Extension support, for example, WireGuard. If you're using OpenVPN, macOS networking machinery won't be able to tell that it is a VPN and configure the proper packet filter rules. See cirruslabs/tart#278 (comment) for more details. |
I'm also not sure if Ventura images have this change cirruslabs/macos-image-templates#87 which removes DNS override within the VM. You can also try the latest Sonoma images even if the host is still Ventura. EDIT: seems redacted.com resolves so you don't have this issue. |
Thank you! Switching our companies VPN to WireGuard is unfortunatelly not in my power. I don't understand the comments regarding orchard. Does this mean that running tart in an OpenVPN enviornment is not possible? |
It just notes that with Orchard, it's easier to connect to the VMs behind the NAT, be it SSH or any other port on the VM and this VPN might not be needed at all. As for the OpenVPN, Tart VMs (and any other Virtualization.Framework-based solutions) won't get a proper routing to the VPN's subnet if such VPN isn't built on top of the Network Extension. |
So the only option I have is to let each job install openvpn, and pass the credentials as env variables? |
You might also have a luck toying with We've considered doing this automatically in Tart, but running |
So I'd run |
@PaulWoitaschek unfortunately, this is a question beyond general support and the answer will be most likely specific to your use case. We'll need to specifically work with you, try to reproduce your use case and find a solution. Due to resource limitation on our end we only do so for folks on Priority Support. As @edigaryev mentioned, please take a look at |
Hi there,
Since we have a lot of internal services (Private gitlab, internal packages service, etc) that we need access to from our CI jobs we need the tart VM to be configured to use a specific DNS server, currently we have our own custom implementation to start tart VMs for gitlab CI but we'd like to switch to this package instead. In order to do that we need to configure the DNS server before cloning.
To do that we currently run
networksetup -setdnsservers Ethernet $HOST_DNS
in the prepare stage inside the tart VM where$HOST_DNS
is the DNS server configured on the physical Mac read usingHOST_DNS="$(scutil --dns | grep nameserver | head -n 1 | awk '{print $3}')"
.I would suggest a
--dns-server
option togitlab-tart-executor prepare
allowing the valueinherit
to inherit the config from the host, or an IP address to allow for a custom value.The text was updated successfully, but these errors were encountered: