Virsh Console: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Zeile 2: Zeile 2:
 
*systemctl start serial-getty@ttyS0.service
 
*systemctl start serial-getty@ttyS0.service
 
*systemctl enable serial-getty@ttyS0.service
 
*systemctl enable serial-getty@ttyS0.service
 +
=Grub2 auf Konsole=
 +
*/etc/default/grub
 +
GRUB_TERMINAL=console
 +
GRUB_SERIAL_COMMAND="serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1"
 +
GRUB_CMDLINE_LINUX_DEFAULT=""
 +
GRUB_CMDLINE_LINUX="text console=tty0 console=ttyS0,115200n8"
 +
*update-grub
 
=Zugriff über den Host=
 
=Zugriff über den Host=
 
<pre>
 
<pre>

Version vom 19. Juni 2021, 16:23 Uhr

Aktivieren des Getty auf ttyS0 im Gast

  • systemctl start serial-getty@ttyS0.service
  • systemctl enable serial-getty@ttyS0.service

Grub2 auf Konsole

  • /etc/default/grub
GRUB_TERMINAL=console 
GRUB_SERIAL_COMMAND="serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1"
GRUB_CMDLINE_LINUX_DEFAULT=""
GRUB_CMDLINE_LINUX="text console=tty0 console=ttyS0,115200n8"
  • update-grub

Zugriff über den Host

root@bajor:~# virsh console orion
Connected to domain orion
Escape character is ^]

ENTER DRÜCKEN

Ubuntu 16.04 LTS orion ttyS0

orion login:

Über CTRL+ALTGr+9 kommt man wieder raus.

Links