This commit is contained in:
zyimm 2023-03-07 16:42:17 +08:00
parent 5ea73e1726
commit 58978049c1

View File

@ -48,7 +48,11 @@ qemu-system-x86_64 -hda ./win10.img -cdrom win10.iso -boot d -enable-kvm -machi
**示例**
```sh
qemu-system-x86_64 -smp 1,sockets=1,cores=2,threads=2 -boot cd -hda /server/kvm-1.qcow2 -enable-kvm
```
`-enable-kvm` 基于内核的虚拟机尽心模拟,相对于纯软件模拟性能提升很多!建议开启
## cpu
@ -62,7 +66,6 @@ qemu-system-x86_64 -smp 1,sockets=1,cores=2,threads=2 -boot cd -hda /server/kvm
```sh
qemu-system-x86_64 -m 1GB -boot cd -hda /server/kvm-1.qcow2 -mem-path /dev/hugepages
```
## mem-path