Linux running slowly in VirtualBox

Discussions about using Linux guests in VirtualBox.
Post Reply
Cydrobolt
Posts: 4
Joined: 5. Jan 2014, 21:08

Linux running slowly in VirtualBox

Post by Cydrobolt »

I have tried running Linux Guests in Virtualbox many times before. I've tried Ubuntu, Mint, and Fedora. Yesterday, I installed Fedora and booted it up. It was running very slowly, the mouse was lagging behind. The installation process was also very slow. On Ubuntu and Mint, it would hardly even install, after 5 hours of waiting. I am using the latest Virtualbox version (as of 1/5/2014).

My Specs:

Windows 7
AMD Quad Core CPU 3.7 Ghz
6 GB RAM

I gave one of my cores and 800MB of ram to the guest.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Linux running slowly in VirtualBox

Post by Perryg »

I would allow 2048MB of ram to the guest, enable 3D acceleration in the guest settings and install the guest additions. You also need to make sure that you have enabled hardware virtualization in the hosts bios.
Cydrobolt
Posts: 4
Joined: 5. Jan 2014, 21:08

Re: Linux running slowly in VirtualBox

Post by Cydrobolt »

Okay. I allocated more RAM and enabled 3d acceleration. I have an APU, I think AMD-V is enabled by default. There is no option to change that in the BIOS.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Linux running slowly in VirtualBox

Post by Perryg »

Post the guests log file ( as an attachment ) to verify if VT-x/AMD-v is available.
Cydrobolt
Posts: 4
Joined: 5. Jan 2014, 21:08

Re: Linux running slowly in VirtualBox

Post by Cydrobolt »

pastebin [dot] com/8v1sHE1t

(I can't post links)
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Linux running slowly in VirtualBox

Post by Perryg »

Hardware virt is enabled

Code: Select all

00:00:01.335692 HM: Guest support: 32-bit and 64-bit.
You boot from CD ( Live CD )

Code: Select all

00:00:03.882446 Guest Log: BIOS: Booting from CD-ROM...
You suspend ( saved state the live CD )

Code: Select all

00:38:23.258058 SSM: Successfully saved the VM state to 'C:\Users\Onyxdragon\VirtualBox VMs\Fedora x64\Snapshots\2014-01-05T19-07-22-811197300Z.sav'
00:38:23.258069 Changing the VM state from 'SAVING' to 'SUSPENDED'.
This would work a lot faster if you were to actually install the guest OS instead of running live off of the CD.
Cydrobolt
Posts: 4
Joined: 5. Jan 2014, 21:08

Re: Linux running slowly in VirtualBox

Post by Cydrobolt »

I did install the OS. I guess it didn't show in the log. That must've been before I installed it. The ISO image might still be loaded, but it's booting from the HDD.
trekkie0
Posts: 14
Joined: 3. Jan 2014, 08:23

Re: Linux running slowly in VirtualBox

Post by trekkie0 »

Cydrobolt wrote:I have tried running Linux Guests in Virtualbox many times before. I've tried Ubuntu, Mint, and Fedora. Yesterday, I installed Fedora and booted it up. It was running very slowly, the mouse was lagging behind. The installation process was also very slow. On Ubuntu and Mint, it would hardly even install, after 5 hours of waiting. I am using the latest Virtualbox version (as of 1/5/2014).

My Specs:

Windows 7
AMD Quad Core CPU 3.7 Ghz
6 GB RAM

I gave one of my cores and 800MB of ram to the guest.
Enabling I/O APIC and more than one core usually speeds things up on guests significantly, as well as increasing the RAM to at least 1024 MiB. If that doesn't work I've noticed that when guests are slow it can sometimes be because of something lagging on the Host. If it is all of your VMs, not just one, and if you have allocated sufficient resources to each one (without taking too many from the host), a restart of the Host and/or all of the VirtualBox processes can fix the problem. Check your resource usage on your Windows host by running "perfmon" (and then looking through all of the relevant resource counters). If it is high without any VBox guests running, the problem may be too few resources that can be allocated to the guest because they are already being used. If it isn't high, and everything else seems to check out, then you might want to restart the computer, reinstall VBox, and hope for the best.
~Love Life and Prosper~
Post Reply