Tutorial: better integration of VirtualBox (Windows) into MX Linux (guide in steps)

Here is where you can post tips and tricks to share with other users of MX. Do not ask for help in this Forum.
Message
Author
User avatar
Duliwi
Posts: 1176
Joined: Sun Jul 07, 2019 9:34 am

Re: Tutorial: better integration of VirtualBox into MX Linux (guide in steps)

#11 Post by Duliwi »

@andyprough
I have not used it a lot until now.
But no, I have not corrupted my linux.
I have not lost a file.
I have not corrupted my Windows.

The only thing you have to look at is:
When you have started a lot of programs in your VM this way, in your "windows task manager" you will find several processes ""VBoxService.exe" and "conhost.exe".
So from time to time, maybe when you have used the VM 15-30 times, you have to close this processes in your "windows task manager". Or you can "shut down" your VM from time to time, instead of bringing the VM into "save state".

User avatar
andyprough
MX Packager
Posts: 918
Joined: Tue Jul 23, 2019 10:16 pm

Re: Tutorial: better integration of VirtualBox into MX Linux (guide in steps)

#12 Post by andyprough »

Seamless mode increases the CPU and overall resource usage substantially - for this reason alone I probably won't try the steps of this tutorial. What's your experience with CPU usage when running Virtualbox in this manner?
Primary Computer - Commodore 64: Processor - MOS 6510/8500, 1.023MHz; Memory - 64kb RAM, 20kB ROM - 8k BASIC V2, 8k Kernel, 4k Character ROM; Display output - 320x200, 16 colours; OS - BASIC V2.0; Weight: 1.8kg

User avatar
Duliwi
Posts: 1176
Joined: Sun Jul 07, 2019 9:34 am

Re: Tutorial: better integration of VirtualBox into MX Linux (guide in steps)

#13 Post by Duliwi »

It takes about the same amount of CPU like Wine does.
But of course: It takes much more RAM then Wine.

HTop with closed VirtualBox and closed VM:
CPU, RAM without VirtualBox.jpg

HTop with MS Word started in VB "Seamless mode" -> "IDLE":

Something between:
CPU, RAM after VirtualBox MS Word idle.jpg
and
CPU, RAM after VirtualBox MS Word idle 2.jpg

My System:
8 GB RAM.
Intel i5 Generation 4

(I don't want to force you to try this out.)

--------------------------------------------

Please note: In the file

Code: Select all

Windows7VM.sh
there is a line

Code: Select all

VBoxManage guestcontrol "Win7NeuFurOfficeVersuch" start ...
There would be an alternative command. It is

Code: Select all

VBoxManage guestcontrol "Win7NeuFurOfficeVersuch" run ...
The difference is the command start vs. run. When I take "run" instead of "start", then my cpu cores are permanently at 60% when the PC is idle.
So please let "Windows7VM.sh" unchanged and use the command "start".
You do not have the required permissions to view the files attached to this post.
Last edited by Duliwi on Thu Jan 21, 2021 4:35 pm, edited 1 time in total.

User avatar
andyprough
MX Packager
Posts: 918
Joined: Tue Jul 23, 2019 10:16 pm

Re: Tutorial: better integration of VirtualBox into MX Linux (guide in steps)

#14 Post by andyprough »

That's pretty good actually. MS Office on Wine and seamless mode Virtualbox normally make my machine run at between 25-50% CPU with some higher spikes. The fact that you are using Win7 and Office 10 may be helping - I'm using Win10 and Office 365.
Primary Computer - Commodore 64: Processor - MOS 6510/8500, 1.023MHz; Memory - 64kb RAM, 20kB ROM - 8k BASIC V2, 8k Kernel, 4k Character ROM; Display output - 320x200, 16 colours; OS - BASIC V2.0; Weight: 1.8kg

User avatar
Duliwi
Posts: 1176
Joined: Sun Jul 07, 2019 9:34 am

Re: Tutorial: better integration of VirtualBox into MX Linux (guide in steps)

#15 Post by Duliwi »

As said: It's when it's idle.
What PC machine do you have (hardware)?

User avatar
Duliwi
Posts: 1176
Joined: Sun Jul 07, 2019 9:34 am

Re: Tutorial: better integration of VirtualBox into MX Linux (guide in steps)

#16 Post by Duliwi »

Duliwi wrote: Thu Jan 21, 2021 12:52 pm @andyprough
The only thing you have to look at is:
When you have started a lot of programs in your VM this way, in your "windows task manager" you will find several processes ""VBoxService.exe" and "conhost.exe".
So from time to time, maybe when you have used the VM 15-30 times, you have to close this processes in your "windows task manager". Or you can "shut down" your VM from time to time, instead of bringing the VM into "save state".
-> It's solved with an update of "Windows7VM.sh".
No more need to close this processes in your "windows task manager" or to "shut down" your VM from time to time.

jonnken
Posts: 142
Joined: Thu Mar 14, 2019 12:22 pm

Re: Tutorial: better integration of VirtualBox into MX Linux (guide in steps)

#17 Post by jonnken »

andyprough wrote: Thu Jan 21, 2021 4:25 pm That's pretty good actually. MS Office on Wine and seamless mode Virtualbox normally make my machine run at between 25-50% CPU with some higher spikes. The fact that you are using Win7 and Office 10 may be helping - I'm using Win10 and Office 365.
It's the real "beauty" of Linux...low CPU usage. When I have a 500 row (100 column) spreadsheet open in LibraOffice, my CPU usage (Dell Optiplex 755) will just sit down around 2%. It spikes to 30-40 on task demands and then right back down. For the most part it just sits there in wait for the next commands.
Regards, jonnken...since Feb 2019
Dell Optiplex 7020...Intel i5-4690...500G HD...MX-23_x64

User avatar
andyprough
MX Packager
Posts: 918
Joined: Tue Jul 23, 2019 10:16 pm

Re: Tutorial: better integration of VirtualBox into MX Linux (guide in steps)

#18 Post by andyprough »

Duliwi wrote: Thu Jan 21, 2021 4:36 pm As said: It's when it's idle.
What PC machine do you have (hardware)?
I have a pretty new laptop with fast cpu and lots of ram and fast SSD. I want to tell you, I spent most of today with Virtualbox in Seamless mode, and the CPU usage was not much higher than in non-Seamless mode. I might have to try your steps after all - maybe Virtualbox has managed to improve Seamless mode to not be such a resource hog. Thanks for sharing this info, very useful and interesting.
Primary Computer - Commodore 64: Processor - MOS 6510/8500, 1.023MHz; Memory - 64kb RAM, 20kB ROM - 8k BASIC V2, 8k Kernel, 4k Character ROM; Display output - 320x200, 16 colours; OS - BASIC V2.0; Weight: 1.8kg

Post Reply

Return to “Tips & Tricks by users”