diff --git a/_posts/Linux/virtual/qemu-guide.md b/_posts/Linux/virtual/qemu-guide.md index 78df083..3a4cbb4 100644 --- a/_posts/Linux/virtual/qemu-guide.md +++ b/_posts/Linux/virtual/qemu-guide.md @@ -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