我有一个正在运行的 WEB 服务器,它使用带有 LAMP 环境的 Ubuntu 14.04.5 LTS。该服务器在 Vagrant/VirtualBox 虚拟机中运行。
我升级到了 Ubuntu 16。升级过程中没有出现错误,但在我重新启动客户系统后,我无法通过 ssh 登录到客户系统。它没有在 GUI 上给我登录提示。最后的消息可以在这里看到:
相应的 VirtualBox 进程正在使用主机上的 100% CPU。
我在 VirtualBox 日志中没有看到任何错误。它与使用 Ubuntu 14 成功启动的日志完全相同。但日志以以下几行结尾:
00:00:03.373112 PIT: mode=2 count=0x10000 (65536) - 18.20 Hz (ch=0)
00:00:03.373373 VMMDev: Guest Log: BIOS: Boot : bseqnr=1, bootseq=0002
00:00:03.373822 VMMDev: Guest Log: BIOS: Booting from Hard Disk...
00:00:04.464068 PIT: mode=2 count=0x12a5 (4773) - 249.98 Hz (ch=0)
00:00:04.740030 PIT: mode=0 count=0x10000 (65536) - 18.20 Hz (ch=0)
00:00:04.746800 CPUM: VCPU 1: Cached APIC base MSR = 0xfee00800
00:00:06.067801 AHCI#0: Reset the HBA
00:00:06.094234 AHCI#0: Port 0 reset
00:00:08.520691 NAT: Link up
而旧的(成功的)则继续:
00:00:04.310395 PIT: mode=2 count=0x12a5 (4773) - 249.98 Hz (ch=0)
00:00:04.670117 PIT: mode=0 count=0x10000 (65536) - 18.20 Hz (ch=0)
00:00:04.675933 CPUM: VCPU 1: Cached APIC base MSR = 0xfee00800
00:00:06.058491 AHCI#0: Reset the HBA
00:00:06.067719 AHCI#0: Port 0 reset
00:00:08.049147 NAT: Link up
00:00:10.181385 VMMDev: Guest Additions information report: Version 4.3.36 r105129 '4.3.36_Ubuntu'
00:00:10.181441 VMMDev: Guest Additions information report: Interface = 0x00010004 osType = 0x00053100 (Linux >= 2.6, 64-bit)
00:00:10.181529 VMMDev: Guest Additions capability report: (0x0 -> 0x0) seamless: no, hostWindowMapping: no, graphics: no
这可能和增加客人有关吗?
答案1
这个问题在询问Ubuntu。简而言之,它尝试初始化不存在的串行控制台,但失败了。您应该使用 VirtualBox 连接虚拟串行端口,或者console=ttyS0
从 Grub 启动菜单选项中删除。