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
Creating a VM with numa fails - Parameter -numa node,mem is not supported #1312
Comments
This looks like a libvirt <--> qemu mis-match where the domain XML is correct as far as libvirt is concerned but it's generating the wrong arguments when it in turn runs qemu. Can you grab the domain XML generated using |
Here is the generated domain xml config file. Should we report this to the libvirt team?
|
While there is no harm confirming my guess on what is happening, I suspect it will ultimately need to be reported to the distro rather than libvirt. I can't be completely sure, but I'd guess that the distro has updated qemu past the point of what is fully supported by the version of libvirt provided by the distro packages. For most this has no impact, just in this case making use of the one part that changed in qemu that is not backwards compatible. As I don't use this feature myself I can't be completely sure that the following is correct, which is why it might be worth asking about this on the libvirt mailing list.
One check we could look to try is see if we can boot a VM using an image matching your distro version when it was initially released and then see how booting a nested works, separately can check this against a few other recent distro releases and those should help in reporting to the distro assuming it confirms the issue. |
Running the provided Vagrantfile on ubuntu 20.04 works perfectly fine:
qemu:
Will spin up a buster image and install vagrant and then attempt to launch a nested VM to see if I can reproduce. |
I am using a recent version of qemu, installed from the official buster-backports repository
|
@hprem that's the problem I'd say, you need a more recent version of libvirt as well. I can successfully stand up the VM on vanilla debian 10:
With packages:
I'd guess that qemu 5.x has changed some of the command line options compared to what is used for numa nodes. If you can't backport a more recent version of libvirt, you can look at dropping the numa section:
And specify instead a qemuargs section:
That will allow you to pass through the corresponding args directly if you know the right combination. It's not ideal, but should allow you to work around the limitations of your current version of libvirt. It may not be sufficient because I don't know too much about what else might be needed for the memdev attribute to work as I'm assuming there is some additional device that must be defined for this. |
The other solution would be to boot a newer debian 11 as a VM with |
@electrofelix |
And to confirm, everything works perfectly fine with debian11. But I am stuck with using the stable version for now |
Issue
With numa_nodes specified in the Vagrantfile,
vagrant up
fails with the errorSteps to reproduce
Just do
vagrant up
with the below-mentioned VagrantfileExpected behaviour
VM should come up
Actual behaviour
vagrant up
failsSystem configuration
Debian
Libvirt version:
Output of
vagrant version; vagrant plugin list
:Attach Output of
VAGRANT_LOG=debug vagrant ... --provider=libvirt >vagrant.log 2>&1
A Vagrantfile to reproduce the issue:
Are you using upstream vagrant package or your distros package?
Upstream
The text was updated successfully, but these errors were encountered: