2

I got some issues when running my Windows VM on Ubuntu 16.04 LTS, it seems that the VM is taking all the memory and CPUs and the system was slowed down really bad.

My Current System is,
Ubuntu 16.04 LTS Memory: 15.6 GiB Processor i7-5600U @ 2.6GHz x 4
My VM system is,
Windows 8.1 Pro Installed Memory: 8.00 GB System type : 64-bit
When running the VM, my system performance looks like the following graph,
enter image description here

And the configuration of my VM is, enter image description here

My machine runs really slow and the fan is much noisy than normal. By the way, my Windows is idling without running any program.

Does anyone have the similar issue?

Thank you in advance.

HaipengSu
  • 123
  • Whether the Virtualization is enabled within the BIOS? – pa4080 Sep 12 '17 at 20:39
  • 1
    @pa4080 I updated my post, and I think the Virtualization is enabled. – HaipengSu Sep 12 '17 at 20:52
  • @pa4080 yes. it is enabled for sure. – HaipengSu Sep 12 '17 at 21:03
  • 2
    In the guest OS settings, set the memory to 2048 and the CPU's = 2. Report back. – heynnema Sep 13 '17 at 00:30
  • @heynnema, you made a good point. I changed to 2CPUs and 4G, the performance for the Host OS is better. But the windows VM is much slower. I mean 4G 2CPU should be running well right? – HaipengSu Sep 13 '17 at 12:45
  • @HaipengSu 4G is probably still excessive. I'd go with 2048 and see how that works. The guest OS should work pretty good. I've made a quickie answer... maybe you can accept it if it was helpful. Thanks! – heynnema Sep 13 '17 at 15:06
  • Have you considered dual-booting? VM performance will never compete with bare metal and this approach would have the added benefit of allowing full utilization of your systems resources when you are forced to run Windows. – Elder Geek Sep 13 '17 at 15:44
  • @ElderGeek Thank you for the advice. However, Dual-boot is not an option for me since I need both systems running at the same time. – HaipengSu Sep 13 '17 at 16:59
  • Windows is a resource hog, whereas 16.04 is pretty lean by comparison (I actually have 16.04 running on a cheesy netbook with only 2GB and an Atom CPU). Be that as it may, you get to choose how to allocate the resources. I notice you have 6.4 GB swap in use along with 15.3 GB of your main memory. When you have more going on than you have resources to support you can expect things to slow down. – Elder Geek Sep 13 '17 at 17:12
  • I am not understanding about the Swap memory. When I stop the VM, the system is only using 2-4GB. and once I started the VM, it seems the VM takes all CPUs and memory. I guess one of the reasons is I set 4 cpus for the VM which is not good. – HaipengSu Sep 13 '17 at 17:26

1 Answers1

1

From the comments...

In the guest OS settings, by setting CPU=4 you've committed all of the CPU resources in your computer to the guest VM. Host operation will slow to a crawl. Generally speaking, you shouldn't commit more than half of the number of physical CPUs to a guest VM.

In the guest OS System settings, set the memory to 2048 and the CPU's = 2.

enter image description here

enter image description here

heynnema
  • 70,711