Kali Hanging/Crashing

What have you tried: Nothing

What is the error: My Kali machine running on a VM ware frequently crashes or say “hangs”. Every now and then, while using the machine, it’d suddenly stop responding, and everything gets distorted. It’d only work when I shut down and start again.

What device is this on: I’m running it on a VM ware in my Windows pc.

And I’m thinking of deleting the machine and building another one, but I’m not sure what I did wrongly before that resulted to that constant hanging.

Someone should please help me.

Sounds like a you problem, since this is not something that is a known issue.

You can look at log files after a crash as described here

You can also try to run a different linux distro and see if the problem persists with other cases.

Good luck

1 Like

in vm manager use no more than 50% of your physical CPU cores and no more than 50% of available RAM if you set VM settings too high, the host OS doesn’t have enough left for itself, and the vm will appear to hang until you quit it

so if i have a 4 core cpu i’ll set 2 cores max for guest OS
if I have 8 GB RAM no more than 4 GB for guest OS for example

The other thing is to make sure your vm has enough disk space. By default many will use very conservative settings, and Kali or other Linux will run best if you set it at say 20 GB

2 Likes

Could you provide the specs for the host machine and the specs you have given the VM?

1 Like

Hi frenz, thank you for your response.

The specs for the host machine:
RAM - 32GB
DISK - 512GB SSD (477 avail)
CPU - 4 cores, 8 Logical processors

Kali:
RAM - 20GB
DISK - 100gb (Intending to increase this to 200gb)
CPU - 2 processors (1 core per processor)

I have equally tried to increase the disk space. It worked on the VM settings but when I tried re-partitioning the Kali disk and resseting the file systems, it wouldn’t work.

I need to increase the disk cos I want to sync a blockchain data. I’ve used GPT and claude and the repartitioning and file system expandsion wouldn’t work.

Thanks. Here’s the specs

I know it sounds weird, but I think you have given too much RAM to the guest. The general rule of thumb is to give no more than half the available RAM to your guests. My Kali VM only has 6 gigs of RAM and works fine.

The first thing I would do is reduce the RAM down to about 8?

Just because you made the hard drive bigger in the VM settings does not make the partition bigger that kali is running on. You could either use that extra space to make a second hard drive instead, or would have to look up online on how to resize the partition you want to resize which carries the risk of damaging your installation.

Saying you used GPT and claude carries about the same weight as saying “I even went into the swamp and asked a witch”. Never ever rely on those, especially not if you would not be able to tell when they hallucinate a solution that is plain wrong.

1 Like

I actually created a new VM machine and yeah. I just assigned 8gb RAM this time.

Thank you

Thank you. I just created a new machine and move my files from the old disk.

However, I till need to look up how to successfully resize partitions just in case of another time.
Thankyou

And how much RAM did you give the new machine?

Initially 8gb but raised it to 12.1gb now.

From booted kali install you can use GParted to expand a disk into the extra ‘free’ unpartitioned space that you created in the VM settings.