I had Windows 8 64bit which shows just 1 Virtual Core and 1 Socket in the task manager->Performance->CPU tab. I then tried Windows Server 2012 which shows 2 sockets and 2 Virtual Cores for the same flavor. So it must be some compatibility issue with KVM and certain versions of Windows.<br>
<br>Thanks for the response.<br><br>Regards,<br>Balu<br><br><div class="gmail_quote">On Tue, Mar 5, 2013 at 6:19 PM, Daniel P. Berrange <span dir="ltr"><<a href="mailto:berrange@redhat.com" target="_blank">berrange@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Tue, Mar 05, 2013 at 04:00:06PM +0530, Balamurugan V G wrote:<br>
> Hi,<br>
><br>
> I am running Folsom 2.2 with a KVM compute node. When I launch a windows<br>
> instance with flavor that has 2 VCPUs and 2Gb RAM, the guest seems the RAM<br>
> fine but not the 2 CPUs. It reports only one Virtual processor. Whne I look<br>
> at the command line options with which KVM has launched the instance, I see<br>
> that in -smp argument, sockets is set to 2 and core is set to 1. How can I<br>
> get the core to be 2 so that the guest OS can see it?<br>
<br>
There's nothing wrong with what the command line set here. It is<br>
simply configuring 2 vCPUS where each vCPU is represented as a<br>
separate socket to the guest, rather than what you describe which<br>
would be 1 socket with dual-cores.<br>
<br>
You don't mention what Windows version you are using, but some versions<br>
are not clever enough to switch between a uniprocessor config and SMP<br>
config. So if you installed those versions on a 1 CPU guest, then even<br>
if you later boot the image on 1 CPU guest, it won't see the extra CPUs.<br>
There are hacks you can do to "upgrade" a windows install from the<br>
uniprocessor to multiprocessor HAL - see the microsoft kbase for more<br>
info<br>
<br>
Regards,<br>
Daniel<br>
<span class="HOEnZb"><font color="#888888">--<br>
|: <a href="http://berrange.com" target="_blank">http://berrange.com</a>      -o-    <a href="http://www.flickr.com/photos/dberrange/" target="_blank">http://www.flickr.com/photos/dberrange/</a> :|<br>
|: <a href="http://libvirt.org" target="_blank">http://libvirt.org</a>              -o-             <a href="http://virt-manager.org" target="_blank">http://virt-manager.org</a> :|<br>
|: <a href="http://autobuild.org" target="_blank">http://autobuild.org</a>       -o-         <a href="http://search.cpan.org/~danberr/" target="_blank">http://search.cpan.org/~danberr/</a> :|<br>
|: <a href="http://entangle-photo.org" target="_blank">http://entangle-photo.org</a>       -o-       <a href="http://live.gnome.org/gtk-vnc" target="_blank">http://live.gnome.org/gtk-vnc</a> :|<br>
</font></span></blockquote></div><br>