Gentoo Archives: gentoo-user-ru

From: Konstantin <konstantin@××××××××.com>
To: gentoo-user-ru@l.g.o
Subject: [gentoo-user-ru] Re: [gentoo-user-ru] DomU повисает в процессе загрузки [SOLVED]
Date: Thu, 12 Apr 2012 14:52:43
Message-Id: 206520850.20120412175205@astafjev.com
In Reply to: [gentoo-user-ru] Re: [gentoo-user-ru] DomU повисает в процессе загрузки by Konstantin
1 Приветствую!
2
3 Thursday, April 12, 2012, 17:05:12, Konstantin wrote:
4 > Thursday, April 12, 2012, 12:51:36, Konstantin wrote:
5 >> Thursday, April 12, 2012, 11:48:53, Konstantin wrote:
6 >>> Но вывод все равно останавливается на
7 >>> -----------------------------------------------------------------------
8 >>> device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised: dm-devel@××××××.com
9 >>> TCP cubic registered
10 >>> blkfront: xvda1: flush diskcache: enabled
11 >>> -----------------------------------------------------------------------
12
13 >>> или гораздо реже на
14
15 >>> -----------------------------------------------------------------------
16 >>> INIT: Entering runlevel: 3
17 >>> * Mounting network filesystems ...
18 >>> [ ok ]
19 >>> * Doing udev cleanups
20 >>> * Starting local
21 >>> [ ok ]
22 >>> -----------------------------------------------------------------------
23
24 > Пересобрал все ядра заново. Необходимые backend модули для Dom0 и
25 > frontend для DomU включил статически. Донастроил сеть и опять увидев
26 > ---------------------
27 > * Starting local
28 > [ ok ]
29 > ---------------------
30
31 > обратил внимание, что domU на самом деле все-таки работает. Подключился по
32 > ssh и изменил inittab на
33
34 > -------------------------------------------------
35 > # TERMINALS
36 > x1:12345:respawn:/sbin/agetty 38400 console linux
37 > #c1:12345:respawn:/sbin/agetty 38400 tty1 linux
38 > #c2:2345:respawn:/sbin/agetty 38400 tty2 linux
39 > #c3:2345:respawn:/sbin/agetty 38400 tty3 linux
40 > #c4:2345:respawn:/sbin/agetty 38400 tty4 linux
41 > #c5:2345:respawn:/sbin/agetty 38400 tty5 linux
42 > #c6:2345:respawn:/sbin/agetty 38400 tty6 linux
43 > -------------------------------------------------
44
45 > Командой
46 > localhost ~ # init q
47 > заставил init перечитать этот конфигурационный файл и был приятно
48 > удивлен тем, что консоль в Dom0 ожила. Так что вынужден признать, что
49 > DomU иногда все-таки загружался и проблема вывода была в неправильной
50 > настройке консоли.
51
52 > Осталась вторая и надеюсь последняя проблема. Сейчас DomU запускается
53 > успешно примерно один раз из трех. Каждый раз при неудачном запуске
54 > ядро выводит следующий текст:
55
56 > -------------------------------------------------------------
57 > Switching to clocksource xen
58 > pnp: PnP ACPI: disabled
59 > CE: xen increased min_delta_ns to 150000 nsec
60 > CE: xen increased min_delta_ns to 225000 nsec
61 > CE: xen increased min_delta_ns to 337500 nsec
62 > CE: xen increased min_delta_ns to 506250 nsec
63 > CE: xen increased min_delta_ns to 759375 nsec
64 > CE: xen increased min_delta_ns to 1139062 nsec
65 > CE: xen increased min_delta_ns to 1708593 nsec
66 > CE: xen increased min_delta_ns to 2562889 nsec
67 > CE: xen increased min_delta_ns to 3844333 nsec
68 > CE: xen increased min_delta_ns to 5766499 nsec
69 > CE: xen increased min_delta_ns to 8649748 nsec
70 > CE: xen increased min_delta_ns to 10000000 nsec
71 > CE: Reprogramming failure. Giving up
72 > CE: Reprogramming failure. Giving up
73 > hrtimer: interrupt took 5171 ns
74 > TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
75 > TCP: Hash tables configured (established 131072 bind 65536)
76 > TCP reno registered
77 > UDP hash table entries: 512 (order: 2, 16384 bytes)
78 > UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
79 > CE: xen increased min_delta_ns to 150000 nsec
80 > CE: xen increased min_delta_ns to 225000 nsec
81 > CE: xen increased min_delta_ns to 337500 nsec
82 > CE: xen increased min_delta_ns to 506250 nsec
83 > CE: xen increased min_delta_ns to 759375 nsec
84 > CE: xen increased min_delta_ns to 1139062 nsec
85 > CE: xen increased min_delta_ns to 1708593 nsec
86 > CE: xen increased min_delta_ns to 2562889 nsec
87 > CE: xen increased min_delta_ns to 3844333 nsec
88 > CE: xen increased min_delta_ns to 5766499 nsec
89 > CE: xen increased min_delta_ns to 8649748 nsec
90 > CE: xen increased min_delta_ns to 10000000 nsec
91 > CE: Reprogramming failure. Giving up
92 > CE: Reprogramming failure. Giving up
93 > platform rtc_cmos: registered platform RTC device (no PNP device found)
94 > -------------------------------------------------------------
95
96 > В случае же успешного запуска я не вижу никаких "CE: " сообщений и все
97 > выглядит примерно так:
98 > --------------------------------
99 > PCI: System does not support PCI
100 > PCI: System does not support PCI
101 > Switching to clocksource xen
102 > pnp: PnP ACPI: disabled
103 > NET: Registered protocol family 2
104 > IP route cache hash table entries: 32768 (order: 6, 262144 bytes)
105 > TCP established hash table entries: 131072 (order: 9, 2097152 bytes)
106 > TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
107 > TCP: Hash tables configured (established 131072 bind 65536)
108 > TCP reno registered
109 > --------------------------------
110
111 > Продолжаю поиск решения.
112
113 Нашел причину своей проблемы с запуском DomU. Хочу поделиться, вдруг
114 кому-нибудь да пригодиться.
115
116 В моем случае проблема решилась установкой параметра tsc_mode в
117 конфигурационном файле виртуальной машина на значение отличное от 0
118 или 4. Ниже привожу краткое описание этой опции из примера
119 конфигурационного файла виртуальной машины
120
121 #----------------------------------------------------------------------------
122 # tsc_mode : TSC mode (0=default, 1=native TSC, 2=never emulate, 3=pvrdtscp)
123 # emulate TSC provides synced TSC for all vcpus, but lose perfomrance.
124 # native TSC leverages hardware's TSC(no perf loss), but vcpu's TSC may lose
125 # sync due to hardware's unreliable/unsynced TSC between CPUs.
126 # default intelligently uses native TSC on machines where it is safe, but
127 # switches to emulated if necessary after save/restore/migration
128 # pvrdtscp is for intelligent apps that use special Xen-only paravirtualized
129 # cpuid instructions to obtain offset/scaling/migration info and maximize
130 # performance within pools of machines that support the rdtscp instruction
131 tsc_mode=1
132
133 P.S.: Кстати, кто-нибудь из присутствующих держит у себя на
134 виртуальной машине NTP сервер?
135
136 --
137 Konstantin