Article number
000004548
Affected Versions
All
Source Hypervisor
VMware
Target Hypervisor
VMware

How to configure Z-VRA with an output file in case of kernel panic

Viewed 77 times

Summary

Occasionally Z-VRA will crash without providing the full stack trace of the crash for Support/Dev analysis.

The crash can happen so fast that it's not being saved in the Z-VRA messages and without displaying it fully on the Z-VRA console from VC.

Steps

1. From VC, power off the Z-VRA and then Right click the Z-VRA and click Edit Settings.
2. From the Hardware tab choose a serial port as a New Device (at the bottom) and click Add.
3. For the serial port added, configure it to use output file and tick the Connect at power on checkbox.
4. For connection option browse to the Z-VRA folder and for the file name, type 'SerialOutput' and click OK.
5. In the Z-VRA VM Options tab, under Boot Options enter 10,000 in Power On Boot Delay.
6. Enter the Z-VRA boot grub menu by using one of the following options:
a. by restarting the Z-VRA and pressing Esc several times as it boots
b. If the OS is accesible and operational, configure the following lines in /etc/default/grub file.
 
Set GRUB_HIDDEN_TIMEOUT= (no value after the = sign).
Set GRUB_TIMEOUT=n to show the menu for n seconds.

Run the command 'update-grub' to regenerate /boot/grub/grub.cfg based on the /etc/default/grub settings.
7. In the boot grub menu choose the OS used and press E to modify the grub options.
8. Use the down arrow key to select the line where the kernel is shown and append the following line (as described in the photo below):
console=tty0 console=ttyS0,115200


9. Press F10 to boot with the changes.

Next you will see the Z-VRA reboots and the serialoutput.txt file configured before with prints including the boot prints and the full kernel panic.

Online sources to the KB:
https://kb.vmware.com/s/article/2009269
https://askubuntu.com/questions/16042/how-to-get-to-the-grub-menu-at-boot-time