/srv/irclogs.ubuntu.com/2017/07/27/#ubuntu-kernel.txt

=== mwsb is now known as chu
=== JanC_ is now known as JanC
=== zyga-ubu1tu is now known as zyga-ubuntu
BigBangUDRHello all need help regarding kernel panic in 14.04 issue - http://imgur.com/a/3oKAQ09:55
apwBigBangUDR, that looks to be 4.4.0-72.93 ... the latest updates kernel is 4.4.0-87.110 have you tried that ?10:10
BigBangUDRI am new and not able to boot or get terminal10:10
apwdo you have any other kernels installed, i assume there was another before that one broke you10:11
apwso as it crashed and did not boot, you should get a menu next time you boot10:11
apwwhich lets you select other older kernels10:11
apwi would recommend picking the previous one to this one if it is the latest installed10:11
BigBangUDRTry all kernal options available in grub menu none worked all went to panic 10:12
BigBangUDReven recovery mode10:12
apwoh your init is broken10:13
apwso yes all kernels will blow up, as it is simply sying "init exited"10:13
apwso you could edit the command line and try adding 'init=/bin/sh' to the end and see if you get a prompt then10:15
apwof course it will have root mounted read only etc10:15
BigBangUDRapw: i have another ubuntu with multi hard disk support, can i mount and do something10:19
apwi would try the init thing first10:20
apwas you can remount it r/w and ask apt what the heck is up with init10:20
apwas it looks like someone has removed libcap2 from teh system10:21
apwfrom the error you have, which is a hard dependency of systemd10:21
apwwhich is init in this context10:21
BigBangUDRapw: i am real new to this kernal things dont have any idea what needs to be excuted there10:21
apwi am saying select the latest kernel in grub, hit the e key to edit the entry10:22
apwand then cursor down to the line with linux at the front, and add init=/bin/sh to the end of the line10:22
apwthen hit ctrl-x to execute it10:22
apwhttps://askubuntu.com/questions/19486/how-do-i-add-a-kernel-boot-parameter10:23
apwif that doesn't panic we have some hope of being able to recover from this10:23
apwis this is a server or desktop install ?10:23
BigBangUDRapw: Okay this is server install10:23
apwwhat was occuring when this started, as losing that file without systemd being removed10:24
apwimplies the actual file was removed without removing the package10:24
apwso either someone with admin or a harward/software glitch that happened to remove/corrupt that file10:24
BigBangUDRThis is our node development in-house server, i monitor it10:25
BigBangUDRwe usually add and remove lots of programmes 10:26
BigBangUDRam trying your init solutions10:26
apwit isn't a solution, it is an attempt to get you to a point where you can repair this thing10:27
BigBangUDRYes 10:27
apwit will not be up in any sense someone can use it from anywhere from the control10:27
apwconsole10:27
BigBangUDRapw: got the terminal10:33
apwthen you have some hope10:33
apwthen you need to make / writable10:33
BigBangUDRhow to do it?10:34
apwnote once you have done this you need to sync it manually at the end otherwise it might not be on disk10:34
apwthis is very important10:34
apwmount -o remount,rw /10:34
apwbut remember you can make a huge poo mess of this if you do not sync it at the end10:34
apwwhich you do in teh traditional way10:34
apwsync;sync;sync10:34
apwnext we want to find out if you have libcap2 installed10:36
apwdpkg -l | grep libpcap210:36
apwdpkg -l | grep libcap210:37
BigBangUDRmount not working10:37
apwwhat does it say10:37
BigBangUDRerror while loading shared libraries : libblkid.so.110:37
apwdoes ls work ?10:37
BigBangUDRlls10:38
BigBangUDRyes10:38
apwls -l /lib/*/libcap.so.210:38
apwdoes that list any files ?10:39
apwls -l /lib/*/libcap.so.2*10:39
apwand indeed does that10:39
BigBangUDRno such file or directory10:40
apwfor both ?10:40
apwls /lib 10:41
apw?10:41
BigBangUDRls it display all libraries10:41
apwdpkg -l | grep libcap2 10:42
apwdoes that work ?10:42
BigBangUDRyes it display some result like libcap2-bin and more10:43
apwdpkg --verify libcap210:44
apwwhat does that say10:44
BigBangUDRits saying ??5????? and a path10:44
apwso you have lost that file, what path is it10:45
apwapproximatly is close enough10:45
apwand what is the letter in the second column10:46
BigBangUDRThis is the path  /lib/x86_64linux-gnu/libcap.so.2.2410:47
apwwhat does10:47
apwand ls of that directory short10:47
apwshow10:47
apwie is there anything else in there, or are all of your arch specific libraries gone10:47
apwas we know you are missing blkid already10:48
apw...10:48
apwthough regardless of that because you have lost your blkid library you are not going to be able10:48
BigBangUDRyes right10:48
apwto recover this from here easily as your disk is not converable to rw to fix10:48
apwso normally in this situation i would make and boot from a usb stick10:49
apwthen mount up the root disk manually and chroot into it10:49
apwand see if i could reinstall the packages which are clearly broken10:49
BigBangUDRIt throw the same error while boot from USB10:50
apwthat cannot be, as the usb stick has its own libraries10:50
apwthat sounds more like you are failing to boot the stick10:50
BigBangUDROkay I'll try one more time10:50
BigBangUDRHope it will work this time.10:51
apwonce you have mounted root, and chrooted into it10:51
apw(remember to bind mount /sys and /proc into it)10:51
BigBangUDROkay10:52
apwthen you can try apt-get install --reinstall libcap2 libblkid110:52
apwand see if that works10:52
apwof course you have little idea if anytyhing else got dammaged by whatever broke you10:52
BigBangUDRSure I go through it and try to recover it. 10:53
ogra_are you sure thats not a failed disk in the raid ? 10:53
ogra_(looks like there is a md raid in use)10:54
BigBangUDRYes10:54
apwif there is any risk that you have lost a disk in your raid you ought to take a backup of course10:55
apwwell probabally you want to do that anyhow10:55
BigBangUDRRight10:56
apwogra_, though as the disk has mounted clean i assume a disk loss would have had to have occured when the machine was not booted10:56
apwnot impossible of course10:56
BigBangUDRTry to mount it with the help of another disk but it failed and dont show all data which is available earlier 10:57
* ogra_ would actually boot with break=bottom and inspect the raid from there (also gives you accurate logs, i guess any interesting errors are scrolled off screen anyway)10:58
BigBangUDRStill throw the same error kernal error while boot from USB10:59
apwwhat usb stick image are you booting11:00
apwand is the output identicle11:00
BigBangUDRMight be some problem with its version.  11:00
apwwhos version?11:01
BigBangUDRversion 16.0411:01
apwthose images are commonly used, so i doubt it11:01
apwwhat kernel version is shown in that panic11:01
apwwhen booting from usb11:01
ogra_which image are you using(whats the download URL yu used)11:01
BigBangUDRversion 1411:04
ogra_??11:04
ogra_thats not a url 11:04
ogra_what exactly did you download for your usb stick11:04
ogra_surely any imgaes you can download from releases.ubuntu.com will bot standalone11:05
ogra_*boot11:05
apwi asusme that is mean to be a kernel version, but its not one of those11:05
apwif the panic looks similar, then is says "Kernel Panic -...."11:05
apwand then two lines below on the right end of the CPU: 0 line it has a full kernel version/flavour/build number11:06
apwit is that i am after11:06
BigBangUDRhttps://www.ubuntu.com/download/desktop/thank-you?country=IN&version=16.04.2&architecture=amd6411:06
BigBangUDRThis is the url11:06
ogra_how did you write it to the USB ?11:07
ogra_and what is rthe exact error you see when booting from it then11:07
* apw boots that CD to find out what kernel is on it11:09
apwBigBangUDR, what was that kernel version when booting USB, or upload a picture of that too11:09
BigBangUDRkernal version is 4.05344211:11
apwnope11:11
apwthat isn't a kernel version, they don't look like that11:12
apw4.11.0-11-generic #16-Ubuntu11:12
apwthey are shaped like that (from my machine here)11:12
apwshaped like that in a panic output11:12
ogra_16.04 should have something like 4.4.0-*11:14
ogra_(though that is 16.04.2 ... that probably already has the hwe kernel )11:15
BigBangUDROkay trying to chroot and bind 11:18
apwmanaged to get the usb image booted ?11:19
BigBangUDRyes11:19
BigBangUDRchroot / right?11:20
apwnope11:20
apwyou need to bind before you chroot11:20
apwand then you chroot into wherever you mounted your real /11:20
apwchroot /mnt /bin/bash11:20
apwsort of thing11:20
BigBangUDRhave mounted the disk at /mnt/kw11:23
apwthen there11:23
apwmount -o bind /sys /mnt/kw/sys11:23
apwmount -o bind /proc /mnt/kw/proc11:23
apwchroot /mnt/kw /bin/bash11:23
apwand see if you can reinstall that libcap2 package11:23
apwif you can, you may have some hope11:23
BigBangUDRchroot: failed to run command ‘/bin/bash’: Exec format error11:24
apwtry /bin/sh11:24
apwis the installed image also amd64 ?11:25
BigBangUDRchroot: failed to run command ‘/bin/sh’: Exec format error11:25
apwwhat does "file /mnt/kw/bin/sh" say11:26
BigBangUDR /mnt/kw/bin/sh: symbolic link to `dash'11:27
apwwhat does "file /mnt/kw/bin/dsh" say11:28
apwwhat does "file /mnt/kw/bin/dash" say even11:28
BigBangUDR /mnt/kw/bin/dash: ELF 64-bit LSB  shared object, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=504637666875a5d526ef51acfe601c99efc99114, stripped11:28
ogra_and you definitely downloaded ubuntu-16.04.2-desktop-amd64.iso ? are you sure it is not i386.iso ?11:31
ogra_what does: uname -m11:31
ogra_say ? 11:32
BigBangUDROhh sorry my bad it says i68611:32
ogra_i686 ? 11:33
BigBangUDRyes11:33
ogra_where does it say that 11:33
BigBangUDRuname -m11:33
ogra_apw, is that what we say on i386 installs ? 11:34
* ogra_ wou8ld have expected x86 ... like amd64 says x86_6411:34
apwyes, that is what we say on i386, this amd64 box says x86_6411:34
ogra_yeah, wrong iso then11:34
ogra_http://releases.ubuntu.com/16.04.2/ubuntu-16.04.2-desktop-amd64.iso11:35
ogra_try this image11:35
BigBangUDROkay let me download11:36
BigBangUDRogra_: corrupted one is server edition11:38
ogra_there is no difference (apart from one shipping a desktop, they are the same underneath)11:39
ogra_but feel free to grab the server iso from the above url instead11:39
BigBangUDROkay11:40
* apw assumes BigBangUDR succeeded12:12
BigBangUDRapw not yet but in very good direction thanks to you12:20
BigBangUDRrepeating all i have learn from you.12:22
=== mhcerri_ is now known as mhcerri
michael-vbapw: Michael from the VirtualBox team here.  I was talking to LocutusOfBorg on #vbox-dev about how to deal with the VirtualBox kernel drivers (the host ones) and secure boot.15:29
michael-vbHe said I should talk to you and thought you might be have plan to include them in the Ubuntu kernel package.15:29
sforsheemichael-vb: we already have been including them in Ubuntu kernel packages for quite some time now15:42
michael-vbThe host ones?15:42
sforsheeoops, missed that part. No, not the host ones15:42
michael-vbSee for example LP 1574300.15:43
ubot5Launchpad bug 1574300 in virtualbox (Ubuntu) "Could not load 'vboxdrv' after upgrade to Ubuntu 16.04" [High,Confirmed] https://launchpad.net/bugs/157430015:43
michael-vbAnd it applies to our upstream builds as well of course.15:44
sforsheeyeah, currently the only solutions are to disable secure boot or use install a mok which is used to sign dkms modules. I think cyphermox was planning to work on a user-friendly way to do the latter.15:45
cyphermoxworking on it, I'm testing code at the moment15:45
michael-vbSounds interesting, any pointers?15:46
cyphermoxwhen the module gets built though, you should currently be getting a prompt to disable Secure Boot15:46
cyphermoxin other words, when you see the DKMS logs at package install (or upgrade), provided that you're in UEFI mode you should also be seeing a prompt come up to ask if you want to disable Secure Boot, and the pick a password -- you do want to do that15:49
michael-vbWe no longer use dkms upstream.  Not all distributions supported it, and using it for some but not all made no sense.15:51
LocutusOfBorgI'm back with my flaky connection16:00
michael-vbJust looked at mokutil.16:03
LocutusOfBorgI didn't probably get the answer from kernel team :)16:04
michael-vbmokutil seems to be the answer in short form.16:05
michael-vbThe long form might be, well, longer.16:06
=== klebers_ is now known as klebers
michael-vbsforshee, cyphermox: thanks.16:07
michael-vb(I might be back some time...)16:07
=== cachio is now known as cachio_afk
=== cachio_afk is now known as cachio
cyphermoxmichael-vb: AFAIK what dkms fails is at least on Fedora, but that's because AIUI they decided to not care19:21
cyphermoxfwiw, you can use update-secureboot-policy --disable to do the same, but a little more user-friendly maybe19:21
cyphermoxand soon this might be rendered moot, since you'll be able to sign the modules a bit more easily19:22
cyphermoxcurrently, you need to use mokutil & openssl to generate a key and enroll it, reboot, finish the enrollment, then use kmodsign to sign, if you manage to guess what parameters it wants :)19:22
socratiscyphermox: michael-vb has left the building a couple of hours ago, but I could "deliver" your message... 19:23
cyphermoxsocratis: thanks..19:23
cyphermoxsorry, I knew something was up when my tab-completion didn't work, but I never got a part/quit message here19:24
socratis:D19:25
socratisI just happened to follow michael from the #vbox-dev channel, just to see where the conversation was going, and I ... stayed ;)19:25
socratisAnyway, if I see him tomorrow, I'll paas it along. Just out of curiosity, you mentioned that the self-signing will be rendered easier soon-enough, or did I miss something?19:27
cyphermoxyes, that's what I'm working on atm19:31
cyphermoxI don't know if you work on virtualbox or if you're just interested because; but the idea is that dkms should work, so we need to make sure some kind of signature happens, and that it remains secure so as not to diminish the value of secureboot19:32
cyphermoxfor vbox, it's not quite as critical (ie your system still works) but some wireless/ethernet drivers or even graphics make use of dkms, so it's nice when your computer still works :)19:34
socratisNo, I'm not a developer (yet), I'm seriously interested. As far as I know, dkms was dropped because it wasn't working across platforms/distros.19:35
socratisBut I don't want to possibly drive you to the wrong path.19:35
socratisAs I said, my knowledge is surface only (if that), so I'll let the developers deal with it. Thank you so much in any event!19:36
* LocutusOfBorg forwards things to michael-vb20:13
=== JanC_ is now known as JanC
=== ayan is now known as Guest99857
=== cjwatson_ is now known as cjwatson

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!