LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 06-11-2016, 03:14 AM   #1
ChronicUser
Member
 
Registered: Mar 2015
Posts: 31

Rep: Reputation: Disabled
KVM windows guest see only one CPU core


I do believe this question has been posted before not only here but on other Linux forums as well.
However I could not implement the solutions, I am probably missing something obvious.

KVM
Host: Fedora 23
1. Guest: Windows 10 UEFI
2. Guest: Windows 10 UEFI

Host machine has 3 GPU's plugged in and I have managed to pass two to the VM's, and that part works just fine. Although I did not manage to pass AMD cards to the VM's as the driver kept crashing the VM, the two nvidia cards I have now seam to work just fine without problems.

Now the problem is that on a Windows 10 VM, no matter what I do I can not get it to use more then one CPU core.

Tried configuring it via virt manager, tried editing the XML file, but no matter what, the VM uses only one core even though I can see more then one CPU in the Device manager on the VM.

Could anyone please help me out?

Thank you for your time.
 
Old 06-11-2016, 08:33 AM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
It may depend on the Windows license.

Microsoft has been moving to a per core licensing model - and it won't use more than what the license says.
 
Old 06-11-2016, 11:50 AM   #3
ChronicUser
Member
 
Registered: Mar 2015
Posts: 31

Original Poster
Rep: Reputation: Disabled
Are you serious? Well there is a reason I moved away from windows a long time ago.
At the moment I am using their trial version windows 10 but I ll go and see if I can use the one with the CD and see if it will work then.
 
Old 06-11-2016, 06:46 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,998

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
You may not need to allocate cores to a vm. They are getting better about using resources. Just add in all that you have usually.

Anyway, I'd boot to a linux iso to see if you did in fact offer the client that you wanted to add. Also you may have to look at your host system for some settings that may affect this. Not all computers are defaulted with VM technologies enabled.

As jpollard notes, we don't know what you have in Windows 10. Some of the online web so called free versions will not support all hardware.
 
Old 06-11-2016, 07:09 PM   #5
ChronicUser
Member
 
Registered: Mar 2015
Posts: 31

Original Poster
Rep: Reputation: Disabled
Okay I managed to fix it.

Solution 1: Have a licences windows 10 pro and it works just fine.

Note:
Linux guest does not have any of these problems, you can assign cores to it no problems

Also how stupid is it that the trial version does not include so many options, if you did not mention this to me it would have never occurred to me.

@jefro
There is nothing wrong with KVM and resource allocation it works like a charm with a Linux guest and host. The problem is windows licences as far as I could figure it out.

If I did not need a windows VM I would never even touch it.
Thank you so much for your time and effort.

Last edited by ChronicUser; 06-11-2016 at 07:17 PM.
 
Old 06-12-2016, 06:06 AM   #6
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
As a last note - one of the few supercomputers (some years ago) could not make use of all the CPUs available in the hardware...

Turned out a Windows license manager stopped it.

Linux has no such artificial limitations, thus turned in a top 500 rating.

License problems are just one of the issues that pretty much killed Windows on supercomputers (cost is a big one).

I ran across this in one of the older (and no, I don't remember which one) top500 lists.
 
Old 06-12-2016, 08:57 AM   #7
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,783

Rep: Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214
Try setting the processor topology to 1 socket, 2 cores. Your Windows license probably limits you to one socket, but should allow more than one core.
 
Old 06-12-2016, 11:18 AM   #8
ChronicUser
Member
 
Registered: Mar 2015
Posts: 31

Original Poster
Rep: Reputation: Disabled
It is solved I just applied a licence key.
 
Old 06-13-2016, 03:56 PM   #9
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,998

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
I've never had that issue on their server platforms. Install works with all cores.


Maybe some new feature to Windows 10?

Anyway, thanks for the update and solution.
 
Old 06-17-2016, 01:54 PM   #10
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
Quote:
Originally Posted by jefro View Post
I've never had that issue on their server platforms. Install works with all cores.


Maybe some new feature to Windows 10?

There has always been limitations, with cheaper editions being limited to less RAM, CPU cores etc. https://www.microsoft.com/en-us/down...ldownloads_all

That's, btw, not only about the OS, MSSQL express, for example, is also limited to 4GB RAM and a single CPU core, you want more - pay up.
 
Old 06-17-2016, 02:17 PM   #11
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Quote:
Originally Posted by dyasny View Post
There has always been limitations, with cheaper editions being limited to less RAM, CPU cores etc. https://www.microsoft.com/en-us/down...ldownloads_all

That's, btw, not only about the OS, MSSQL express, for example, is also limited to 4GB RAM and a single CPU core, you want more - pay up.
It is just another way to charge for no additional work.

http://arstechnica.com/information-t...ket-licensing/
http://www.networkworld.com/article/...rver-2012.html
 
Old 06-17-2016, 05:38 PM   #12
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,998

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
I know there has always be limitations. The OP stated that only a single cpu was working until he applied license.
 
Old 06-18-2016, 06:44 AM   #13
ChronicUser
Member
 
Registered: Mar 2015
Posts: 31

Original Poster
Rep: Reputation: Disabled
Even though I solved the problem with licences, I did call Microsoft in regard to this just to have an additional conformation, but they would not shed any light on the matter.

Anyway Windows 10 pro licence gave me the ability for a single socket and multiple core.
I ll go ahead and see if I can get my hands on 2012 R2 Windows server licence just to see if it will recognize more then then one socket by default from the topology of the KVM.

In addition I have been running 2 Windows 10 Pro VM on Fedora

Here are some of the problems that I have encountered, some of them I ve solved some of them still bug me.

1. EvilTouch graphics pad is good for productivity work but if you intend to play a game on a VM you will need either a USB pass-through of a mouse or a Generic USB mouse selected instead of an EvilTouch graphics pad.
Why?
In the the game unless you use one of the two stated options your mouse movement will be unpredictable and it will spin around.

2. Machines were going to sleep unexpectedly due to lack of disk space in the default location where the images were made.
Solution: Create the images there then move them to a diffrent location. That is what I did anyway.
Note: If you create the disk images outside of the default folder they are labelled to run in unconfined mode by SELINUX, when created in the default location they have a proper SELINUX label then.

3. SELINUX will prevent USB pass-though unless you either put it in permissive mode or configure SELINUX to allow for this to happen.



Current Problems:

1. Unable to get sound to work on the Windows VM's

2. Occasionally windows VM's crash and the entire gui crashes on the host system, in addition keyboard and mouse also freeze, the crash is unrecoverable and I have to perform a reboot of the host system. I suspect that it has something to do with the USB pass through and grabbing and releasing the USB mouse, from what I managed to conclude from the log files of libvirt.


Other then the stated everything else seams to work just fine.
I am able to run 2 VM's on a Fedora 23 host system and play games on both of them at the same time with pretty good FPS(50 min) on Ultra settings.

I know that it is perhaps a wrong place to ask but does any one have any experience with this sort of set up, at the moment I am trying to resolve these 2 issues and I am looking for custom solutions for GPU cooling to reduce the the overall space that the stock coolers take on the graphics cards so that I can attempt to plug two more in and see how that works out.

After I managed to get the most things working I ll make sure to make a video or a guide listing the steps for this set up and all the problems that I have encountered so that other people who use a sane, normal, secur and functional OS(LINUX) do not have to go about bashing their skulls against the wall in order to achieve this.
 
Old 06-18-2016, 07:55 AM   #14
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,783

Rep: Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214
Quote:
Originally Posted by ChronicUser View Post
Anyway Windows 10 pro licence gave me the ability for a single socket and multiple core.
I'm running single socket and multiple cores just fine on a Windows 10 VM installed with a Windows 7 Home Premium product key. No "Pro" needed.
 
Old 06-18-2016, 08:33 AM   #15
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Quote:
Originally Posted by rknichols View Post
I'm running single socket and multiple cores just fine on a Windows 10 VM installed with a Windows 7 Home Premium product key. No "Pro" needed.
Windows 7 doesn't have the same restrictions that Windows 10 has.
 
  


Reply

Tags
cpu, fedora, guest, kvm, windows



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Best way to pause KVM/QEMU windows guest abdulmoeed Linux - Virtualization and Cloud 2 07-30-2015 05:44 AM
qemu really slow with kvm cpu and 9x guest. Help! Holering Linux - Software 4 05-23-2014 03:31 PM
[SOLVED] Linux guest only shows one cpu core billotronic Linux - Virtualization and Cloud 10 01-07-2013 08:41 AM
KVM: Mouse under Windows Guest performs way better than under Centos Guest martdj Linux - Virtualization and Cloud 3 03-29-2010 04:20 AM
Are KVM guest able to use CPU features ? PlatinumX Linux - Hardware 1 01-03-2009 09:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 10:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration