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

Running an x86/64 image with tools/qemu_dev_start returns "eth0 doesn't exists!" #1162

Open
a-gave opened this issue Feb 4, 2025 · 0 comments

Comments

@a-gave
Copy link
Contributor

a-gave commented Feb 4, 2025

It's probably not widely used, but it was working until recently
And it is not working properly with current last HEAD: ca63283

 ./qemu_dev_start --node-id 1 --enable-wan wlo1 rootfs.tar.gz kernel.bin

These are the logs encountered just after the boot:

root@OpenWrt:/# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
root@OpenWrt:/# lime-config 
Cannot acquire lock on /var/run/lime-config.pid
This may be caused by lime-config already running or unexpectedly crashed.
If it is the latter case (check carefully!) try by deleting the lock file with:
# rm -rf /var/run/lime-config.pid
Before running lime-config again
root@OpenWrt:/# rm -rf /var/run/lime-config.pid
root@OpenWrt:/# lime-config 
/usr/bin/lua: /usr/lib/lua/lime/network.lua:55: network.primary_interface() eth0 doesn't exists!
stack traceback:
	[C]: in function 'assert'
	/usr/lib/lua/lime/network.lua:55: in function 'assert_interface_exists'
	/usr/lib/lua/lime/network.lua:65: in function 'primary_interface'
	/usr/lib/lua/lime/network.lua:70: in function 'primary_mac'
	/usr/lib/lua/lime/config.lua:190: in function 'main'
	/usr/bin/lime-config:55: in main chunk
	[C]: ?
root@OpenWrt:/#

Instead the ext4-combined-efi image setup correctly all interfaces, tested running:

gunzip libremesh-master-ow23.05.5-ca63283-20250203-default-x86-64-generic-ext4-combined-efi.img.gz
mv libremesh-master-ow23.05.5-ca63283-20250203-default-x86-64-generic-ext4-combined-efi.img combined-efi.img
qemu-system-x86_64 -M q35 -drive file=combined-efi.img,id=d0,if=none,bus=0,unit=0 -device ide-hd,drive=d0,bus=ide.0
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

No branches or pull requests

1 participant