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

Bridge Networking Support #358

Closed
semaja2 opened this issue May 31, 2020 · 15 comments
Closed

Bridge Networking Support #358

semaja2 opened this issue May 31, 2020 · 15 comments
Labels
enhancement New feature or request qemu QEMU related
Milestone

Comments

@semaja2
Copy link

semaja2 commented May 31, 2020

Is there plans to add bridged host networking support? Or is this a restriction from the iOS platform

I have some applications that work on layer 2 technologies that won’t work behind the current NAT design

@osy
Copy link
Contributor

osy commented May 31, 2020

Not sure if it’s possible.

@osy osy added enhancement New feature or request qemu QEMU related labels May 31, 2020
@professorUnknown
Copy link

This would be useful for a virtual machines running altserver.

@boy13epic
Copy link

good

@osy osy added this to the v2.1 milestone Sep 8, 2020
@utmapp utmapp deleted a comment from geoff-nixon Sep 18, 2020
@osy osy modified the milestones: v2.1, v2.2 May 10, 2021
@osy osy closed this as completed in 4a22d43 May 17, 2021
@osy
Copy link
Contributor

osy commented Jun 7, 2021

Reopening due to apple bug.

@bearnol
Copy link

bearnol commented May 6, 2022

Does the bridged-networking recently added (thanks!) to Mac UTM work with IPv4-only address(s)? I’m trying to run a really old Fedora16 (2011 vintage) i386 VM that knows nothing of IPv6, and so far without achieving network access. For routing purposes the IP address of the VM must be just 192.168.0.205. (When I run ifconfig inside the VM, I think I see only IPv6-type interface(s) listed?? Also, pinging external addresses doesn’t work, and the Fedora networking icon in the status bar at the top lists “No network connection” currently)
[btw, I was impressed with how easily UTM imported and converted the HDD image from original old VirtualBox to qcow2 - cool!].
I’m very new to UTM, having just bought my first M1 Mac mini :), so it may well just be something I haven’t seen yet… ( it took me a little while to work out I had to turn off UEFI on the virtual HDD to get it to boot)
[also btw, emulation speed seems fairly impressive, possibly fast enough for me to use in production, thx again, tho I guess that’s to be hoped/expected with QEMU underneath]
J

@ap46281
Copy link

ap46281 commented May 31, 2022

Has anyone got bridge networking on iOS? Been a few months since this was last mentioned and I am not following how to make this work.

@osy
Copy link
Contributor

osy commented May 31, 2022

Sorry bridged networking is a macos only feature. This issue was filed before the macos version was finished so it refers to iOS.

@bearnol
Copy link

bearnol commented May 31, 2022

Does the bridged-networking recently added (thanks!) to Mac UTM work with IPv4-only address(s)? I’m trying to run a really old Fedora16 (2011 vintage) i386 VM that knows nothing of IPv6, and so far without achieving network access. For routing purposes the IP address of the VM must be just 192.168.0.205. (When I run ifconfig inside the VM, I think I see only IPv6-type interface(s) listed?? Also, pinging external addresses doesn’t work, and the Fedora networking icon in the status bar at the top lists “No network connection” currently)
[btw, I was impressed with how easily UTM imported and converted the HDD image from original old VirtualBox to qcow2 - cool!].
I’m very new to UTM, having just bought my first M1 Mac mini :), so it may well just be something I haven’t seen yet… ( it took me a little while to work out I had to turn off UEFI on the virtual HDD to get it to boot)
[also btw, emulation speed seems fairly impressive, possibly fast enough for me to use in production, thx again, tho I guess that’s to be hoped/expected with QEMU underneath]
J

(Replying to my own post :) hope that’s ok)
I found the following page, which may well be helpful - I haven’t tried it yet, but it looks very promising given the exact diagnostics that I saw…
https://boinc.berkeley.edu/trac/wiki/VmServer
ie one needs to change something inside the VM, because of the implicit HD clone and therefore hardware change.
[PS I’ve now also literally just bought my second M1 Mac mini - they’re great!]

@ap46281
Copy link

ap46281 commented Jun 1, 2022

Sorry bridged networking is a macos only feature. This issue was filed before the macos version was finished so it refers to iOS.

Is this a viable feature in the future? Or more of a dream?

@SuperKenVery
Copy link

I ran into the same issue, no IPv4, only IPv6. Any ideas?

@bearnol
Copy link

bearnol commented Oct 9, 2022 via email

@SuperKenVery
Copy link

SuperKenVery commented Oct 9, 2022

I didn't clone my vm and I tried to tweak my network configuration, with no luck.

https://bugzilla.redhat.com/show_bug.cgi?id=1832723

This seems related but does not solve my problem. My firewall on macOS is off.

Also this:

https://stackoverflow.com/questions/31531235/guest-vm-cant-get-ip-address-with-bridge-mode

Someone said Wireshark has an influence on this. I will try that later.

Not helping either 😭

@bearnol
Copy link

bearnol commented Oct 9, 2022 via email

@bearnol
Copy link

bearnol commented Aug 26, 2023

Bit of hopefully good news on this:
I think I’ve been able to workaround quite nicely simply by selecting “Emulated VLAN” rather than bridged networking as such, and then port-forwarding port 80 from in/outside the VM, to allow the web server inside the VM to become visible to the outside world on the IP of the host.
HTH,
J

@ThijmenDam
Copy link

@bearnol great solution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request qemu QEMU related
Projects
None yet
Development

No branches or pull requests

8 participants