LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-08-2019, 08:39 AM   #1
Rosika
Member
 
Registered: Apr 2017
Distribution: Lubuntu 64 bit
Posts: 280

Rep: Reputation: Disabled
system hangs at reboot/shutdown


Hi altogether,

after performing a clean install of Lubuntu 18.04.2 LTS, 64 bit, I experience shutdown/reboot problems. The system hangs at a specific point.

After deactivating plymouth ("noplymouth" instead of "quiet splash") I was able to find out where the system hangs.
The last entries are as follows:

Code:
systemd-shutdow [1]: 12 output lines suppressed due to rate limiting
systemd-shutdown [1]: Syncing filesytems and block devices
systemd-shutdown [1]: Sending SIGTERM to remaining processes
systemd-journald [284]: Received SIGTERM from PID 1 (systemd-shutdown)
systemd-shutdown [1]: Sendig SIKILL to remaining processes ...
systemd-shutdown [1]: Unmountig file systems
EXT4-fs (sdc1): re-mounted. Opts: block_validity,barrier,user-xattr,acl,errors=remount-ro
systemd-shutdown [1]: All filesystems unmounted
systemd-shutdown [1]: Deactivating swaps
systemd-shutdown [1]: All swaps deactivated
systemd-shutdown [1]: Deactivating loop devices
systemd-shutdown [1]: All loop devices detached
systemd-shutdown [1]: Detaching DM devices
kvm: exiting hardware virtualization
So the kvm thing seems to be the culprit.

Does anyone know what to do?

The whole thing is a bit odd as I have a pristine system and everything should work perfectly.

Greetings.
Rosika
 
Old 03-08-2019, 09:08 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,304

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
If you suspect kvm, don't start it or kill it before you shut down. If you have a VM or more running, kvm may be very unwilling to shut down. I have VB, and I have toi shut the VM before I can close stuff.

Also try killing kvm, and make sure it's dead.

Last some BIOS and kernel settings can prevent power down, and must be uid 0 to switch off.
 
Old 03-08-2019, 09:16 AM   #3
Rosika
Member
 
Registered: Apr 2017
Distribution: Lubuntu 64 bit
Posts: 280

Original Poster
Rep: Reputation: Disabled
Hi business_kid,

thanks for your reply.

I havenīt started kvm - at least not to my knowledge. As I said Itīs a pretty pristine system and I havenīt installed any VMs yet.

Code:
ps aux | grep kvm
rosika    4034  0.0  0.0  21536  1104 pts/2    S    16:09   0:00 grep --color=auto kvm
This is the only thing associated with kvm.

Quote:
Last some BIOS and kernel settings can prevent power down, and must be uid 0 to switch off.
I really donīt want to mess around with BIOS settings, but what about kernel settings? Yet Iīm not sure how to manage that......

Greetings
Rosika
 
Old 03-08-2019, 09:51 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,855

Rep: Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311
your grep means [almost] nothing (there is no process named kvm). But still there can be a daemon related to kvm or something else (like kernel module).
 
Old 03-08-2019, 10:36 AM   #5
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,576
Blog Entries: 19

Rep: Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453
There's a kernel module called kvm. To find out if this is loaded in your system, use lsmod.

If it is loaded, find out what is loading it and deactivate it. I'm pretty certain it's a systemd thing.
 
Old 03-08-2019, 11:05 AM   #6
Rosika
Member
 
Registered: Apr 2017
Distribution: Lubuntu 64 bit
Posts: 280

Original Poster
Rep: Reputation: Disabled
Hi pan64 and hazel,

thanks.
lsmod gives me the following entries with kvm:

Code:
Code:
kvm_intel             212992  0
kvm                   598016  1 kvm_intel
irqbypass              16384  1 kvm
Quote:
If it is loaded, find out what is loading it and deactivate it.
Yet Iīm not sure how to proceed.
 
Old 03-08-2019, 11:19 AM   #7
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,855

Rep: Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311
hm. try rmmod to remove and try to blacklist if you don't want to load it at boot-time.
 
Old 03-08-2019, 11:32 AM   #8
Rosika
Member
 
Registered: Apr 2017
Distribution: Lubuntu 64 bit
Posts: 280

