Skip to content

Conversation

@gursewak1997
Copy link
Collaborator

Configure QEMU user-mode networking to use host DNS servers from /etc/resolv.conf instead of the default 10.0.2.3, which doesn't work when QEMU runs inside containers.

@gursewak1997 gursewak1997 force-pushed the fix/dns-resolution-ephemeral-guests branch 2 times, most recently from d5e8558 to f693004 Compare December 2, 2025 06:26
Copy link
Collaborator

@cgwalters cgwalters left a comment

Choose a reason for hiding this comment

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

I'm fine with this overall if you are; a few nits.

That said, an integration test (run as part of just test-integration ephemeral) would be both easy and IMO mandatory for changes like this.

@gursewak1997 gursewak1997 force-pushed the fix/dns-resolution-ephemeral-guests branch 8 times, most recently from 542253f to 8b859ad Compare December 2, 2025 23:18
@gursewak1997 gursewak1997 marked this pull request as ready for review December 3, 2025 01:25
@gursewak1997 gursewak1997 force-pushed the fix/dns-resolution-ephemeral-guests branch 3 times, most recently from dcc3ad4 to 9996db4 Compare December 5, 2025 19:52
@gursewak1997
Copy link
Collaborator Author

gursewak1997 commented Dec 5, 2025

Network connectivity test (podman pull) failed: stdout: Error: configure storage: 'overlay' is not supported over overlayfs, a mount_program is required: backing file system is unsupported for this graph driver
Can switch to something simpler which doesn't require podman
Edit: Switching the test to use HTTP

@gursewak1997 gursewak1997 force-pushed the fix/dns-resolution-ephemeral-guests branch from 9996db4 to 5e28fd5 Compare December 5, 2025 21:31
@cgwalters
Copy link
Collaborator

cgwalters commented Dec 5, 2025

Error: configure storage: 'overlay' is not supported over overlayfs, a mount_program is required: backing file system is unsupported for this graph driver

Ah yes that relates to #22 - basically all of /var needs to be equivalent to a VOLUME in docker/podman terms - it needs to be copied up to a tmpfs.

Copy link
Collaborator

@cgwalters cgwalters left a comment

Choose a reason for hiding this comment

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

One nit otherwise looks sane (though I'd reiterate we probably really do want a bigger fix of --net=host per the issue, but this helps for now)

"-c",
r#"
for i in $(seq 1 30); do
ip -4 addr show | grep -q "inet " && break
Copy link
Collaborator

Choose a reason for hiding this comment

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

Because ssh requires IP networking, I can't think of a scenario in which ssh would work but this could somehow fail. This is likely just dead code.

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 see. Updated and removed the dead code there.

@gursewak1997 gursewak1997 force-pushed the fix/dns-resolution-ephemeral-guests branch from 5e28fd5 to 57af585 Compare December 5, 2025 21:52
@gursewak1997 gursewak1997 linked an issue Dec 5, 2025 that may be closed by this pull request
Configure QEMU user-mode networking to use host DNS servers from
/etc/resolv.conf instead of the default 10.0.2.3, which doesn't work
when QEMU runs inside containers.

Signed-off-by: gursewak1997 <[email protected]>
@gursewak1997 gursewak1997 force-pushed the fix/dns-resolution-ephemeral-guests branch from 57af585 to eb89500 Compare December 6, 2025 08:00
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.

DNS resolving not working in ephemeral guests

3 participants