大网数据广告活动
服务器运维问答

How to speed up QEMU on Windows host?

· 52CE 我爱测

We want to run our Ubuntu 64bit web server virtualized/emulated on a Windows 64bit host. Intended use is to distribute the VM to customers who might not have "elevated" or "admin" rights on the Windows machine. The system should …

问题原文

原帖链接 · Martin Heide · CC BY-SA 3.0

We want to run our Ubuntu 64bit web server virtualized/emulated on a Windows 64bit host. Intended use is to distribute the VM to customers who might not have "elevated" or "admin" rights on the Windows machine. The system should be portable, i.e. run from a USB pen drive.

Because of this restriction, we ended up with QEMU which does not require special Windows rights to run. The drawback is that the Linux system only reaches 1/10 of the speed compared to running it in Virtualbox.

Is there any way to speed up QEMU on Windows 64bit hosts?

  • I had a look at KQEMU, but it is a service, so it can't be started by "normal" Windows users. Additionally, it seems to be end-of-life and 64bit support is experimental.
  • The WinKVM project also seems to be no longer actively developed, and probably also requires admin rights on the Windows host.

This is my QEMU commandline, maybe someone sees a possibility for improvement:

"C:\Program Files\qemu-2.1.0\qemu-system-x86_64.exe"
-drive "file=C:\disk1.vmdk,index=0,media=disk"
-drive "file=C:\disk2.vmdk,index=1,media=disk"
-smp 4
-net nic,vlan=0,macaddr=52-54-00-B3-47-55,model=rtl8139
-net user,hostfwd=tcp::9000-:80
-m 1024

社区高分解答

原帖链接 · 0x1a4 · CC BY-SA 4.0

Go to "Turn Windows features on or off", and check the Windows Hypervisor Platform. Pass --accel whpx to QEMU. It works on my computer, and I don't have Pro or the May 2020 update.
If this is necroposting, sorry about that.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2014-08-22)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0 / CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。