LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   Unable to reboot after trying to install KVM (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/unable-to-reboot-after-trying-to-install-kvm-4175625459/)

psitae 03-12-2018 09:18 PM

Unable to reboot after trying to install KVM
 
Hi.

I'm running Ubuntu 17. Here is the output to uname -a. Linux hellodolly 4.13.0-36-generic #40-Ubuntu SMP Feb 16 20:07:48 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

I decided to switch to KVM from VirtualBox. So I first searched dpkg -l for Virtualbox* and purged it. After that, the package manager said I still had some unnecessary files and encouraged me to autoremove them, which I did. The programs were: virtualbox-dkms, dkms, libvnc server, and libgsoap-2.8.49

After that I rebooted and during the part of the boot where there are green [OK] notices, there was a [Failed] notice which said "Failed to start AppArmor initialization. See 'systemctl status apparmor.service' for details. Also, the screen flashed several times and then froze. If I didn't wait too long, Ctl-Alt-Delete would work, but if I wanted longer, the only way to get out of the situation was to push the power button.

I can still execute some commands from recovery mode. So, the relevant parts of that command's output is as follows:

Loaded: loaded (/lib/systemd/system/apparmor.service; enabled; vendor preset:
Active: inactive (dead)
...

At first I tried removing the apparmor file from /etc/init.d. That changed the nature of the boot, but in the end the same flashing and then freeze happened (maybe there was a different number of flashes).

Can anyone tell me the cause of this and how to get my system to boot again?

Thanks

jefro 03-13-2018 04:38 PM

Can you load prior kernel on boot?

psitae 03-13-2018 05:05 PM

Hi Jefro.

Please clarify what it means to load prior kernel on boot.

jefro 03-14-2018 12:29 PM

Did you change the kernel for the KVM install? Usually distro's keep various prior kernels available and you can sometimes catch it at boot or select it in grub.

psitae 03-14-2018 11:10 PM

No I didn't change the kernel. I'm not even sure that the KVM was the cause of the problem, it's just the last thing I did before I rebooted.

I accessed the recovery mode through, the grub menu. There I saw other options.

Do you know how I would try to debug this problem with AppArmor?

jefro 03-16-2018 03:36 PM

I'm not overly confident that that is the problem but you can chase it down. Consider looking at all logs too in /var for clues.

See this maybe should work. https://help.ubuntu.com/community/AppArmor


All times are GMT -5. The time now is 06:48 AM.