Solved VM stuck in login loop_Not Enough Virtual Disk Storage Space? Something else?

Solved issue

Sherri is a Cat

Well-Known Member
Joined
May 8, 2021
Messages
2,011
Reaction score
1,296
Credits
16,667
I have installed Oracle VirtualBox. I've installed 2 different OS's and I'm running into the same problem with both of them. I seem to be stuck in a login loop. I sign in, I'm returned to the login page over and over.

Last night I installed LMDE (20 GB virtual disk). Things seemed to be working fine. After getting all the updates I began a SnapShot with TimeShift then got a message that I need more storage space. I cancelled the creation of a SnapShot.

Today I followed a tutorial to give the vm more storage space.

How to Expand or Increase Ubuntu Virtual Disk In VirtualBox

I added 30 GB. The directions said the start the vm. I did and have not been able to log in.

  • After reading this tutorial, I'm wondering if a partition should be created on the host machines disk before installing Oracle VirtualBox?
  • Could the problem be that I didn't assign enough storage to the virtual drive?
I thought that 20 GB would be enough to get started. The iso files are only 2.5 GB. I'm not sure what to do from here.




1745272813384.png
 


You'll need to:
  1. make the virtualbox drive larger, and then
  2. from GParted make your root partition bigger.
Follow this article for detailed steps: https://itsfoss.com/increase-disk-size-virtualbox/

If you find it cumbersome and you're not facing a big data loss, you may as well create a new VM with a larger disk (50 GB+)
 
If you find it cumbersome and you're not facing a big data loss, you may as well create a new VM with a larger disk (50 GB+)

I wouldn't lose anything at all.
Would you stick with Oracle VirtualBox or use something else?
 
I searched for how to remove Oracle VirtualBox completely. I want to make sure I do this right.

apt purge virtualbox*

That's the only line of code given. Is this it?
 
sudo apt purge etc
 
dpkg: warning: while removing virtualbox-7.1, directory '/usr/lib/virtualbox' no
t empty so not removed


Does this mean the virtualbox left things behind in a directory because other packages also have things stored there too? If so, how do I get rid of the rest of it?
 
I left the 'sudo' off the first time. I entered it again with sudo. I don't see the warning anymore.

Is there a way to make sure it all got deleted?
 
Have you read This?
No, I haven't seen that. But Dos2Unix popped in on my thread when I began my virtual machine project. My virtualization technology is prior generation. Before I ran out of storage space, LMDE was FANTASTIC ! It's so good I'm seriously considering it for my host machine. I can only imagine how it would be with ALL the resource available.

I have about 1.75 TB of available space on my drive.
 
Do you think a timeshift snapshot is necessary, given the fact that this is a vm and is therefore subject to being deleted at a moments notice ?

It likely started your space problem

Is it possible to save the snapshot outside the vm ?
 
Do you think a timeshift snapshot is necessary,

Last year I was visited every night in my dreams by a tall wizard dressed in a black. There was another guy who looked just like Crocodile Dundee dragging a condo behind him everywhere he went. They said one word over and over.... 'TimeShift, TimeShift, TimeShift...' From that day to this I take a SnapShot before I install an app, before updates, in the morning, in the evening, on weekends and weekdays, if I'm bored, if I'm not bored, if I feel like it, if I don't feel like it....


given the fact that this is a vm and is therefore subject to being deleted at a moments notice ?

After I get one installed properly I'll take a SnapShot or two, just for old times sake.

It likely started your space problem

I had the same thought.

Is it possible to save the snapshot outside the vm ?
Well, I would assume that if I can save a SnapShot of my host machine outside of the system, I should be able to save one outside of the vm too. Wiz offered to show me how to exclude the vm's from SnapShots of my host machine.
 
Sherri,

What have you done now...don't use Timeshift in a VM...it's a waste of time as there is a much better way to save your VM but that's another story.

To the problem at hand...how to increase the size of your VM...the easy way.

Go to File...Virtual Media Manager...Select your VM...In Description you will see a Slider.
Move the Slider to the right to Increase size of VM or left to decrease size of VM.

1745278673392.png


Hope this helps.
1745278787465.gif
 
Well that's the way I do it and it works...no need to do anything else.

The idea is to create a VM with more space than needed...so you won't have problems but you created a Timeshift snapshot which isn't necessary.

My win 7 VM was installed only once 9 years ago...when I do a clean install I Import it from an External HDD. It's now running in Virtualbox 7...no need to back it up any other way.
1745280816286.gif
 
dpkg: warning: while removing virtualbox-7.1, directory '/usr/lib/virtualbox' no
t empty so not removed


Does this mean the virtualbox left things behind in a directory because other packages also have things stored there too? If so, how do I get rid of the rest of it?
That means that you didn't delete your virtual drives. You can delete them after the fact with sudo, but be careful.

I use KVM but, honestly, if Oracle VirtualBox works for you I don't see why you should change. These things, although interesting, may be adding some friction you don't need.
 


Members online


Top