Open DiWangShePi opened 4 months ago
The CPU resources may not be enough. You can modify the tdx-demo-run.sh in setting smp to 1.
Sorry for late response.
However, this solution has been checked before I raised this issue. When I try to start a 4-core virtual machine with Intel-TDX protection on a server with 48 CPU cores, I will also encounter the above error. So I think it may not just be a problem of insufficient CPU resources.
Well, I also ran it on a server with exactly 48 CPU cores. When I launched a 4-core QEMU, it raised the same error as what you had encountered. However, I tried to set smp
to 1, and I succeeded in launching. Perhaps you can just try to set smp
to 1? I think it doesn't waste so much time.
Unfortunately, the experimental environment I conducted required me to use a 4-core virtual machine.
In fact, sometimes I used smp=1
as it raised the same error, and sometimes I succeeded. But I always failed using smp=4
. I'm not sure the exact reason why you faced the error as you had checked my solution.
Oh, I missed some important information you mentioned at the very beginning. Perhaps it doesn't support multi-core VMs?
In the script provided in this repository, the running TDX virtual machine seems to be 1 core. I can start a multi-core virtual machine without TDX protection, but even a two-core TDX virtual machine will encounter the following error:
I have encountered this error at various stages of the virtual machine, when starting up, running and shutting down. The installation steps I referred to fully follow the relevant instructions in this repository, and the 1-core TDX virtual machine runs well. How should I go about troubleshooting the source of this issue?