VyOS 1.2-rolling and booting without GRUB interaction

Hi,

I have two VyOS instances on two servers installed and there is problem with automatic system booting.
After reboot GRUB is waiting for user interaction. tested on 1.2-rolling-201908080337 and on 1.2-rolling-latest.

Hi,

What version do you have in your latest?

show version

The most recent versions should be ok, including the one I have just downloaded and tested now (VyOS 1.2-rolling-201911051339).

You can update with:

add system image https://downloads.vyos.io/rolling/current/amd64/vyos-rolling-latest.iso

You can also manually modify GRUB configuration.

But grub.cfg looks fine.

root@BGP-B:~# cat /boot/grub/grub.cfg

Generated by /opt/vyatta/sbin/vyatta-grub-setup at Mon Jun 24 21:15:16 UTC 2019

set default=0
set timeout=5
serial --unit=0 --speed=115200
terminal_output --append serial
terminal_input serial console
insmod part_msdos
insmod diskfilter
insmod ext2
insmod mdraid1x
set root=‘mduuid/c312e54a-ae8e-4a61-8f47-cc8c1d1d7e1c’
search --no-floppy --fs-uuid --set=root c312e54a-ae8e-4a61-8f47-cc8c1d1d7e1c

menuentry “VyOS 1.2-rolling-201908080337 (KVM console)” {
linux /boot/1.2-rolling-201908080337/vmlinuz boot=live quiet rootdelay=5 vyos-union=/boot/1.2-rolling-201908080337 console=ttyS0,115200 console=tty0
initrd /boot/1.2-rolling-201908080337/initrd.img
}

root@BGP-A:~# cat /boot/grub/grub.cfg

Generated by /opt/vyatta/sbin/vyatta-grub-setup at Thu Jul 25 19:48:03 UTC 2019

set default=0
set timeout=5
serial --unit=0 --speed=115200
terminal_output --append serial
terminal_input serial console
insmod part_msdos
insmod diskfilter
insmod ext2
insmod mdraid1x
set root=‘mduuid/930c0de7-8333-4a06-96b8-ae7e05c3b5a5’
search --no-floppy --fs-uuid --set=root 930c0de7-8333-4a06-96b8-ae7e05c3b5a5

menuentry “VyOS 1.2-rolling-201911021616 (KVM console)” {
linux /boot/1.2-rolling-201911021616/vmlinuz boot=live quiet rootdelay=5 vyos-union=/boot/1.2-rolling-201911021616 console=ttyS0,115200 console=tty0
initrd /boot/1.2-rolling-201911021616/initrd.img
}

On both routers i see:

set default=0
set timeout=5

What is your preferred GRUB option?
I understand 0 is KVM. Is that the one that you need?
So, if you do nothing, after 5 seconds, what happens?
If you use the up and down arrow keys to highlight your preferred GRUB option and then press enter, does it boot?

Problem is that there is no counter. I can wait forever and it’s not selecting preferred boot option by itself. Ofcourse i can just press enter and it’s booting from that point normally. But there is no counter on the botom of the screen. It’s kind a problem if i’m using VyOS as a IPsec endpoint to external data center and there will be power issues or i’ll need to reboot machine ;p

There is also this line that can be added to GRUB configuration:

GRUB_RECORDFAIL_TIMEOUT=$GRUB_TIMEOUT

But I’m afraid that line is to be added when editing GRUB through /etc/default/grub and then run update-grup

I’ll try fresh install and we will see what’s happened.

Good. Fresh install should work ok.

Fresh install on erased disks didn’t do much. Same issue with 1.2-rolling-201911061649.

Any idea how to use update-grub after editing /etc/default/grub ?
I got error *failed to get canonical path of `overlay’

Hello @mansonik, try just edit /boot/grub/grub.cfg and then reboot.
But really odd issue.

It’s my grub from fresh install latest VyOS on raid kvm.
vyos@raid:~$ cat /boot/grub/grub.cfg

Generated by /opt/vyatta/sbin/vyatta-grub-setup at Thu Nov 7 18:15:17 UTC 2019

set default=0
set timeout=5
serial --unit=0 --speed=115200
terminal_output --append serial
terminal_input serial console

insmod part_msdos
insmod diskfilter
insmod ext2
insmod mdraid1x
set root='mduuid/da7106fb-5f0f-408a-8a46-013f1c724db2'
search --no-floppy --fs-uuid --set=root da7106fb-5f0f-408a-8a46-013f1c724db2

menuentry "VyOS 1.2-rolling-201911070217 linux (KVM console)" {
	linux /boot/1.2-rolling-201911070217/vmlinuz boot=live quiet rootdelay=5 noautologin vyos-union=/boot/1.2-rolling-201911070217  console=ttyS0,115200 console=tty0
	initrd /boot/1.2-rolling-201911070217/initrd.img
}

All work fine
in my grub it difference only I see option “noautologin”

Can you show “sudo dmesg”, maybe we can find something.

True it’s strenge issue because i have some Debian(Proxmox), Ubuntu and Centos linux distro installed on same servers and there is no problem with Grub there.

How do you install VyOS?
From usb flash or via virtual-media?
How about first boot, when livecd is booted for install, timer work correct?

It has been installed via virtual media from ISO image mounted via IPMI. Timer works ok when booted from iso. It’s working fine even when booted from PXE. Only after installing VyOS with “install image” it doesn’t work. One thing, it’s installed on soft raid created by VyOS installer. I’ll try to install it on single disk and see what happens.

If result will be same, try install it from USB.
Also show:
sudo dmesg | grep ttyS0

Installing on single drive doesn’t change anything. :frowning:

You might want ask directly in the GRUB’s help mailing list.

If you do and find the solution, please share it!

I found a workaround. When i set “set timeout=0” it’s booting without user interaction. Any other variables doesn’t work. It can be an issue with recovery but should do a job for now.