Is there a way to push all available resources to the program(VirtualBox) when running Ubuntu?
You can give a process more CPU time relational to other processes by re-nice-ing it. For example, run
to get the
Then you can do:
"Niceness" ranges from -19 to 20; -19 is least-nice, meaning gets the most CPU time. 0 is the default.
The changed niceness only lasts as long as the process runs; it will no longer be in effect after quitting VirtualBox, for next time you run it. (So you'll have to do it again each time.)
I don't think you can change the amount of RAM given to a VirtualBox guest at runtime. This would need to be done before booting it, in the virtual machine configuration.