KVM virt-install 由于配置不受支持而无法安装虚拟机

KVM virt-install 由于配置不受支持而无法安装虚拟机

我的 ubuntu 服务器出现了问题,我在该服务器上安装了 kvm 和 virt-install,以便可以运行虚拟机。我尝试使用代码中显示的以下命令安装虚拟机,但出现不支持配置的错误。我还尝试将其安装在主目录中,因为我为虚拟机分配了一个特殊位置,如下所示。你能告诉我如何解决这个问题吗?

需要明确的是,安装未成功。

谢谢

kingdev@devpc:/home/kvmimages/ubuntu1$ sudo virt-install --name ubuntu-guest --os-variant ubuntu22.0 4 --vcpus 2 --ram 2048 --location http://ftp.ubuntu.com/ubuntu/dists/focal/main/installer-amd64/ --n etwork bridge-virbro, model=virtio --graphics vnc --disk path=/home/kvmimages/ubuntu1/ 
WARNING Graphics requested but DISPLAY is not set. Not running virt-viewer. 
WARNING No console to launch for the guest, defaulting to --wait -1 

Starting install... 
Retrieving 'linux' 
Retrieving 'initrd.gz' 
11 MB 00:00:10 49 MB 00:00:50 
ERROR unsupported configuration: storage type 'dir' requires use of storage format 'fat' 
Domain installation does not appear to have been successful. 
If it was, you can restart your domain by running: 
virsh --connect qemu:///system start ubuntu-guest 
otherwise, please restart your installation.

答案1

我知道这已经是很久以前的事了,但我刚刚遇到这个问题,发现这是由于 ISO 位于其自己的目录中。当我将 ISO 放入主目录并刷新列表时,问题完全消失了。您也可以将包含单个 ISO 的目录添加到源列表中,但我想让我的列表更短一些。

相关内容