Господа,
может у кого-то есть идеии. Нужно настроить доступ по сериалу из хоста на DomU. Сконфигурил, как написано ниже (дока Оракла).
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
1. Hardware Virtualised (HVM)
1.1 Boot the guest virtual machine.
1.2 Modify the /boot/grub/grub.conf file - append 'console=ttyS0,9600n8' to the kernel line of the default boot title e.g.:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,0)
# kernel /boot/vmlinuz-version ro root=/dev/hda1
# initrd /boot/initrd-version.img
#boot=/dev/hda
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Enterprise Linux Enterprise Linux AS (2.6.9-78.0.8.2.1.EL)
root (hd0,0)
kernel /boot/vmlinuz-2.6.9-78.0.8.2.1.EL ro root=LABEL=/ console=ttyS0,9600n8
initrd /boot/initrd-2.6.9-78.0.8.2.1.EL.img
(For EL6) Please create a file "/etc/init/serial-ttyS0.conf" with following content:
# cat /etc/init/serial-ttyS0.conf
start on stopped rc RUNLEVEL=[2345]
stop on runlevel [016]
instance ttyS0
respawn
pre-start exec /sbin/securetty ttyS0
exec /sbin/agetty /dev/ttyS0 9600 vt100-nav
1.4 Modify the /etc/securetty file - add an entry for the ttyS0 device e.g.:
console
ttyS0
vc/1
vc/2
vc/3
Грузанул DomU. Захожу с хоста
# xm console 2
Обрадовался, появился промпт. Далее начинаются чудеса. В консоли отображаются буквы не те что я набираю на клавиатуре. Иногда с пропусками и задержками. Клавиатура - не управляема. Набор текста идет с большими искажениями.
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
Oracle Linux Server release 6.4
Kernel 2.6.39-400.109.1.el6uek.x86_64 on an x86_64
ovmrepodb01.qsi.com login:
Oracle Linux Server release 6.4
Kernel 2.6.39-400.109.1.el6uek.x86_64 on an x86_64
ovmrepodb01.qsi.com login:
Oracle Linux Server release 6.4
Kernel 2.6.39-400.109.1.el6uek.x86_64 on an x86_64
ovmrepodb01.qsi.com login: root
Password: c
Login incorrect
login:
Password:
Oracle Linux Server release 6.4
Kernel 2.6.39-400.109.1.el6uek.x86_64 on an x86_64
ovmrepodb01.qsi.com login: Login incorrect
login:
Oracle Linux Server release 6.4
Kernel 2.6.39-400.109.1.el6uek.x86_64 on an x86_64
ovmrepodb01.qsi.com login:
Password: o
t
Password: Login incorrect
login:
Login incorrect
login:
Password: Password:
Login incorrect
login:
Login incorrect
login: root
Password: Password:
Last login: Wed Jul 17 09:41:33 on tty1
[root@ovmrepodb01 ~]#
s
-bash: s: command not found
[root@ovmrepodb01 ~]# [root@ovmrepodb01 ~]# Login incorrect
login: [root@ovmrepodb01 ~]#
Password: -bash: s: command not found