cockpit-project / cockpit-machines

Cockpit UI for virtual machines
GNU Lesser General Public License v2.1
303 stars 75 forks source link

Downloading certain Remote URLs fails to work #1933

Open logonoff opened 2 days ago

logonoff commented 2 days ago

I am trying to create a Windows 10 VM by having cockpit directly download the ISO from Microsoft, but it can't seem to be able to. The workaround I used was to download it using wget and then install with the local install media option

Version info

Steps to reproduce

  1. Open the "Create new virtual machine" form
  2. Set "URL (ISO image or distro install tree)" as the installation type
  3. Set https://software.download.prss.microsoft.com/dbazure/Win10_22H2_French_x64.iso?t=d15db065-bed7-4253-add6-8a097983842e&e=1683108181&h=c0ed4eb8dcc059733be249738495642b0cafbac4324f70ff354ed8debecbbbf2 as the installation source
  4. Set "Microsoft Windows 10 (10.0)" as the operating system
  5. Click "Create and run"

Expected result

The ISO proceeds to download and installation proceeds as normal

Actual result

An error toast pops up and the creation of the VM fails with the error

ERROR Unknown --location options: ['https://software.download.prss.microsoft.com/dbazure/Win10_22H2_French_x64.iso?t'] 
jelly commented 11 hours ago

It is passed to --location:

  -l LOCATION, --location LOCATION
                        Distro install URL, eg. https://host/path. See man page for specific distro examples.

So as far as I know this needs to be known in osinfo.