Skip to content
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

[求助/Help] 如何让创建虚拟机使用 cpu 直通 #21814

Closed
loyalpartner opened this issue Dec 16, 2024 · 6 comments
Closed

[求助/Help] 如何让创建虚拟机使用 cpu 直通 #21814

loyalpartner opened this issue Dec 16, 2024 · 6 comments
Labels
question Further information is requested

Comments

@loyalpartner
Copy link

我接手 cloudpods 后 发现 qemu 的参数是 -cpu qemu64,
检查了 /etc/yunion/host.conf , 发现 host_cpu_passthrough 设置成了 false,

我修改成 true 后并重启了机器, 并新建了一台新的虚拟机, qemu 的 -cpu 参数 还是 qemu64

请问要怎么修改呢?

@loyalpartner loyalpartner added the question Further information is requested label Dec 16, 2024
@wanyaoqi
Copy link
Member

@loyalpartner
需要修改configmap kubectl edit cm -n onecloud default-host , 然后重启 host服务

@loyalpartner
Copy link
Author

@loyalpartner 需要修改configmap kubectl edit cm -n onecloud default-host , 然后重启 host服务

非常感谢!

@loyalpartner
Copy link
Author

@loyalpartner 需要修改configmap kubectl edit cm -n onecloud default-host , 然后重启 host服务

抱歉, 重启 host 服务是指 重启虚拟机吗

@zexi
Copy link
Member

zexi commented Dec 16, 2024

@loyalpartner 需要修改configmap kubectl edit cm -n onecloud default-host , 然后重启 host服务

抱歉, 重启 host 服务是指 重启虚拟机吗

重启default-host相关的 pod,kubectl rollout restart ds -n onecloud default-host

@loyalpartner
Copy link
Author

loyalpartner commented Dec 16, 2024

@loyalpartner 需要修改configmap kubectl edit cm -n onecloud default-host , 然后重启 host服务

抱歉, 重启 host 服务是指 重启虚拟机吗

重启default-host相关的 pod,kubectl rollout restart ds -n onecloud default-host

这个会影响已经运行的虚拟机吗? 我的意思是会不会导致已经运行的虚拟机重启

@wanyaoqi
Copy link
Member

不会

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants