четверг, 6 октября 2022 г.

Rocky Linux 9 в качестве виртуальной машины в Oracle VM VirtualBox.

После создания машины Linux в VirtualBox и установки Rocky Linux 9, при загрузке  выдается ошибка:

# journalctl -b -p err
Oct 06 18:22:28 localhost systemd-vconsole-setup[213]: /usr/bin/loadkeys failed with exit status 1.
Oct 06 18:22:28 localhost systemd[1]: Failed to start Setup Virtual Console.
Oct 06 18:22:29 localhost kernel: Warning: Unmaintained hardware is detected:  e1000:100E:8086 @ 0000:00:03.0
Oct 06 18:22:37 localhost kernel: [drm:vmw_host_printf [vmwgfx]] *ERROR* Failed to send host log message.

# systemctl status systemd-vconsole-setup
× systemd-vconsole-setup.service - Setup Virtual Console
     Loaded: loaded (/usr/lib/systemd/system/systemd-vconsole-setup.service; static)
     Active: failed (Result: exit-code) since Thu 2022-10-06 18:22:28 +04; 11min ago
       Docs: man:systemd-vconsole-setup.service(8)
             man:vconsole.conf(5)
   Main PID: 213 (code=exited, status=1/FAILURE)
        CPU: 189ms
Oct 06 18:22:28 localhost systemd-vconsole-setup[218]: loadkeys: Unable to open file: ru: No such file or directory
Oct 06 18:22:28 localhost systemd-vconsole-setup[213]: /usr/bin/loadkeys failed with exit status 1.
Oct 06 18:22:28 localhost systemd[1]: systemd-vconsole-setup.service: Main process exited, code=exited, status=1/FAILURE
Oct 06 18:22:28 localhost systemd[1]: systemd-vconsole-setup.service: Failed with result 'exit-code'.
Oct 06 18:22:28 localhost systemd[1]: Failed to start Setup Virtual Console.
Notice: journal has been rotated since unit was started, output may be incomplete.


Решение проблемы:
# dnf install kbd-legacy
# dracut -f
(выполняется несколько минут)


Еще одна возможная ошибка при загрузке Rocky Linux 9 на платформе VirtualBox:
Oct 06 18:40:22 localhost kernel: [drm:vmw_host_printf [vmwgfx]] *ERROR* Failed to send host log message.
Данная ошибка исправляется выставлением типа Графического контроллера в параметрах Дисплея виртуальной машины.
Нужно поставить Графический контроллер "VBoxVGA"


Следующая ошибка говорит о неверном драйвере для сетевого адаптера:
Oct 06 18:40:15 localhost kernel: Warning: Unmaintained hardware is detected:  e1000:100E:8086 @ 0000:00:03.0
Ошибка связана с сетевой картой Intel типа (e1000:100E) в VirtualBox и драйвером 0000:00:03.0
# ethtool -i enp0s3
driver: e1000
version: 5.14.0-70.13.1.el9_0.x86_64
firmware-version:
expansion-rom-version:
bus-info: 0000:00:03.0
supports-statistics: yes
supports-test: yes
supports-eeprom-access: yes
supports-register-dump: yes
supports-priv-flags: no

В исправлении этой ошибки испробованы следующие методы:
1) Отключение механизмов: GSO (Generic Segmentation Offload), TSO (TCP Segmentation Offload) и GRO (Generic Receive Offload) на сетевом интерфейсе:
# ethtool -K enp0s3 gso off gro off tso off
2) Отключение генерации контрольных сумм:
# ethtool -K enp0s3 tx off rx off
Actual changes:
tx-checksum-ip-generic: off

tx-tcp-segmentation: off [not requested]
3) Отключение в настройках Системы виртуальной машины VirtualBox
В Дополнительных возможностях параметра "Включить I/O APIC".
После отключения данного параметра ошибки при загрузке системы исчезли.


Комментариев нет:

Отправить комментарий