I posted this to the xen-users list, but it seems more like a GRUB issue now.
I recently built a Debian "Wheezy" system, which booted via GRUB to a
non-framebuffer console, printing
Console: colour VGA+ 80x25
during boot. To /etc/default/grub I added
GRUB_GFXMODE=1920x1200
GRUB_GFXPAYLOAD_LINUX=keep
giving me the boot messages:
vesafb: mode is 1920x1200x16, ...
fbcon: VESA VGA (fb0) is primary device
Console: switching to colour frame buffer device 240x75
fb0: VESA VGA frame buffer device
But when I installed and booted Xen, it reverted to the non-fb console.
/dev/fb0 isn't present under dom0.
How do I enable a framebuffer console in dom0?
I notice that the /etc/grub.d/20_linux_xen script that generates the
/boot/grub/grub.cfg entries for Xen isn't calling out to the load_video
function, though it looks to me like it'd be called anyway in the
"if loadfont ..." block.
Do I need to pass a parameter to vmlinuz? video=?
Package: grub-common
Version: 1.99-27+deb7u2
Mobo is SuperMicro A1SRi-2558F, with an Aspeed AST2400.
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}
insmod raid
insmod mdraid1x
insmod lvm
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(vg0-root)'
search --no-floppy --fs-uuid --set=root c62bxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=1920x1200
load_video
insmod gfxterm
insmod raid
insmod mdraid1x
insmod lvm
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(vg0-boot)'
search --no-floppy --fs-uuid --set=root 79bcxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
set locale_dir=($root)/grub/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
set timeout=5
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux, with Linux 3.2.0-4-amd64' --class debian --class
gnu-linux --class gnu --class os {
load_video
set gfxpayload=keep
insmod gzio
insmod raid
insmod mdraid1x
insmod lvm
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(vg0-boot)'
search --no-floppy --fs-uuid --set=root
79bcxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
echo 'Loading Linux 3.2.0-4-amd64 ...'
linux /vmlinuz-3.2.0-4-amd64 root=/dev/mapper/vg0-root ro quiet
echo 'Loading initial ramdisk ...'
initrd /initrd.img-3.2.0-4-amd64
}
menuentry 'Debian GNU/Linux, with Linux 3.2.0-4-amd64 (recovery mode)' --class
debian --class gnu-linux --class gnu --class os {
load_video
set gfxpayload=keep
insmod gzio
insmod raid
insmod mdraid1x
insmod lvm
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(vg0-boot)'
search --no-floppy --fs-uuid --set=root
79bcxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
echo 'Loading Linux 3.2.0-4-amd64 ...'
linux /vmlinuz-3.2.0-4-amd64 root=/dev/mapper/vg0-root ro single
echo 'Loading initial ramdisk ...'
initrd /initrd.img-3.2.0-4-amd64
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
submenu "Xen 4.1-amd64" {
menuentry 'Debian GNU/Linux, with Xen 4.1-amd64 and Linux 3.2.0-4-amd64'
--class debian --class gnu-linux --class gnu --class os --class xen {
insmod raid
insmod mdraid1x
insmod lvm
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(vg0-boot)'
search --no-floppy --fs-uuid --set=root
79bcxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
echo 'Loading Xen 4.1-amd64 ...'
multiboot /xen-4.1-amd64.gz placeholder
echo 'Loading Linux 3.2.0-4-amd64 ...'
module /vmlinuz-3.2.0-4-amd64 placeholder root=/dev/mapper/vg0-root ro
quiet
echo 'Loading initial ramdisk ...'
module /initrd.img-3.2.0-4-amd64
}
menuentry 'Debian GNU/Linux, with Xen 4.1-amd64 and Linux 3.2.0-4-amd64
(recovery mode)' --class debian --class gnu-linux --class gnu --class os
--class xen {
insmod raid
insmod mdraid1x
insmod lvm
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(vg0-boot)'
search --no-floppy --fs-uuid --set=root
79bcxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
echo 'Loading Xen 4.1-amd64 ...'
multiboot /xen-4.1-amd64.gz placeholder
echo 'Loading Linux 3.2.0-4-amd64 ...'
module /vmlinuz-3.2.0-4-amd64 placeholder root=/dev/mapper/vg0-root ro
single
echo 'Loading initial ramdisk ...'
module /initrd.img-3.2.0-4-amd64
}
}
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod raid
insmod mdraid1x
insmod lvm
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(vg0-boot)'
search --no-floppy --fs-uuid --set=root
79bcxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
linux16 /memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod raid
insmod mdraid1x
insmod lvm
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(vg0-boot)'
search --no-floppy --fs-uuid --set=root
79bcxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
linux16 /memtest86+.bin console=ttyS0,115200n8
}
menuentry "Memory test (memtest86+, experimental multiboot)" {
insmod raid
insmod mdraid1x
insmod lvm
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(vg0-boot)'
search --no-floppy --fs-uuid --set=root
79bcxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
multiboot /memtest86+_multiboot.bin
}
menuentry "Memory test (memtest86+, serial console 115200, experimental
multiboot)" {
insmod raid
insmod mdraid1x
insmod lvm
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(vg0-boot)'
search --no-floppy --fs-uuid --set=root
79bcxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
multiboot /memtest86+_multiboot.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
_______________________________________________
Help-grub mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-grub