From 4882bc0e6d31e804e4456656c629806eb59eca0a Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 30 Dec 2017 16:15:14 -0200 Subject: Serial console support thanks to kvm-manager --- kvmx-create | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'kvmx-create') diff --git a/kvmx-create b/kvmx-create index 8b30e83..cdf3278 100755 --- a/kvmx-create +++ b/kvmx-create @@ -286,6 +286,14 @@ function kvmx_create_custom { if [ "$bootloader" == "grub" ]; then $APT_INSTALL grub-pc + + # Serial console support + echo '' >> $WORK/etc/default/grub + echo '# Custom configuration' >> $WORK/etc/default/grub + echo 'GRUB_TERMINAL=serial' >> $WORK/etc/default/grub + echo 'GRUB_SERIAL_COMMAND="serial --speed=115200"' >> $WORK/etc/default/grub + echo 'GRUB_CMDLINE_LINUX="console=ttyS0,115200n8"' >> $WORK/etc/default/grub + kvmx_sudo_run chroot $WORK/ update-grub kvmx_sudo_run chroot $WORK/ grub-install $device # Possible alternatives: -- cgit v1.2.3