Hi
I have the following issue when I will install a kvm VM system via the command, on an aarch64 system, and to use the same architecture as VM but
virt-install --name vm3 --memory 1024 --disk size=30 --arch aarch64 --debug --location http://download.opensuse.org/ports/aarch64/distribution/leap/15.2/repo/oss
but I got :
ven, 20 nov 2020 06:59:30 virt-install 2032] DEBUG (cli:208) Launched with command line: /usr/share/virt-manager/virt-install --name vm3 --memory 1024 --disk size=30 --arch aarch64 --debug --location http://download.opensuse.org/ports/aarch64/distribution/leap/15.2/repo/oss
[ven, 20 nov 2020 06:59:30 virt-install 2032] DEBUG (virt-install:207) Distilled --network options: ‘default’]
[ven, 20 nov 2020 06:59:30 virt-install 2032] DEBUG (virt-install:139) Distilled --disk options: ‘size=30’]
[ven, 20 nov 2020 06:59:30 virt-install 2032] DEBUG (cli:224) Requesting libvirt URI default
[ven, 20 nov 2020 06:59:30 virt-install 2032] DEBUG (cli:227) Received libvirt URI qemu:///system
[ven, 20 nov 2020 06:59:30 virt-install 2032] DEBUG (storage:140) Found default pool name=default target=/var/lib/libvirt/images
[ven, 20 nov 2020 06:59:30 virt-install 2032] DEBUG (storage:208) refreshing pool=default
[ven, 20 nov 2020 06:59:30 virt-install 2032] DEBUG (disk:225) Creating volume ‘vm3.qcow2’ on pool ‘default’
[ven, 20 nov 2020 06:59:30 virt-install 2032] DEBUG (disk:359) disk.set_vol_install: name=vm3.qcow2 poolxml=
<pool type=‘dir’>
<name>default</name>
<uuid>33e5c464-3ab0-441e-83e6-c4918c9dc949</uuid>
<capacity unit=‘bytes’>62230147072</capacity>
<allocation unit=‘bytes’>10587840512</allocation>
<available unit=‘bytes’>51642306560</available>
<source>
</source>
<target>
<path>/var/lib/libvirt/images</path>
<permissions>
<mode>0711</mode>
<owner>0</owner>
<group>0</group>
</permissions>
</target>
</pool>
[ven, 20 nov 2020 06:59:31 virt-install 2032] DEBUG (guest:466) Setting Guest osinfo name <_OsVariant name=generic>
[ven, 20 nov 2020 06:59:31 virt-install 2032] DEBUG (urlfetcher:104) Using scratchdir=/var/lib/libvirt/boot
[ven, 20 nov 2020 06:59:31 virt-install 2032] DEBUG (urldetect:286) Finding distro store for location=http://download.opensuse.org/ports/aarch64/distribution/leap/15.2/repo/oss
[ven, 20 nov 2020 06:59:32 virt-install 2032] DEBUG (urlfetcher:139) Fetching URI: http://download.opensuse.org/ports/aarch64/distribution/leap/15.2/repo/oss/.treeinfo
[ven, 20 nov 2020 06:59:32 virt-install 2032] DEBUG (urldetect:71) treeinfo family=openSUSE Leap
[ven, 20 nov 2020 06:59:32 virt-install 2032] DEBUG (urldetect:75) Found treeinfo version=15.2
[ven, 20 nov 2020 06:59:32 virt-install 2032] DEBUG (urldetect:79) Found treeinfo name=openSUSE Leap 15.2
[ven, 20 nov 2020 06:59:32 virt-install 2032] DEBUG (urldetect:300) Detected class=_LibosinfoDistro osvariant=opensuse15.2
[ven, 20 nov 2020 06:59:32 virt-install 2032] DEBUG (installer:400) installer.detect_distro returned=opensuse15.2
[ven, 20 nov 2020 06:59:32 virt-install 2032] DEBUG (guest:466) Setting Guest osinfo name <_OsVariant name=opensuse15.2>
[ven, 20 nov 2020 06:59:32 virt-install 2032] DEBUG (osdict:326) No recommended value found for key=‘n-cpus’, using minimum=1 * 2
[ven, 20 nov 2020 06:59:32 virt-install 2032] DEBUG (guest:798) Setting UEFI path=/usr/share/qemu/aavmf-aarch64-code.bin
[ven, 20 nov 2020 06:59:32 virt-install 2032] DEBUG (virt-install:648) Guest.has_install_phase: True
[ven, 20 nov 2020 06:59:32 virt-install 2032] DEBUG (cli:272)
Début d’installation…
Début d’installation…
[ven, 20 nov 2020 06:59:32 virt-install 2032] DEBUG (urlfetcher:269) HTTP hasFile request failed: 404 Client Error: Not Found for url: http://download.opensuse.org/ports/aarch64/distribution/leap/15.2/repo/oss/boot/x86_64/loader/linux
[ven, 20 nov 2020 06:59:32 virt-install 2032] DEBUG (urlfetcher:208) hasFile(http://download.opensuse.org/ports/aarch64/distribution/leap/15.2/repo/oss/boot/x86_64/loader/linux) returning False
[ven, 20 nov 2020 06:59:32 virt-install 2032] DEBUG (cli:263) File “/usr/share/virt-manager/virt-install”, line 1005, in <module>
sys.exit(main())
File “/usr/share/virt-manager/virt-install”, line 999, in main
start_install(guest, installer, options)
File “/usr/share/virt-manager/virt-install”, line 686, in start_install
fail(e, do_exit=False)
File “/usr/share/virt-manager/virtinst/cli.py”, line 263, in fail
log.debug("".join(traceback.format_stack()))
[ven, 20 nov 2020 06:59:32 virt-install 2032] ERROR (cli:264) Impossible de trouver le noyau pour l’arbre d’installation.
[ven, 20 nov 2020 06:59:32 virt-install 2032] DEBUG (cli:266)
Traceback (most recent call last):
File “/usr/share/virt-manager/virt-install”, line 659, in start_install
transient=options.transient)
File “/usr/share/virt-manager/virtinst/install/installer.py”, line 562, in start_install
self._prepare(guest, meter)
File “/usr/share/virt-manager/virtinst/install/installer.py”, line 266, in _prepare
unattended_script)
File “/usr/share/virt-manager/virtinst/install/installertreemedia.py”, line 268, in prepare
kernel, initrd = self._prepare_kernel_url(guest, cache, fetcher)
File “/usr/share/virt-manager/virtinst/install/installertreemedia.py”, line 208, in _prepare_kernel_url
kernelpath, initrdpath = _check_kernel_pairs()
File “/usr/share/virt-manager/virtinst/install/installertreemedia.py”, line 206, in _check_kernel_pairs
_(“Couldn’t find kernel for install tree.”))
RuntimeError: Impossible de trouver le noyau pour l’arbre d’installation.
[ven, 20 nov 2020 06:59:32 virt-install 2032] DEBUG (cli:278) L’installation du domaine ne semble pas avoir réussi.
Si elle a réussi, vous pouvez démarrer le domaine en lançant :
virsh --connect qemu:///system start vm3
sinon, recommencer l’installation.
L’installation du domaine ne semble pas avoir réussi.
Si elle a réussi, vous pouvez démarrer le domaine en lançant :
virsh --connect qemu:///system start vm3
sinon, recommencer l’installation.
Sorry about the french message in the text but it is my language.
My question is the following : why when I chosse the aarch64 the script wil seachr about a x86_64 file ??? according the below message
HTTP hasFile request failed: 404 Client Error: Not Found for url: http://download.opensuse.org/ports/aarch64/distribution/leap/15.2/repo/oss/boot/x86_64/loader/linux
My virt-install package :
nformations sur paquet virt-install :
Dépôt : Main Repository
Nom : virt-install
Version : 2.2.1-lp152.8.1
Architecture : noarch
Fabricant : openSUSE
Taille une fois installé : 107.2 KiB
Installé : Oui (automatiquement)
État : à jour
Paquet source : virt-manager-2.2.1-lp152.8.1.src
Résumé : Utilities for installing virtual machines
Description :
Package includes several command line utilities, including virt-install
(build and install new VMs) and virt-clone (clone an existing virtual
machine).