Skip to content
Học Công nghệ Thông tin thực chiếnHọc Công nghệ Thông tin thực chiến
  • KHÓA HỌC
  • KIẾN THỨC
  • KÊNH YOUTUBE
  • NGƯỜI SÁNG LẬP
Học Công nghệ Thông tin thực chiếnHọc Công nghệ Thông tin thực chiến
  • KHÓA HỌC
  • KIẾN THỨC
  • KÊNH YOUTUBE
  • NGƯỜI SÁNG LẬP
Công nghệ lõi Linux

VirtualBox chạy máy ảo AlmaLinux 9 bị lỗi systemd service khi biên dịch Linux kernel mới

  • 16 Jan, 2025
  • Com 0

Systemd là tiến trình quản lí mọi tiến trình ở không gian người dùng trên hệ điều hành Linux.

VirtualBox chạy máy ảo AlmaLinux 9 có báo lỗi về dịch vụ vboxadd-service và vboxadd sau khi biên dịch Linux kernel mới

# systemctl -t service
  UNIT                               LOAD   ACTIVE SUB     DESCRIPTION
  auditd.service                     loaded active running Security Auditing Service
  chronyd.service                    loaded active running NTP client/server
  crond.service                      loaded active running Command Scheduler
  dbus-broker.service                loaded active running D-Bus System Message Bus
  dracut-shutdown.service            loaded active exited  Restore /run/initramfs on shutdown
  getty@tty1.service                 loaded active running Getty on tty1
  gssproxy.service                   loaded active running GSSAPI Proxy Daemon
  irqbalance.service                 loaded active running irqbalance daemon
  NetworkManager-wait-online.service loaded active exited  Network Manager Wait Online
  NetworkManager.service             loaded active running Network Manager
  nis-domainname.service             loaded active exited  Read and set NIS domainname from /etc/sysconfig/network
  rpc-statd-notify.service           loaded active exited  Notify NFS peers of a restart
  rpcbind.service                    loaded active running RPC Bind
  rsyslog.service                    loaded active running System Logging Service
  sshd.service                       loaded active running OpenSSH server daemon
  systemd-boot-update.service        loaded active exited  Automatic Boot Loader Update
  systemd-hostnamed.service          loaded active running Hostname Service
  systemd-journal-flush.service      loaded active exited  Flush Journal to Persistent Storage
  systemd-journald.service           loaded active running Journal Service
  systemd-logind.service             loaded active running User Login Management
  systemd-network-generator.service  loaded active exited  Generate network units from Kernel command line
  systemd-random-seed.service        loaded active exited  Load/Save OS Random Seed
  systemd-remount-fs.service         loaded active exited  Remount Root and Kernel File Systems
  systemd-sysctl.service             loaded active exited  Apply Kernel Variables
  systemd-tmpfiles-setup-dev.service loaded active exited  Create Static Device Nodes in /dev
  systemd-tmpfiles-setup.service     loaded active exited  Create Volatile Files and Directories
  systemd-udev-trigger.service       loaded active exited  Coldplug All udev Devices
  systemd-udevd.service              loaded active running Rule-based Manager for Device Events and Files
  systemd-update-utmp.service        loaded active exited  Record System Boot/Shutdown in UTMP
  systemd-user-sessions.service      loaded active exited  Permit User Sessions
  user-runtime-dir@0.service         loaded active exited  User Runtime Directory /run/user/0
  user-runtime-dir@1000.service      loaded active exited  User Runtime Directory /run/user/1000
  user@0.service                     loaded active running User Manager for UID 0
  user@1000.service                  loaded active running User Manager for UID 1000
● vboxadd-service.service            loaded failed failed  vboxadd-service.service
● vboxadd.service                    loaded failed failed  vboxadd.service

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.
36 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.

Xem tình trạng dịch vụ cụ thể của systemd bằng lệnh systemctl thì thấy như sau:

[root@alma94 ~]# systemctl status vboxadd-service
× vboxadd-service.service
     Loaded: loaded (/opt/VBoxGuestAdditions-7.0.18/init/vboxadd-service; enabled; preset: disabled)
     Active: failed (Result: exit-code) since Wed 2025-01-15 20:50:56 UTC; 2min 4s ago
    Process: 1204 ExecStart=/opt/VBoxGuestAdditions-7.0.18/init/vboxadd-service start (code=exited, status=1/FAILURE)
        CPU: 13ms

Jan 15 20:50:56 alma94 systemd[1]: Starting vboxadd-service.service...
Jan 15 20:50:56 alma94 vboxadd-service[1204]: vboxadd-service.sh: Starting VirtualBox Guest Addition service.
Jan 15 20:50:56 alma94 vboxadd-service.sh[1207]: Starting VirtualBox Guest Addition service.
Jan 15 20:50:56 alma94 vboxadd-service[1204]: VirtualBox Additions module not loaded!
Jan 15 20:50:56 alma94 systemd[1]: vboxadd-service.service: Control process exited, code=exited, status=1/FAILURE
Jan 15 20:50:56 alma94 systemd[1]: vboxadd-service.service: Failed with result 'exit-code'.
Jan 15 20:50:56 alma94 systemd[1]: Failed to start vboxadd-service.service.
[root@alma94 ~]#
[root@alma94 ~]# systemctl status vboxadd
× vboxadd.service
     Loaded: loaded (/opt/VBoxGuestAdditions-7.0.18/init/vboxadd; enabled; preset: disabled)
     Active: failed (Result: exit-code) since Wed 2025-01-15 20:50:56 UTC; 2min 8s ago
    Process: 427 ExecStart=/opt/VBoxGuestAdditions-7.0.18/init/vboxadd start (code=exited, status=1/FAILURE)
   Main PID: 427 (code=exited, status=1/FAILURE)
        CPU: 6.154s

