[Solved] Lost space (and maybe memory) with Virtualbox

Fordebk

New Member
Joined
Mar 12, 2021
Messages
21
Reaction score
12
Credits
178
Hello,

I've tried to install Windows 10 on a virtual machine with Virtualbox (I need Office 365 for my work) on my Debian server (VPS).

So I've installed Virtualbox and then, on my vdb1 partition, I've allowed 50 Gb (on 100 Go) to this installation.

I've had error messages when I tried to launch my Windows (maybe I'll open another topic when this one will be solved). So, I've tried to solve it, but did not manage.

I've decided to delete this Windows part. But before, I've rebooted my Debian to see if things would be better. It didn't work, so I've deleted my virtual machine on virtual box.

When I go back on my vdb1 storage, it didn't exist anymore. I remember that I hadn't saved the mount on etc file. So, I've mounted again my vdb1. But I only have 50 Go free space. And virtualbox says me that no one virtualmachine exist anymore.

How can I take back my 50 Gb ?

I've tried lsblk and get that :

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sr0 11:0 1 558K 0 rom
vda 254:0 0 20G 0 disk
└─vda1 254:1 0 20G 0 part /
vdb 254:16 0 100G 0 disk
└─vdb1 254:17 0 100G 0 part /mnt/storage

As I did not understood, I've tried with parted :

sudo parted /dev/vdb1
GNU Parted 3.2
Using /dev/vdb1
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Model: Virtio Block Device (virtblk)
Disk /dev/vdb1: 107GB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Disk Flags:

Number Start End Size File system Flags
1 0.00B 107GB 107GB xfs

Everything looks clear, is it not ?

Furthermore, is it possible that I've got the same problem with my RAM ? I've allocated 2048 mb and since, my Debian seems to be slower. How does it work with a virtual machine, is there a way to know how many RAM is allocated and used right now by Debian ?

I've got this information about RAM, but I don't how read and understand that :

free -b
total used free shared buff/cache available
Mem: 6254989312 3718017024 963588096 114597888 1573384192 2156347392
Swap: 0 0 0

Thank you for watching this topic.
 
Last edited:


Everything looks clear, is it not ?

Furthermore, is it possible that I've got the same problem with my RAM ? I've allocated 2048 mb and since, my Debian seems to be slower. How does it work with a virtual machine, is there a way to know how many RAM is allocated and used right now by Debian ?

I've got this information about RAM, but I don't how read and understand that :



Thank you for watching this topic.
From the lsblk output your sdb disk is still 100G in total, not sure what you mean when you are saying you lost space?

About the RAM, you have got about 6G ram in your vps and about 3.7G used but using free -h will be easier to read without needing to convert it. VPS stands for Virtual Private Server, in other words your system is already a virtual machine. Running a virtual machine within a virtual machine the performance isn't going to be any good. If you need a Windows system for Office 365 rent a second VPS or create a virtual machine on your local system which you are used to connect to the internet.
 
Just a note, @DexTheDog -

First, do you mean GB instead of GO

GO amd MO are what the French use, could be the Swiss and others too. We have people from all around the world here.

:)

Wiz
 
From the lsblk output your sdb disk is still 100G in total, not sure what you mean when you are saying you lost space?

Thank you. About my space problem, I've just solved it.
In fact, there was a folder on my vdb1 disk space. And this folder was the virtual machine created by Virtualbox (which took 50 Gb on my 100 Gb). When I've deleted it, my free space on vdb1 has passed from 50 Gb to 100 Gb.

I did not notice this problem before because vdb1 was unmounted. This part is solved.

About the RAM, you have got about 6G ram in your vps and about 3.7G used but using free -h will be easier to read without needing to convert it.

Ok, I notice that, thanks again. This command line gives me :

free -h
total used free shared buff/cache available
Mem: 5.8Gi 1.1Gi 3.1Gi 144Mi 1.7Gi 4.3Gi
Swap: 0B 0B 0B

So, used + free = 4.2 Gi
But total = 5.8 Gi

Am I correct ? This difference could be due to the virtualmachine badly deleted ?

VPS stands for Virtual Private Server, in other words your system is already a virtual machine. Running a virtual machine within a virtual machine the performance isn't going to be any good. If you need a Windows system for Office 365 rent a second VPS or create a virtual machine on your local system which you are used to connect to the internet.

I didn't know. Thanks a lot ! So I will avoid this method. For what I've seen, there's nothing concluded to use Office 365 on Linux (specifically, Excel). It is still true ?

GO amd MO are what the French use, could be the Swiss and others too. We have people from all around the world here.

Indeed ! I hope my english is not too bad ;)
 
Ok, I notice that, thanks again. This command line gives me :

So, used + free = 4.2 Gi
But total = 5.8 Gi

Am I correct ? This difference could be due to the virtualmachine badly deleted ?

I didn't know. Thanks a lot ! So I will avoid this method. For what I've seen, there's nothing concluded to use Office 365 on Linux (specifically, Excel). It is still true ?
The virtual machine will only use it when it is turned on, when it's turned off that memory should become free again, I don't really want to get into calculations and values since I would have to look that up. When the virtual machine files are delete the disk space becomes free again as you already found out yourself.

The alternative would be wine but from what I can tell is that Office 365 products don't run great with wine.
 
You can also still use the web version of the Office 365 applications but that will not be enough in all cases.
 

Members online


Top