-
Notifications
You must be signed in to change notification settings - Fork 140
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
DNSSEC validation issues with generic/ubuntu1804 on Hyper-V #106
Comments
Yeah, this is part of the discussion here ... but it sounds like hardcoded public DNS servers might be overriden, and your local DNS servers don't support/properly forward DNSSEC information. I'm open to suggestions for improvement? I'd like to avoid disabling DNSSEC validation, since that opens up security holes. |
Well, I always prefer to have a reliable DNS resolution when I'm building a VM with Vagrant, even if the security is not state of the art. With this image I'm having trust issue everytime I type You can always build security later on, but reliability is more pressing issue I think. |
@Wenzel I'm a big fan of reliability, and I've wrestled with Long story short... can you tell me what files inside the guest need to be changed (and changed to what)? And which boxes the change should be applied to? If there is an opportunistic setting I'm happy to incorporate it. |
I have spent most of the day today trying to work around this issue. I am creating vagrant instances using The fix is just to set |
FTR I've lost 3 work days until I got here. |
I just ran into this issue with generic/ubuntu2004 on libvirtd. It looks like the ubuntu defaults are changed here: robox/scripts/ubuntu2004/network.sh Line 69 in cd60c60
scripts/< ubuntu version >/network.sh scripts.
Is the issue actually that the dns server that sits between the vm and host isn't able to use dnssec? As in the dnsmasq instance libvirtd sets up, or whatever windows hyper-v does. Any ideas how we could test that? |
Judging from the man page, dnsmasq needs to be configured to support dnssec. My libvirt dnsmasq conf file doesn't do that.
And, according to libvirt says you can pass custom config into the dnsmasq files. But I think you'd need to also configure some trust anchors. So I'm not really inclined to try and make that work when I'm only using vagrant in a dev environment. Anyway, I'm torn on what the actual solution should be. If I were working in a production environment, I'd definitely want to keep things more secure and put the effort out to configure dnssec. But my primary use of vagrant is dev, so I really don't want to put that kind effort out. I guess it boils down to what the primary use of these boxes is. Are they meant to be used in production? Or mostly just dev? For now I'll just manually update things to not use dnssec. Hopefully my research helps someone down the line. :) |
Hi, I'm cross-posting this issue from hashicorp/vagrant#11256
Basically, everytime I try to use your image, it fails with a random network access issue in the guest.
Vagrant version
Vagrant 2.2.6
Host operating system
Windows 10 build
1909
Guest operating system
generic/ubuntu1804
Vagrantfile
Please look at the following repository:
https://github.com/Wenzel/vagrant-oswatcher
Provider:
Hyper-V
Debug output
I don't believe Vagrant's debug log are useful here,
since the box configuration seems to be the root cause of this issue.
Expected behavior
The box should have been provisionned without any issues.
Actual behavior
The Ansible playbook systematically fails because of a network issue:
Temporary failure resolving us.archive.ubuntu.com
400 bad request
404 not found
Or even before the Ansible playbook is executed, the network fails.
And if it manages to execute the playbook, it systematically fails here:
I had to add a
retry
statement in my Ansible task to force retry until the network is reachable:Result:
Steps to reproduce
git clone https://github.com/Wenzel/vagrant-oswatcher
git clone https://github.com/Wenzel/oswatcher
vagrant-oswatcher/Vagrantfile
and set the local path to oswatcher's repovagrant up --provider hyperv
➡️ Any ideas on what could be the possible root cause of this ? (
systemd-resolved
,hardcoded DNS servers
,IPv6 stack being disabled
) ?Note: my host network is absolutely fine, I only have issues like this with Vagrant and your image so far.
Thank you for providing an
Hyper-V
Ubuntu image guys !The text was updated successfully, but these errors were encountered: