Author Topic: QB64 problem with virtualized Xubuntu in Virtualbox  (Read 7491 times)

0 Members and 1 Guest are viewing this topic.

Offline samuele

  • Newbie
  • Posts: 12
    • View Profile
QB64 problem with virtualized Xubuntu in Virtualbox
« on: March 30, 2019, 10:33:16 am »
Hi everyone, I'm new here and tried to install QB64 on Xubuntu Linux virtualized with VirtualBox on macOS. I have found that by starting QB64 the Linux system becomes very slow and unstable with 100% CPU. Closing it all back to normal.
What could be the problem?

N.B.
I know I could try installing the MacOS version of QB64 but I need to use Linux.

Offline Ashish

  • Forum Resident
  • Posts: 630
  • Never Give Up!
    • View Profile
Re: QB64 problem with virtualized Xubuntu in Virtualbox
« Reply #1 on: March 30, 2019, 11:08:10 am »
Hi! I think in the settings of VM, you must provided half the number of cores you have. Also enable hardware acceleration. Also check that whether you are not giving more than half of RAM of your system.

Hope it helps.
if (Me.success) {Me.improve()} else {Me.tryAgain()}


My Projects - https://github.com/AshishKingdom?tab=repositories
OpenGL tutorials - https://ashishkingdom.github.io/OpenGL-Tutorials

Offline samuele

  • Newbie
  • Posts: 12
    • View Profile
Re: QB64 problem with virtualized Xubuntu in Virtualbox
« Reply #2 on: March 30, 2019, 12:28:22 pm »
My configuration is this:

Host system
macOS Mojave 10.14.4 on MacBook Pro 15 2018 TouchBar (6 core CPU, 16 GB RAM)

Guest system
Xubuntu on VirtualBox with this configuration:
RAM 1536 MB
CPU 2 of 12 Core
128 MB Video Memory
VMSVGA graphics card
3D acceleration enabled

There is something wrong? Do these settings seem to me to be enough to make everything work, or not?

Offline johnno56

  • Forum Resident
  • Posts: 1270
  • Live long and prosper.
    • View Profile
Re: QB64 problem with virtualized Xubuntu in Virtualbox
« Reply #3 on: April 02, 2019, 07:02:26 am »
Ok. Correct me if I am wrong... I usually am most of the time so it's ok to tell me... lol

You are running Linux via a vitual box on your mac and running qb64 in Linux? Did I get that right?

If so, if I may ask, why? QB64 has both stable and development versions of qb64 for mac... Just curious. Unless qb64 does not run on your current mac machine?
Logic is the beginning of wisdom.

Offline samuele

  • Newbie
  • Posts: 12
    • View Profile
Re: QB64 problem with virtualized Xubuntu in Virtualbox
« Reply #4 on: April 03, 2019, 04:18:54 am »
On my mac I have not tried. Currently, I'm learning Linux so I wanted to try QB64 on Xubuntu. That's all.

The IDE is starting up but lagging a lot. Same thing happens with Mint Xfce. It is impossible to write code in the QB64 window.

So I would like to report these issues to the developers.

Also I would like to ask which Linux distro works well with QB64? Or is it not stable on Linux?

Offline johnno56

  • Forum Resident
  • Posts: 1270
  • Live long and prosper.
    • View Profile
Re: QB64 problem with virtualized Xubuntu in Virtualbox
« Reply #5 on: April 03, 2019, 06:58:17 am »
I am using the 64 bit version of Linux Mint (based on ubuntu) and QB64 runs perfectly.

My guess is that you are trying Xubuntu and Mint Xfce in an effort to improve performance as both are "lightweight" and suited for low resource machines.

Are you trying Linux on another PC/laptop? Just curious.

Linux can run on pretty much any machine without actually installing it. Download an ISO image of Linux and burn it to a DVD. Instructions here: https://linuxmint-installation-guide.readthedocs.io/en/latest/burn.html or https://tutorials.ubuntu.com/tutorial/try-ubuntu-before-you-install#0 then boot your pc/laptop using the DVD and choose "try" when asked to install. Do NOT install - only "try". The dvd will place the Linux system in memory only and you can "test it".

Make sure you have the most recent stable version of QB64  (https://www.qb64.org/) or check with the guys on this forum for the best advice...

As a side note: May I ask why you want to use Linux?
Logic is the beginning of wisdom.

Offline jack

  • Seasoned Forum Regular
  • Posts: 408
    • View Profile
Re: QB64 problem with virtualized Xubuntu in Virtualbox
« Reply #6 on: April 03, 2019, 07:04:28 am »
I suspect that the problem is not linux but VirtualBox combined with the high graphic demand of MacOS Mojave
I have a mid-2010 Mac Pro with High Sierra and I use Parallels Desktop for virtualization, Ubuntu 18.04 runs ok for the most part
but Ubuntu 16.04 ran faster and more responsive, my recommendation use Ubuntu 16.04 http://releases.ubuntu.com/16.04/
« Last Edit: April 03, 2019, 07:29:04 am by jack »

FellippeHeitor

  • Guest
Re: QB64 problem with virtualized Xubuntu in Virtualbox
« Reply #7 on: April 03, 2019, 07:26:13 am »
Hello all. I'm sorry I didn't take part in this discussion earlier.

I'm a macOS user myself. I do most of my coding in a Windows environment though by using virtualization. I also do some testing in Linux by using virtualization as well.

I'm on macOS 10.14.4 (Mojave), which is the first iteration of 10.14 that allows QB64 to run properly. Our latest dev build also brings some fixes to allow smoother operation. Version 1.3 will be tagged as compatible as well.

My virtual machine software is VirtualBox, which is free and performs quite well. I have a Mac Mini (Late 2012), 2,3 GHz Intel Core i7, 16 GB 1600 MHz DDR3, Intel HD Graphics 4000 1536 MB.

I have two Windows virtual machines, one running Windows XP - my main coding environment - and one running Windows 10, to test when people report issues on that.

I have three Linux virtual machines: 64bit Debian, 64bit Ubuntu, 32bit Mint 19.

Here are the settings I currently use:

  • Windows XP machine: 32bit single processor, default paravirtualization, 2GB RAM, 128MB of video memory, 2D video acceleration only, CodeAudio ICH AC97, NAT Networking
  • Windows 10 machine: 64bit single processor, default paravirtualization, 6GB RAM, 256MB of video memory, both 2D and 3D acceleration, CodeAudio Intel HD, NAT Networking
  • Debian: 64bit single processor, default paravirtualization, 4GB RAM, 16MB of video memory, no 2D or 3D acceleration, CodeAudio ICH AC97, NAT Networking
  • Ubuntu: 64bit single processor, default paravirtualization, 4GB RAM, 128MB of video memory, 3D acceleration only, CodeAudio ICH AC97, NAT Networking
  • Mint 19: 32bit single processor, default paravirtualization, 2GB RAM, 128MB of video memory, 3D acceleration, CodeAudio ICH AC97, NAT Networking

All of that came to be by trial and error. Not saying it doesn't spin my fan sometimes when running QB64, but it works fine on all of them (only reason for me to have them after all).

Hope it helps.
« Last Edit: April 03, 2019, 07:27:30 am by FellippeHeitor »

Offline samuele

  • Newbie
  • Posts: 12
    • View Profile
Re: QB64 problem with virtualized Xubuntu in Virtualbox
« Reply #8 on: April 03, 2019, 09:42:34 am »
Are you trying Linux on another PC/laptop? Just curious.

I haven't tried Linux on other PCs. My computer is the MacBook Pro and I don't have the ability to use another PC.

Linux can run on pretty much any machine without actually installing it. Download an ISO image of Linux and burn it to a DVD. Instructions here: https://linuxmint-installation-guide.readthedocs.io/en/latest/burn.html or https://tutorials.ubuntu.com/tutorial/try-ubuntu-before-you-install#0 then boot your pc/laptop using the DVD and choose "try" when asked to install. Do NOT install - only "try". The dvd will place the Linux system in memory only and you can "test it".

Make sure you have the most recent stable version of QB64  (https://www.qb64.org/) or check with the guys on this forum for the best advice...

I'll try this too.

As a side note: May I ask why you want to use Linux?

Nothing fancy, I'm trying to learn Linux and BASIC programming.That's all.


Offline samuele

  • Newbie
  • Posts: 12
    • View Profile
Re: QB64 problem with virtualized Xubuntu in Virtualbox
« Reply #9 on: April 03, 2019, 09:43:33 am »
Hello all. I'm sorry I didn't take part in this discussion earlier.

I'm a macOS user myself. I do most of my coding in a Windows environment though by using virtualization. I also do some testing in Linux by using virtualization as well.

I'm on macOS 10.14.4 (Mojave), which is the first iteration of 10.14 that allows QB64 to run properly. Our latest dev build also brings some fixes to allow smoother operation. Version 1.3 will be tagged as compatible as well.

My virtual machine software is VirtualBox, which is free and performs quite well. I have a Mac Mini (Late 2012), 2,3 GHz Intel Core i7, 16 GB 1600 MHz DDR3, Intel HD Graphics 4000 1536 MB.

I have two Windows virtual machines, one running Windows XP - my main coding environment - and one running Windows 10, to test when people report issues on that.

I have three Linux virtual machines: 64bit Debian, 64bit Ubuntu, 32bit Mint 19.

Here are the settings I currently use:

  • Windows XP machine: 32bit single processor, default paravirtualization, 2GB RAM, 128MB of video memory, 2D video acceleration only, CodeAudio ICH AC97, NAT Networking
  • Windows 10 machine: 64bit single processor, default paravirtualization, 6GB RAM, 256MB of video memory, both 2D and 3D acceleration, CodeAudio Intel HD, NAT Networking
  • Debian: 64bit single processor, default paravirtualization, 4GB RAM, 16MB of video memory, no 2D or 3D acceleration, CodeAudio ICH AC97, NAT Networking
  • Ubuntu: 64bit single processor, default paravirtualization, 4GB RAM, 128MB of video memory, 3D acceleration only, CodeAudio ICH AC97, NAT Networking
  • Mint 19: 32bit single processor, default paravirtualization, 2GB RAM, 128MB of video memory, 3D acceleration, CodeAudio ICH AC97, NAT Networking

All of that came to be by trial and error. Not saying it doesn't spin my fan sometimes when running QB64, but it works fine on all of them (only reason for me to have them after all).

Hope it helps.

Thanks, I'll do some tests and let you know if it works.




Offline samuele

  • Newbie
  • Posts: 12
    • View Profile
Re: QB64 problem with virtualized Xubuntu in Virtualbox
« Reply #10 on: April 03, 2019, 09:44:44 am »
Can it be that I use 2 processors in VirtualBox?

What are the minimum system requirements to run QB64?
« Last Edit: April 03, 2019, 09:56:04 am by samuele »

FellippeHeitor

  • Guest
Re: QB64 problem with virtualized Xubuntu in Virtualbox
« Reply #11 on: April 03, 2019, 09:55:22 am »
Maybe.

Offline samuele

  • Newbie
  • Posts: 12
    • View Profile
Re: QB64 problem with virtualized Xubuntu in Virtualbox
« Reply #12 on: April 03, 2019, 10:43:18 am »
Here are the settings I currently use:

  • Windows XP machine: 32bit single processor, default paravirtualization, 2GB RAM, 128MB of video memory, 2D video acceleration only, CodeAudio ICH AC97, NAT Networking
  • Windows 10 machine: 64bit single processor, default paravirtualization, 6GB RAM, 256MB of video memory, both 2D and 3D acceleration, CodeAudio Intel HD, NAT Networking
  • Debian: 64bit single processor, default paravirtualization, 4GB RAM, 16MB of video memory, no 2D or 3D acceleration, CodeAudio ICH AC97, NAT Networking
  • Ubuntu: 64bit single processor, default paravirtualization, 4GB RAM, 128MB of video memory, 3D acceleration only, CodeAudio ICH AC97, NAT Networking
  • Mint 19: 32bit single processor, default paravirtualization, 2GB RAM, 128MB of video memory, 3D acceleration, CodeAudio ICH AC97, NAT Networking

What graphic environment do you use?

FellippeHeitor

  • Guest
Re: QB64 problem with virtualized Xubuntu in Virtualbox
« Reply #13 on: April 03, 2019, 11:15:37 am »
What graphic environment do you use?

Hm?

Offline samuele

  • Newbie
  • Posts: 12
    • View Profile
Re: QB64 problem with virtualized Xubuntu in Virtualbox
« Reply #14 on: April 03, 2019, 11:22:06 am »