Updated Kali Linux and now won't load.

Discussions about using Linux guests in VirtualBox.
Post Reply
duaneg
Posts: 4
Joined: 10. Feb 2023, 03:32

Updated Kali Linux and now won't load.

Post by duaneg »

Hello, I updated several packages on my Kali virtual host last night and attempted to restart and now I am unable to log in, it goes to the OS loading screen, goes black and does not respond afterward.
When attempting to run fsck, I am unable to figure out how to get into cli without the disk mounting and am unable to demount the disk to run fsck.
When checking VBox.log, I see the following:

Code: Select all

03:25.614505 ****************** Guest state at power off for VCpu 1 ******************
00:03:25.614507 Guest CPUM (VCPU 1) state: 
00:03:25.614509 rax=ffffffffb0de39f0 rbx=ffff90ca00280000 rcx=0000000000000001 rdx=4000000000000000
00:03:25.614511 rsi=ffffffffb157c014 rdi=ffffffffb1555e3d r8 =ffff90ca1bca3060 r9 =0000000000000000
00:03:25.614512 r10=0000000000000001 r11=0000000000000001 r12=0000000000000000 r13=0000000000000000
00:03:25.614513 r14=0000000000000000 r15=0000000000000000
00:03:25.614514 rip=ffffffffb0de3b4b rsp=ffffb18ac009bed8 rbp=0000000000000001 iopl=0         nv up ei nt zr na pe nc
00:03:25.614515 cs={0010 base=0000000000000000 limit=ffffffff flags=0000a09b}
00:03:25.614516 ds={0000 base=0000000000000000 limit=ffffffff flags=00000000}
00:03:25.614517 es={0000 base=0000000000000000 limit=ffffffff flags=00000000}
00:03:25.614518 fs={0000 base=0000000000000000 limit=ffffffff flags=00000000}
00:03:25.614518 gs={0000 base=ffff90ca1bc80000 limit=ffffffff flags=00000000}
00:03:25.614519 ss={0018 base=0000000000000000 limit=ffffffff flags=0000c093}
00:03:25.614520 cr0=0000000080050033 cr2=00007fdb0c0d4040 cr3=0000000107d94000 cr4=00000000000506e0
00:03:25.614521 dr0=0000000000000000 dr1=0000000000000000 dr2=0000000000000000 dr3=0000000000000000
00:03:25.614522 dr4=0000000000000000 dr5=0000000000000000 dr6=00000000ffff0ff0 dr7=0000000000000400
00:03:25.614523 gdtr=fffffe000003c000:007f  idtr=fffffe0000000000:0fff  eflags=00000282
00:03:25.614525 ldtr={0000 base=00000000 limit=0000ffff flags=00000000}
00:03:25.614525 tr  ={0040 base=fffffe000003e000 limit=00004087 flags=0000008b}
00:03:25.614526 SysEnter={cs=0010 eip=00000000b0e01750 esp=000000000003e000}
00:03:25.614527 xcr=0000000000000007 xcr1=0000000000000000 xss=0000000000000000 (fXStateMask=0000000000000007)
00:03:25.614528 FCW=037f FSW=0000 FTW=0000 FOP=0000 MXCSR=00001fa0 MXCSR_MASK=0002ffff
00:03:25.614530 FPUIP=00000000 CS=0000 Rsrvd1=0000  FPUDP=00000000 DS=0000 Rsvrd2=0000
00:03:25.614531 ST(0)=FPR0={0000'00000000'00000000} t0 +0.0000000000000000000000 * 2 ^ -16383 (*)
00:03:25.614532 ST(1)=FPR1={0000'00000000'00000000} t0 +0.0000000000000000000000 * 2 ^ -16383 (*)
00:03:25.614534 ST(2)=FPR2={0000'00000000'00000000} t0 +0.0000000000000000000000 * 2 ^ -16383 (*)
00:03:25.614535 ST(3)=FPR3={0000'00000000'00000000} t0 +0.0000000000000000000000 * 2 ^ -16383 (*)
00:03:25.614536 ST(4)=FPR4={0000'00000000'00000000} t0 +0.0000000000000000000000 * 2 ^ -16383 (*)
00:03:25.614537 ST(5)=FPR5={0000'00000000'00000000} t0 +0.0000000000000000000000 * 2 ^ -16383 (*)
00:03:25.614539 ST(6)=FPR6={0000'00000000'00000000} t0 +0.0000000000000000000000 * 2 ^ -16383 (*)
00:03:25.614540 ST(7)=FPR7={0000'00000000'00000000} t0 +0.0000000000000000000000 * 2 ^ -16383 (*)
00:03:25.614541 YMM0 =00000000'00000000'00000000'00000000'00000000'00000000'00000000'00000002
00:03:25.614542 YMM1 =00000000'00000000'00000000'00000000'00012de4'000136a4'00017290'0001a6d1
00:03:25.614544 YMM2 =00000000'00000000'00000000'00000000'00000000'00000000'00000000'00000002
00:03:25.614545 YMM3 =00000000'00000000'00000000'00000000'12db2100'1c26178d'2000ef5c'afa11f00
00:03:25.614546 YMM4 =00000000'00000000'00000000'00000000'1c00326d'82e01c00'5affbd54'1c00d03b
00:03:25.614548 YMM5 =00000000'00000000'00000000'00000000'c48b05f0'0a00e3be'2b350a00'7abcf1bd
00:03:25.614549 YMM6 =00000000'00000000'00000000'00000000'0f00974a'ced10e00'bb824344'0e00a8f3
00:03:25.614553 YMM7 =00000000'00000000'00000000'00000000'b52c1a00'c3e61458'19007095'80e51800
00:03:25.614554 YMM8 =00000000'00000000'00000000'00000000'fcfff6b6'bc44faff'3df1e8b2'f8ffe08b
00:03:25.614556 YMM9 =00000000'00000000'00000000'00000000'00000000'00000000'00000000'00000000
00:03:25.614557 YMM10=00000000'00000000'00000000'00000000'00000000'00000000'00000000'00000000
00:03:25.614558 YMM11=00000000'00000000'00000000'00000000'00000000'00000000'00000000'00000000
00:03:25.614563 YMM12=00000000'00000000'00000000'00000000'00000000'00000000'00000000'00000000
00:03:25.614565 YMM13=00000000'00000000'00000000'00000000'00000000'00000000'00000000'00000000
00:03:25.614566 YMM14=00000000'00000000'00000000'00000000'00000000'00000000'00000000'00000000
00:03:25.614567 YMM15=00000000'00000000'00000000'00000000'00000000'00000000'00000000'00000000
00:03:25.614569 EFER         =0000000000000d01
00:03:25.614570 PAT          =0007040600070406
00:03:25.614572 STAR         =0023001000000000
00:03:25.614572 CSTAR        =ffffffffb0e01800
00:03:25.614573 LSTAR        =ffffffffb0e00000
00:03:25.614574 SFMASK       =0000000000257fd5
00:03:25.614574 KERNELGSBASE =0000000000000000
00:03:25.614576 ***
00:03:25.614578 VCPU[1] hardware virtualization state:
00:03:25.614579 fSavedInhibit                = 0x0
00:03:25.614579 In nested-guest hwvirt mode  = false
00:03:25.614580 Hwvirt state disabled.
00:03:25.614581 ***
00:03:25.614583 Guest paging mode (VCPU #1):  AMD64+NX (changed 3 times), A20 enabled (changed 0 times)
00:03:25.614585 Guest SLAT mode (VCPU #1): Direct
00:03:25.614585 Shadow paging mode (VCPU #1): Nested-AMD64
00:03:25.614586 Host paging mode:             AMD64+G+NX
00:03:25.614587 ***
00:03:25.614587 ************** End of Guest state at power off for VCpu 1 ***************
00:03:25.614618 ****************** Guest state at power off for VCpu 0 ******************
00:03:25.614623 Guest CPUM (VCPU 0) state: 
00:03:25.614625 rax=ffffffffb0de39f0 rbx=ffffffffb22199c0 rcx=7fffffd671fa3016 rdx=4000000000000000
00:03:25.614629 rsi=ffffffffb157c014 rdi=ffffffffb1555e3d r8 =ffff90ca1bc23060 r9 =0000000000000000
00:03:25.614631 r10=0000000000000001 r11=0000000000000000 r12=0000000000000000 r13=0000000000000000
00:03:25.614632 r14=ffffffffb2219118 r15=0000000000000000
00:03:25.614633 rip=ffffffffb0de3b4b rsp=ffffffffb2203e90 rbp=0000000000000000 iopl=0         nv up ei nt zr ac po nc
00:03:25.614635 cs={0010 base=0000000000000000 limit=ffffffff flags=0000a09b}
00:03:25.614636 ds={0000 base=0000000000000000 limit=ffffffff flags=00000000}
00:03:25.614637 es={0000 base=0000000000000000 limit=ffffffff flags=00000000}
00:03:25.614638 fs={0000 base=0000000000000000 limit=ffffffff flags=00000000}
00:03:25.614639 gs={0000 base=ffff90ca1bc00000 limit=ffffffff flags=00000000}
00:03:25.614640 ss={0018 base=0000000000000000 limit=ffffffff flags=0000c093}
00:03:25.614641 cr0=0000000080050033 cr2=00007f53c4029248 cr3=0000000101518000 cr4=00000000000506f0
00:03:25.614642 dr0=0000000000000000 dr1=0000000000000000 dr2=0000000000000000 dr3=0000000000000000
00:03:25.614643 dr4=0000000000000000 dr5=0000000000000000 dr6=00000000ffff0ff0 dr7=0000000000000400
00:03:25.614644 gdtr=fffffe0000001000:007f  idtr=fffffe0000000000:0fff  eflags=00000296
00:03:25.614646 ldtr={0000 base=00000000 limit=0000ffff flags=00000000}
00:03:25.614647 tr  ={0040 base=fffffe0000003000 limit=00004087 flags=0000008b}
00:03:25.614648 SysEnter={cs=0010 eip=00000000b0e01750 esp=0000000000003000}
00:03:25.614649 xcr=0000000000000007 xcr1=0000000000000000 xss=0000000000000000 (fXStateMask=0000000000000007)
00:03:25.614651 FCW=037f FSW=0000 FTW=0000 FOP=0000 MXCSR=00001f80 MXCSR_MASK=0002ffff
00:03:25.614652 FPUIP=00000000 CS=0000 Rsrvd1=0000  FPUDP=00000000 DS=0000 Rsvrd2=0000
00:03:25.614654 ST(0)=FPR0={0000'00000000'00000000} t0 +0.0000000000000000000000 * 2 ^ -16383 (*)
00:03:25.614657 ST(1)=FPR1={0000'00000000'00000000} t0 +0.0000000000000000000000 * 2 ^ -16383 (*)
00:03:25.614658 ST(2)=FPR2={0000'00000000'00000000} t0 +0.0000000000000000000000 * 2 ^ -16383 (*)
00:03:25.614660 ST(3)=FPR3={0000'00000000'00000000} t0 +0.0000000000000000000000 * 2 ^ -16383 (*)
00:03:25.614662 ST(4)=FPR4={0000'00000000'00000000} t0 +0.0000000000000000000000 * 2 ^ -16383 (*)
00:03:25.614664 ST(5)=FPR5={0000'00000000'00000000} t0 +0.0000000000000000000000 * 2 ^ -16383 (*)
00:03:25.614665 ST(6)=FPR6={0000'00000000'00000000} t0 +0.0000000000000000000000 * 2 ^ -16383 (*)
00:03:25.614667 ST(7)=FPR7={0000'00000000'00000000} t0 +0.0000000000000000000000 * 2 ^ -16383 (*)
00:03:25.614670 YMM0 =00000000'00000000'00000000'00000000'00000000'00000000'00000000'00000000
...

Code: Select all

00:03:25.656421 GIM: KVM: Resetting MSRs
00:03:25.658933 vmmR3LogFlusher: Terminating (VERR_OBJECT_DESTROYED)
00:03:25.659053 Changing the VM state from 'DESTROYING' to 'TERMINATED'
00:03:25.660351 Console: Machine state changed to 'PoweredOff'
00:03:25.802529 GUI: Passing request to close Runtime UI from UI session to UI machine.
00:03:25.805030 GUI: UICommon: Handling aboutToQuit request..
00:03:26.704004 GUI: UICommon: aboutToQuit request handled!
Does anyone have any feedback?

Thank you,
duaneg
Posts: 4
Joined: 10. Feb 2023, 03:32

Re: Updated Kali Linux and now won't load.

Post by duaneg »

Here is a complete log collection.
I even moved the image from F: and onto a local secondary disk, just in case this was the issue.
No fix.
Attachments
logs.zip
(218.63 KiB) Downloaded 4 times
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Updated Kali Linux and now won't load.

Post by scottgus1 »

00:00:05.946683 VirtualBox VM 7.0.6 r155176 win.amd64 (Jan 11 2023 16:38:38) release log
00:00:05.946685 Log opened 2023-02-10T01:43:20.794359300Z
00:00:05.946685 Build Type: release
00:00:05.946692 OS Product: Windows 10
.....
00:00:06.290239 Name <string> = "kali-linux-2022.3-virtualbox-amd64" (cb=35)
duaneg wrote:I updated several packages on my Kali virtual host
I think you'll have meant "Kali virtual guest". The host is the physical PC, which is running Windows. The Guest, or VM, is running Kali.

I don't right off see anything wrong in the operating of the VM's 'hardware'. I think this:
duaneg wrote:I updated several packages on my Kali virtual host last night and attempted to restart and now I am unable to log in, it goes to the OS loading screen, goes black and does not respond afterward.
means somethin got bunged up in the Kali update process.
duaneg wrote:now I am unable to log in, it goes to the OS loading screen, goes black and does not respond afterward.
Curiously, Kali and Ubuntu are both based on Debian. Now Ubuntu is known to go blackscreen if there is not enough free disk space to start the desktop environment, such as if updates fill up the drive. If this blackscreen issue is really something from Debian, then Kali might have the same possible problem.

This happens in real PCs too. The solution is to log on text-only and delete stuff until the desktop environment can start. Web-search how to fix this in an Ubuntu PC and apply the steps to the VM. Also see How to Resize a Drive
duaneg
Posts: 4
Joined: 10. Feb 2023, 03:32

Re: Updated Kali Linux and now won't load.

Post by duaneg »

Scott,

Thank you for the response.

I was quite curious as well as although I'm just now getting back to Linux use after a rather long, long time away - I didn't see anything outstanding in the log files that really jumped out as "This is why."

If I'm not mistaken, the only sources I had installed were the official Kali repo and a few other Debian friendly repos, and maaaaybe Debian repo, which I know is not advised but I never did a mass update all since installing any non-advisable repos, either, so although an update was done around the time of the crash, I can't positively affirm that was the cause - although it is the most likely culprit.

I did not know that about Debian, but makes sense. I did not set a max VM size on this drive and actually moved it off my external drive, which was within 50GB of being full, thinking this may be the cause as well, but even on my other drive with 800GB free, it will not boot. I will check if the image has a preset max, but - if all else fails, it is possible to install Kali (Debian) over the image without wiping the hard drive, in the event of system corruption?

Debian recovery mode seems pretty underwhelming.
duaneg
Posts: 4
Joined: 10. Feb 2023, 03:32

Re: Updated Kali Linux and now won't load.

Post by duaneg »

Also, just another aside, I also converted the image to run in VMWare and it produces the same error - although I have not done much virtual hardware customization to attempt to resolve .. I did however crash one of my home servers getting the SCP path backwards and overwriting my server's filesystem.

Isn't that fun? :D

hahahah.
Post Reply