我试图使用虚拟机管理器在vm中安装Ubuntu。

然而,我确实得到了以下错误,这使我相信,我没有指出正确的网址。

手动选择Ubuntu 20.04 LTS作为操作系统可以让我回答更多的问题,但最终还是失败了。

我读过virt-install手册,其中说:
-l, --location
Syntax: -l, --location OPTIONS
Distribution tree installation source. virt-install can recognize certain distribution trees and fetches a bootable kernel/initrd pair to launch the install.
--location allows things like --extra-args for kernel arguments, and using --initrd-inject. If you want to use those options with CDROM media, you can pass the ISO to --location as well which works
for some, but not all, CDROM media.
The LOCATION can take one of the following forms:
https://host/path
An HTTP server location containing an installable distribution image.
ftp://host/path
An FTP server location containing an installable distribution image.
ISO Extract files directly from the ISO path
DIRECTORY
Path to a local directory containing an installable distribution image. Note that the directory will not be accessible by the guest after initial boot, so the OS installer will need another
way to access the rest of the install media.
Some distro specific url samples:
Fedora/Red Hat Based
https://download.fedoraproject.org/pub/fedora/linux/releases/29/Server/x86_64/os
Debian https://debian.osuosl.org/debian/dists/stable/main/installer-amd64/
Ubuntu https://us.archive.ubuntu.com/ubuntu/dists/wily/main/installer-amd64/
Suse https://download.opensuse.org/pub/opensuse/distribution/leap/42.3/repo/oss/
Additionally, --location can take 'kernel' and 'initrd' sub options. These paths relative to the specified location URL/ISO that allow selecting specific files for kernel/initrd within the install
tree. This can be useful if virt-install/ libosinfo doesn't know where to find the kernel in the specified --location.
For example, if you have an ISO that libosinfo doesn't know about called my-unknown.iso, with a kernel at 'kernel/fookernel' and initrd at 'kernel/fooinitrd', you can make this work with:
--location my-unknown.iso,kernel=kernel/fookernel,initrd=kernel/fooinitrd由此,我得出https://se.archive.ubuntu.com/ubuntu/dists/focal/main/installer-amd64/应该是一个有效的url,但它不起作用。
我已经在文件夹结构中单击了更深的部分,并且希望/猜到我在图片中尝试的url将是好的(即https://se.archive.ubuntu.com/ubuntu/dists/focal/main/installer-amd64/current/legacy-images/netboot/ubuntu-installer/amd64/),但是行为是相同的。
这个网址应该是什么?这不再是一个有用的功能了吗?
发布于 2022-12-23 07:35:53
从下载的ISO安装工作。
Drop TLS,它适用于焦距:http://se.archive.ubuntu.com/ubuntu/dists/focal/main/installer-amd64
Jammy似乎已经完全重组了安装程序,所以我仍然无法确定要为它使用哪个url。
http://se.archive.ubuntu.com/ubuntu/dists/jammy/main/installer-amd64/current/legacy-images/index.html态
尝试新Ubuntu安装程序,Legacy Ubuntu安装程序不再可用。
https://askubuntu.com/questions/1446772
复制相似问题