Closed oleksandrborniak closed 5 years ago
It says unknown protocol 'http'
, somewhere back in my head I have information that only https
is allowed. I think that @KKoukiou or @skobyda would know for sure.
The same for "https".
Jun 20 10:57:28 fc.my-clouds.net libvirtd[992]: libvirt version: 5.1.0, package: 8.fc30 (Fedora Project, 2019-05-31-15:59:20, )
Jun 20 10:57:28 fc.my-clouds.net libvirtd[992]: Unable to read from monitor: Connection reset by peer
Jun 20 10:57:28 fc.my-clouds.net libvirtd[992]: internal error: qemu unexpectedly closed the monitor: 2019-06-20T07:57:28.223455Z qemu-system-x86_64: -drive file=https://download.fedoraproject.org:443/pub/fedora/linux/releases/29/Server/x86_64/iso/Fedora-Server-netinst-x86_64-29-1.2.iso,format=raw,if=none,id=drive-sata0-0-0,readonly=on: Unknown protocol 'https'
@oleksandrborniak could you please trying out the CLI command to create a VM with the same parameters? Something like:
# virt-install \
--name guest1-rhel7 \
--memory 2048 \
--vcpus 2 \
--disk size=8 \
--location http://example.com/path/to/os \
--os-variant rhel7
And of course replace with your iso link etc. Does it give you the same error?
@KKoukiou It has been done. I can provide you with access to this test environment, if you wish.
[root@fc tools]# /usr/bin/virt-install --connect qemu:///system --name Fedora29Test --os-variant fedora29 --memory 4096 --vcpus 1 --wait -1 --noautoconsole --noreboot --check path_in_use=off --disk path=/var/lib/libvirt/images/Fedora29Test.qcow2,device=disk,bus=virtio,readonly=off,shareable=off,driver_name=qemu --cdrom https://download.fedoraproject.org/pub/fedora/linux/releases/29/Server/x86_64/iso/Fedora-Server-netinst-x86_64-29-1.2.iso --graphics type=spice,listen=127.0.0.1 --graphics type=vnc,listen=127.0.0.1,port=-1
Starting install...
ERROR internal error: process exited while connecting to monitor: 2019-06-20T09:53:43.346774Z qemu-system-x86_64: -drive file=https://download.fedoraproject.org:443/pub/fedora/linux/releases/29/Server/x86_64/iso/Fedora-Server-netinst-x86_64-29-1.2.iso,format=raw,if=none,id=drive-sata0-0-0,readonly=on: Unknown protocol 'https'
Domain installation does not appear to have been successful.
If it was, you can restart your domain by running:
virsh --connect qemu:///system start Fedora29Test
otherwise, please restart your installation.
[root@fc tools]#
So, what's happening here is that the server you are using (although it's the official one) does not support "range" option. The "range" option is necessary so that qemu can "seek" on the cd image. If you tried with newer virt-install you would get better error message suggesting so, see bellow:
$ sudo virt-install --connect qemu:///system --name test --memory 1000 --cdrom http://download.fedoraproject.org/pub/fedora/linux/releases/29/Server/x86_64/iso/Fedora-Server-netinst-x86_64-29-1.2.iso --disk none
WARNING No operating system detected, VM performance may suffer. Specify an OS with --os-variant for optimal results.
Starting install...
ERROR internal error: process exited while connecting to monitor: 2019-06-20T11:53:26.696353Z qemu-system-x86_64: -drive file=http://download.fedoraproject.org:80/pub/fedora/linux/releases/29/Server/x86_64/iso/Fedora-Server-netinst-x86_64-29-1.2.iso,format=raw,if=none,id=drive-ide0-0-0,readonly=on: CURL: Error opening file: Server does not support 'range' (byte ranges).
Domain installation does not appear to have been successful.
If it was, you can restart your domain by running:
virsh --connect qemu:///system start test
otherwise, please restart your installation
So unfortunately your issue will not be resolved unless the fedora server gets configured to support "range" option. I will close this issue since this is not cockpit related, in fact it's not even virt-install related, the error comes from QEMU itself, which needs this option to be able to seek into the iso.
To get from cockpit UI successful installations either use a distro tree instead of iso media or find a server that supports the requirements or download the iso manually.
Cockpit version: cockpit-196 OS: fedora 30 Page: "Machines" Problem: can't create virtual machine