Original Poster
Rep: Reputation: Disabled
So like that:

Code:
sudo rmmod kvm_intel
sudo rmmod kvm
?

And what about irqbypass 16384 1 kvm?
 
Old 03-08-2019, 11:48 AM   #9
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,576
Blog Entries: 19

Rep: Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453
That means that the irqbypass module uses kvm and depends on it. So if you blacklist kvm, irqbypass won't load either. But I don't think you actually need it if you're not running a virtual machine.
 
Old 03-08-2019, 12:03 PM   #10
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,855

Rep: Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311
yes, something like that (for rmmod)
 
Old 03-08-2019, 06:11 PM   #11
RickDeckard
Member
 
Registered: Jan 2014
Location: Canton, Georgia, USA
Distribution: Debian 12
Posts: 205

Rep: Reputation: Disabled
Type into /etc/modprobe.d/blacklist.conf:

blacklist kvm
blacklist kvm_intel
blacklist irqbypass

Then restart
 
Old 03-09-2019, 11:47 AM   #12
Rosika
Member
 
Registered: Apr 2017
Distribution: Lubuntu 64 bit
Posts: 280

Original Poster
Rep: Reputation: Disabled
Thanks folks for your help.

Iīll try that and get back to you with the results.

Greetings.
Rosika
 
Old 03-10-2019, 09:41 AM   #13
Rosika
Member
 
Registered: Apr 2017
Distribution: Lubuntu 64 bit
Posts: 280

Original Poster
Rep: Reputation: Disabled
Hi again,

in the meantime I tried the following:

Code:
rosika@rosika-Lenovo-H520e ~> lsmod | grep kvm
kvm_intel             212992  0
kvm                   598016  1 kvm_intel
irqbypass              16384  1 kvm

rosika@rosika-Lenovo-H520e ~> sudo modprobe -r kvm_intel

rosika@rosika-Lenovo-H520e ~> sudo modprobe -r kvm
That unloaded the respective modules and I tried to reboot.
But again it failed. The system hung up again. But this time at another point:

Code:
systemd-shutdown[1]: Detaching DM devices
Not sure how to proced now.

Greetings
Rosika
 
Old 03-10-2019, 09:50 AM   #14
Rosika
Member
 
Registered: Apr 2017
Distribution: Lubuntu 64 bit
Posts: 280

Original Poster
Rep: Reputation: Disabled
The only solution which seems to work is using the terminal with

Code:
shutdown -H -P +0
or
Code:
shutdown -H -r +0
for reboot.
It seems like other people had the same problem and they came up with that one.
 
Old 07-21-2020, 10:50 AM   #15
wladicus
LQ Newbie
 
Registered: Jan 2014
Posts: 13

Rep: Reputation: Disabled
Smile Reboot & Shutdown problem are due to LINUX 5.3.0-62-generic kernel

I have also been having Reboot & Shutdown problems.
After trying many suggested solutions, I finally decided to boot
Ubuntu with the previous kernel LINUX 5.3.0-61-generic and now everything works great!
So, from my particular experience it is the new kernel release -62 that is the culprit.
I hope this helps some users.

I also noticed that WiFi is now recognized whereas with kernel -62 it completely disappeared.

Last edited by wladicus; 07-21-2020 at 10:53 AM.
 
2 members found this post helpful.
  


Reply

Tags
reboot, shutdown



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
what is the default powerstate (e.g. S3,S4,S5) for the command 'shutdown -hP' or 'shutdown -hH' or 'shutdown -h' badbetty Slackware 6 11-12-2017 12:18 AM
Install Realtek ALC3223 drivers: X hangs on start, shutdown/reboot hangs? RatCorpseKing Slackware - Installation 1 04-27-2015 11:26 PM
FC18: running a command on shutdown (or reboot) before every other shutdown operation P5music Fedora 3 04-23-2013 03:56 PM
Unable to shutdown/reboot server, no shutdown process running dctw Linux - Server 5 03-31-2010 05:46 AM
[FYI] "last -f <old wtmp> -x reboot shutdown" incorrect for last reboot and shutdown catkin Linux - General 1 03-25-2010 11:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration