-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows 10 Pro disk and cpu scalability #372
Comments
Hello, Please make sure you use the latest cloudbase-init MSI from https://cloudbase.it/downloads/CloudbaseInitSetup_x64.msi, that should have the issue fixed. Thank you, |
Hi @ader1990 , |
Hello, The image generation tool and cloudbase-init are just some tools (applications) that do not interfere with OpenStack behaviour on how much CPUs it allocates to the virtual machine. The generated image is basically a .VHDX, and does not have such metadata. There are, of course, ways to limit the CPUs seen by Windows using the bcd configuration, but windows-imaging-tools or cloudbase-init does not configure any of those settings. Considering that your OpenStack compute nodes are Linux nodes, can you provide the following output if possible, for one Windows VM instance: ps auxf | grep -i kvm. There, we can clearly see how many CPUs were allocated. At the same time, a screenshot from the Task Manager for that said Windows VM from above. A KVM Virtual Machine has a corresponding qemu-kvm process (only one). This will help to clear the issue. Thank you. |
I see what you mean, that is weird. If you create a Linux with the same flavor / vm settings, same CPU configuration is seen by Linux? From the docs https://linux.die.net/man/1/qemu-kvm: -smp n[,cores=cores][,threads=threads][,sockets=sockets][,maxcpus=maxcpus] Maybe there is an issue with specifying the smp params? Thank you. |
I think what happens is that the qemu-kvm params do not properly match the CPU / SOCKET you have and it might be the issue in this situation, as you are using KVM and not the software virtualization. Still, it would make sense only if also the Linux VM with same config sees the same topology as the Windows. If Linux see the same topology, it is clearly an error on the KVM configuration or a bug. |
Windows 10 Pro only support two CPU sockets max. That is a product limitation and has nothing to do with how you're generating the image. Your kvm command has sockets=4 which is why you're not seeing all the vCPU. I don't know how it's done but if you can configure OpenStack to present more cores per socket you can get more vCPU into your VM (like -smp 4, sockets=2) |
Thank you for your response. At the moment, I am not working with OpenStack anymore. I hope your solution is fine. |
I have created a windows 10 pro cloud image using cloud-init and VirtIO drivers and followed the provided instructions on OpenStack website. Moreover, I installed win10 drivers and followed all steps very carefully during my installation process. However, when I create a new instance in OpenStack (Devstack stable/yoga), the disk size and the number of CPU cores don't change based on the provided flavor configurations, and it follows the preliminary configurations during the image creation phase. Moreover, if the given root disk size is bigger than the default image root disk size, the extra disk size will be assigned to the new instance as unallocated space, and you cannot even assign it manually to the root disk.
During the instance login process, I also seed the following error in the logs:
Last, I tested the windows server 12 cloud image provided by cloud base website, and it worked fine. I should mention that my image format is qcow2. Please let me know how I can solve this problem.
The text was updated successfully, but these errors were encountered: