我正在尝试以与安装所有其他 KVM 来宾相同的方式安装 Ubuntu 20.04,方法是指定要安装的 Web 位置。看来无论我为location
参数输入什么网址,我都会收到以下错误:
错误 验证安装位置时出错:在http://us.archive.ubuntu.com/ubuntu/dists/focal/main/installer-amd64/current/legacy-images/netboot/ubuntu-installer/找不到可安装的发行版amd64/ '
我的命令的一个例子是:
qemu-img create \
-f qcow2 \
-o preallocation=metadata,lazy_refcounts=on \
/home/stuart/KVM-Command-Generator/vms/ubuntu-20/ubuntu-20.qcow2 15G
virt-install --connect qemu:///system \
--nographics \
--os-type linux \
--accelerate \
--hvm \
--network network=default,model=virtio \
--name ubuntu-20 \
--location http://us.archive.ubuntu.com/ubuntu/dists/focal/main/installer-amd64/current/legacy-images/netboot/ubuntu-installer/amd64/ \
--extra-args "console=ttyS0 ks=http://pastebin.com/raw/WxQygWpm" \
--disk /home/stuart/KVM-Command-Generator/vms/ubuntu-20/ubuntu-20.qcow2,bus=virtio,format=qcow2 \
--ram 1024 \
--vcpus 2
...但我在网络上尝试了很多不同的路径,还尝试直接指定 iso 图像。有没有人有一个有效的例子或知道我该如何解决这个问题?
语境
我尝试在 Debian 9 和 Debian 10 KVM 主机上执行此操作,结果相同。