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

PVE下X86 openwrt虚拟机 23.05.4 加载natflow pppoe拨号后一两分钟自动重启 #17

Open
xianren78 opened this issue Sep 11, 2024 · 1 comment

Comments

@xianren78
Copy link

xianren78 commented Sep 11, 2024

PVE 8.2
X86 openwrt虚拟机 23.05.4 来源于 https://github.com/sbwml/builder 内置了natflow
单臂主路由模式(单网卡,network配置随后)
设置pppoe拨号
从系统日志看natflow正常加载,然后成功启动后一两分钟虚拟机自动崩溃重启

	option proto 'static'
	option ipaddr '127.0.0.1'
	option netmask '255.0.0.0'
	option device 'lo'

config globals 'globals'
	option packet_steering '1'

config interface 'lan'
	option _orig_ifname 'eth0'
	option _orig_bridge 'false'
	option proto 'static'
	option delegate '0'
	option ipaddr '192.168.0.1'
	option netmask '255.255.255.0'
	option ip6assign '64'
	option device 'eth0'

config interface 'WAN'
	option proto 'pppoe'
	option username 'pppoeusername'
	option password '206810'
	option ipv6 'auto'
	option _orig_ifname 'wan'
	option _orig_bridge 'false'
	option mtu '1492'
	option device 'eth0'
	option ip6assign '64'

config interface 'utun'
	option proto 'none'
	option ifname 'utun'
	option device 'utun'
	option auto '0'
@ptpt52
Copy link
Owner

ptpt52 commented Sep 12, 2024

有宕机日志吗,想办法拿到串口日志。 或者修改 /boot/grub/grub.cfg crashkernel=160M

serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1 --rtscts=off
terminal_input console serial; terminal_output console serial

set default="0"
set timeout="5"
if [ "${fwdrive}" = "" ]; then
	set fwdrive=${drive}
fi
set root="($fwdrive,msdos1)"

menuentry "X-WRT" {
	linux /boot/vmlinuz root=PARTUUID=6993b8f3-02 rootwait   console=tty1 console=ttyS0,115200n8 noinitrd crashkernel=160M
}
menuentry "X-WRT (failsafe)" {
	linux /boot/vmlinuz failsafe=true root=PARTUUID=6993b8f3-02 rootwait   console=tty1 console=ttyS0,115200n8 noinitrd crashkernel=160M
}

修改前先 mount -o remount,rw /boot
然后重启一次

然后重现宕机问题,等宕机重启后,查看日志 /data/crashdump

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

2 participants