Closed razr closed 1 year ago
Thank you for reporting this bug.
We have switched the default Leda network setup to a DHCP-based setup for the ethernet interface, but the run-leda.sh script for qemu has not been updated properly yet.
As a workaround, until this is fixed, you may run a DHCP-daemon on your host, binding to the "tap0" interface (which is the one for qemu) - or manually configure the IP address once the system is booted.
If you are using user-level networking for qemu ("slirp"), qemu would provide the DHCP server already.
The network interface names, whether it is eth0 or enp0s2, is controlled by a kernel parameter. I'll have a look why this is different, but it should not make any difference. The problem is the missing DHCP server on the network or that Leda does not have a local fallback-IP configured in case that there is no DHCP server available.
Thanks @mikehaller, I don't want to deal with a local DHCP server, it is not appreciated by any company's IT :) I did the following, and it fixes my problem
root@qemux86-64:~# ifconfig enp0s2 192.168.7.2
root@qemux86-64:~# ip route add default via 192.168.7.2
root@qemux86-64:~# ping 8.8.8.8
64 bytes from 8.8.8.8: seq=0 ttl=115 time=2.322 ms
64 bytes from 8.8.8.8: seq=0 ttl=115 time=2.322 ms
Understandable that you don't want to run a DHCP server on the company network. One option may be to bind it only to the tap0 interface, so it wouldn't interfere with the corporate network.
Anyway, setting up static IP is easy enough. We'll see if we can provide the static IP address as a fallback in our quickstart distro, if DHCP is not available.
This should be fixed now, as the new runner script will just always use the QEMU SLIRP networking, which includes built-in DHCP.
Describe the bug an IP address for the
enp0s2
is not assigned. Well I'm not even sure why it isenp0s2
? It should beeth0
To Reproduce Steps to reproduce the behavior:
./run-leda.sh
ifconfig enp0s2
Expected behaviour
eth0
shall be assigned automaticallyScreenshots / Logfiles no
Leda Version (please complete the following information):
Additional context