首先我安装了 qemu 和 kvm,然后使用...创建了一个映像
sudo qemu-img create -f qcow2 debian.img 15G
...当尝试加载 iso 文件时...
sudo kvm -hda debian.img kali-linux.iso -m 2048 -net nic -net user -soundhw all
然后出现这个错误...
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.80000001H:EDX.syscall [bit 11]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.80000001H:EDX.lm [bit 29]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.80000001H:ECX.svm [bit 2]
答案1
这里的iso文件是32位的,如果不指定,它将作为64位映像。所以删除kvm
并添加qemu-system-i386
之前-hda
。这将解决问题。
答案2
qemu-system-i386 -hda debian.img -cdrom kali-linux.iso -m 2048 -net nic -net user -soundhw all