透過 http 安裝時,用於 ubuntu 的正確 virt-install 位置 url 是什麼?

透過 http 安裝時,用於 ubuntu 的正確 virt-install 位置 url 是什麼?

我正在嘗試使用虛擬機器管理器在虛擬機器中安裝 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 會很好(即https://se.archive.ubuntu.com/ubuntu/dists/focal/main/installer-amd64/current/legacy-images/netboot/ubuntu-installer/amd64/),但行為是相同的。

url 應該是什麼?這不再是一個工作功能了嗎?

答案1

從下載的 ISO 進行安裝是可行的。

刪除 TLS,它適用於焦點:http://se.archive.ubuntu.com/ubuntu/dists/focal/main/installer-amd64

Jammy 似乎已經完全重組了安裝程序,所以我仍然無法弄清楚要使用哪個網址。

http://se.archive.ubuntu.com/ubuntu/dists/jammy/main/installer-amd64/current/legacy-images/index.html狀態

嘗試新的 Ubuntu 伺服器安裝程序

舊版 Ubuntu 伺服器安裝程式不再可用。

相關內容