Jan 15 20:51:07 alma94 useradd[863]: failed adding user 'vboxadd', exit code: 9
Jan 15 20:51:09 alma94 vboxadd[876]: File context for /opt/VBoxGuestAdditions-7.0.18/other/mount.vboxsf already defined, modifying instead
Jan 15 20:51:09 alma94 vboxadd[427]: VirtualBox Guest Additions: reloading kernel modules and services
Jan 15 20:50:56 alma94 vboxadd[1121]: VirtualBox Guest Additions: unable to load vboxguest kernel module, see dmesg
Jan 15 20:50:56 alma94 vboxadd[427]: VirtualBox Guest Additions: kernel modules and services were not reloaded
Jan 15 20:50:56 alma94 vboxadd[427]: The log file /var/log/vboxadd-setup.log may contain further information.
Jan 15 20:50:56 alma94 systemd[1]: vboxadd.service: Main process exited, code=exited, status=1/FAILURE
Jan 15 20:50:56 alma94 systemd[1]: vboxadd.service: Failed with result 'exit-code'.
Jan 15 20:50:56 alma94 systemd[1]: Failed to start vboxadd.service.
Jan 15 20:50:56 alma94 systemd[1]: vboxadd.service: Consumed 6.154s CPU time.
[root@alma94 ~]#
[root@alma94 ~]# systemctl status vagrant.mount
× vagrant.mount - /vagrant
     Loaded: loaded (/etc/fstab; generated)
     Active: failed (Result: exit-code) since Wed 2025-01-15 20:51:04 UTC; 4min 23s ago
      Where: /vagrant
       What: vagrant
       Docs: man:fstab(5)
             man:systemd-fstab-generator(8)
        CPU: 3ms

Jan 15 20:51:04 alma94 systemd[1]: Mounting /vagrant...
Jan 15 20:51:04 alma94 mount[620]: /sbin/mount.vboxsf: mounting failed with the error: No such device
Jan 15 20:51:04 alma94 systemd[1]: vagrant.mount: Mount process exited, code=exited, status=1/FAILURE
Jan 15 20:51:04 alma94 systemd[1]: vagrant.mount: Failed with result 'exit-code'.
Jan 15 20:51:04 alma94 systemd[1]: Failed to mount /vagrant.

Quá trình khởi động Linux cũng thấy báo lỗi systemd service trên màn hình terminal linux

[FAILED] Failed to mount /vagrant.
See 'systemctl status vagrant.mount' for details.
[DEPEND] Dependency failed for Remote File Systems.
Tags:
Biên dịch Linux kernelBiên dịch nhân LinuxLinux kernelLinux kernel moduleMáy ảo Linuxsystemd servicevmlinuz
Share on:
AlmaLinux 9 chạy không cần initramfs dính lỗi khi biên dịch Linux kernel
Vagrant tự thêm Port Forwarding vào máy ảo Linux trên VMware Workstation

Search

Categories

  • An toàn thông tin thực chiến (17)
  • Cơ sở dữ liệu thực chiến (6)
  • Computer security (1)
  • Công nghệ ảo hóa máy chủ (1)
  • Công nghệ lõi Công nghệ Thông tin (1)
  • Công nghệ lõi Linux (8)
  • Công nghệ phần mềm thực chiến (7)
  • Công nghệ Thông tin thực chiến (1)
  • Cybersecurity (1)
  • Đại số tổ hợp (1)
  • DevOps thực chiến (2)
  • Điện toán đám mây thực chiến (3)
  • Docker container (3)
  • Giải tích tổ hợp (1)
  • Hệ điều hành Linux thực chiến (8)
  • Học an toàn thông tin (1)
  • Học công nghệ thông tin thực chiến (1)
  • Information security (1)
  • Lập trình an toàn thông tin (2)
  • Lập trình thực chiến (1)
  • Linux hacking (1)
  • Linux thực chiến (2)
  • Olympic Toán 30 tháng 4 (1)
  • Oracle DBA (11)
  • Podman container (3)
  • Tích hợp hệ thống công nghệ thông tin thực chiến (1)

Tags

AlmaLinux 8 (2) Anaconda installer (3) Biên dịch Linux kernel (4) Biên dịch nhân Linux (4) Container-Optimized OS (3) Container Operating System (4) Container OS (4) Cài Oracle 21c (3) Công nghệ lõi Linux (3) Công nghệ phần mềm thực chiến (3) Fedora CoreOS (3) Hệ điều hành Linux thực chiến (4) Học an toàn thông tin (4) initramfs (2) Linux hugepages (3) Linux kernel (3) Linux kernel module (2) Linux PAM (5) Linux security (8) MySQL database developer (3) MySQL DBA (3) netplan (3) OpenSSH server (2) Oracle 21c (2) Oracle OUI (5) Oracle Universal Installer (5) Password hashing (4) Password hashing algorithm (6) Quản trị MySQL (3) RHEL 10 (2) Samba Active Directory Domain Controller (4) Samba AD DC (5) Samba AD Domain Controller (5) SMB protocol (3) Thuật toán băm mật khẩu (9) Thuật toán băm mật khẩu yescrypt (2) Thuật toán MD5 (3) Thuật toán SHA512 (5) Thuật toán yescrypt (4) Trung tâm dữ liệu (2) Tối ưu cơ sở dữ liệu MySQL (4) Tối ưu MySQL (4) Ubuntu netplan (3) vmlinuz (3) Điện toán đám mây (3)

Học Công nghệ Thông tin chuyên sâu
Tiết kiệm tiền bạc, thời gian, công sức cho người học
© Copyright 2024 CâyTreOS – Học IT thế kỉ 21

Học Công nghệ Thông tin thực chiếnHọc Công nghệ Thông tin thực chiến