gpt4 book ai didi

linux - qemu:通过 ISO 安装 ubuntu 卡住,显示 "SVM"CPU 位警告

转载 作者:行者123 更新时间:2023-12-04 18:39:33 24 4
gpt4 key购买 nike

我正在尝试使用以下命令在我创建的 qcow2 镜像之一中安装 ubuntu

sudo qemu-system-x86_64 -enable-kvm -nographic -smp 8 -m 8G -cpu qemu64 -cdrom ubuntu-19.10-live-server-amd64.iso -boot d ubuntu-19.10-live-server-amd64.qcow2

首先它会发出警告,然后就挂起
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.80000001H:ECX.svm [bit 2]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.80000001H:ECX.svm [bit 2]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.80000001H:ECX.svm [bit 2]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.80000001H:ECX.svm [bit 2]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.80000001H:ECX.svm [bit 2]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.80000001H:ECX.svm [bit 2]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.80000001H:ECX.svm [bit 2]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.80000001H:ECX.svm [bit 2]
SeaBIOS (version 1.13.0-1ubuntu1)


iPXE (http://ipxe.org) 00:03.0 CA00 PCI2.10 PnP PMM+BFF8C9F0+BFECC9F0 CA00



Booting from DVD/CD...

ISOLINUX 6.04 20190226 ETCD Copyright (C) 1994-2015 H. Peter Anvin et al
Loading bootlogo...

Initializing gfx code...

我进行了很多搜索,得到了许多解决方案和可能的问题,但没有一个奏效。

1) 也尝试过使用 Ubuntu 20,但同样的错误。

2) VT-x 未启用。

它已启用, lscpu节目
Virtualization:                  VT-x
Hypervisor vendor: KVM
Flags: .. vmx ..

3) 尝试 -cpu qemu64 .不工作

4) 使用 qemu-system-i386而不是 qemu-system-x86_64 .但这失败了一个不同的错误
This kernel requires an x86-64 CPU, but only detected an i686 CPU.
Unable to boot - please use a kernel appropriate for your CPU.

5)我确实发现“SVM”CPU位对应于“AMD安全虚拟机”,这让我很困惑,因为我的CPU是Haswell。

帮助!

最佳答案

我发现了问题所在。

使用嵌套虚拟化时,选项 -cpu host作品。这建议 qemu 使用与主机相同的 cpu 格式,在我们的例子中,它也是一个 VM,并且大部分也将使用主机 CPU 格式。

上述设置有效,

除非;您在 virtualbox 上使用嵌套虚拟化,并尝试在 VM 上运行 qemu。然后,要完成这项工作,我们必须跳过 enable-kvm-cpu完全的选择。它确实使 qemu VM 运行缓慢,但它可以工作。

关于linux - qemu:通过 ISO 安装 ubuntu 卡住,显示 "SVM"CPU 位警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61864520/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com