Re: CentOS 7 kernel console under KVM?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Wed, 8 Oct 2014, Nux! wrote:

For my templates I use:
grubby --update-kernel=ALL --args="crashkernel=0@0 video=1024x768 console=ttyS0,115200n8 console=tty0 consoleblank=0"

In kickstart files for CentOS 7 VMs that run in what I still think of as runlevel 3, I use a somewhat simpler recipe:

bootloader --location=mbr --append="console=ttyS0"

On the VM, that translates into /etc/default/grub looking something like this:

GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL="serial console"
GRUB_SERIAL_COMMAND="serial"
GRUB_CMDLINE_LINUX="rd.lvm.lv=vg0/vmroot console=ttyS0 crashkernel=auto  vconsole.font=latarcyrheb-sun16 vconsole.keymap=us"
GRUB_DISABLE_RECOVERY="true"


When the VM boots, it's then easy to run "virsh console YOURVM" to attach to the serial console.

--
Paul Heinlein
heinlein@xxxxxxxxxx
45°38' N, 122°6' W
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux