qemu-arm
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

virt-install on centos 7.9 not seeing qemu-aarch64?


From: Owen LaGarde
Subject: virt-install on centos 7.9 not seeing qemu-aarch64?
Date: Wed, 12 Jan 2022 06:32:53 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:68.0) Gecko/20100101 Thunderbird/68.12.1

I think I've missed something in the support packages enabling arch=aarch64 guests on a centos 7.9 host, such that virt-install won't accept an arch of 'aarch64' or 'arm' where ubuntu works fine.

I'm trying to create a Rocky 8 aarch64 guest on a centos 7.9 host, coming from an ubuntu host.  I have this working on a minimal popos at home just to verify I'm not insane.  The "real, at work" host does have to be centos 7 x86_64 though it will be replaced with rocky 8 x86_64 "soon".  The kicker:  I'd very much prefer to use virt-install because there's a large amount of pre-existing automation I'd have to rewrite otherwise.  I see the arm and aarch64 support added by the expected qemu-user (2.0.0-1.el7.6.x86_64) but virt-install won't use it(?).

Here's the process as currently written into the existing automation.  This works fine on the popos 21.10 minimal-plus-indicated-dpkgs, shouldn't be any surprises here (yes, there's some extra garbage on the centos side from my flailing about):

virt-install \
    --connect qemu:///system \
    --name apollo \
    --metadata title=apollo \
    --os-variant linux \
    --vcpus 4 \
    --ram 4096 \
    --arch aarch64 \
    --rng /dev/urandom \
    --nonetwork \
    --nographics \
    --noautoconsole \
    --controller type=scsi,model=virtio-scsi \
    --disk pool=apollo,size=20,format=raw,bus=scsi \
    --location /opt/kvm/media/Rocky-8.5-aarch64-dvd1.iso \
    --initrd-inject /opt/kvm/kickstart/Rocky8.cfg \
    --extra-args 'ks=file:/Rocky8.cfg console=ttyS0'

/opt/kvm/kickstart/Rocky8.cfg:

    auth --enableshadow --passalgo=sha512
    cdrom
    text
    cmdline
    poweroff
    firstboot --enable
    ignoredisk --only-use=sda
    keyboard --vckeymap=us --xlayouts='us'
    lang en_US.UTF-8
    eula --agreed
    firewall --enabled --service ssh
    services --disabled=kdump --enabled=sshd
    selinux --enforcing
    timezone America/New_York --isUtc
    bootloader --location=mbr --boot-drive=sda
    clearpart --drives=sda --all --initlabel
    part /boot --fstype='xfs' --_ondisk_=sda --size=1024 --label=boot
    part /boot/efi --fstype='efi' --_ondisk_=sda --size=1024 --fsoptions='umask=0077,shortname=winnt'
    part pv.357 --fstype='lvmpv' --_ondisk_=sda --grow
    volgroup centos --pesize=4096 pv.357
    logvol /home --fstype='xfs' --size=1024 --label='home' --name=home --vgname=centos
    logvol /usr/local --fstype='xfs' --size=1024 --label='local' --name=local --vgname=centos
    logvol / --fstype='xfs' --size=4096 --label='root' --name=root --vgname=centos
    logvol /var --fstype='xfs' --size=4096 --label='var' --name=var --vgname=centos
    logvol /opt --fstype='xfs' --size=1024 --label='opt' --name=opt --vgname=centos
    logvol /var/log --fstype='xfs' --size=1024 --label='log' --name=log --vgname=centos
    logvol swap --fstype='swap' --size=1024 --name=swap --vgname=centos
    logvol /var/log/audit --fstype='xfs' --size=1024 --label='audit' --name=audit --vgname=centos
    %packages
    @base
    @core
    yum-utils
    createrepo
    pciutils
    usbutils
    net-tools
    tcpdump
    psmisc
    %end
    %addon com_redhat_kdump --disable --reserve-mb='auto'
    %end
    %anaconda
    pwpolicy root --minlen=6 --minquality=1 --notstrict --nochanges --notempty
    pwpolicy user --minlen=6 --minquality=1 --notstrict --nochanges --emptyok
    pwpolicy luks --minlen=6 --minquality=1 --notstrict --nochanges --notempty
    %end

dpkg -l |egrep -i qemu\|libvirt\|aarch64 |awk '{print $2}'  ## popos
    gir1.2-libvirt-glib-1.0:amd64
    ipxe-qemu
    ipxe-qemu-256k-compat-efi-roms
    libnss-libvirt:amd64
    libsys-virt-perl
    libvirt-clients
    libvirt-daemon
    libvirt-daemon-config-network
    libvirt-daemon-config-nwfilter
    libvirt-daemon-driver-qemu
    libvirt-daemon-driver-storage-rbd
    libvirt-daemon-system
    libvirt-daemon-system-systemd
    libvirt-glib-1.0-0:amd64
    libvirt-glib-1.0-data
    libvirt0:amd64
    python3-libvirt
    qemu
    qemu-block-extra
    qemu-efi-aarch64
    qemu-efi-arm
    qemu-kvm
    qemu-system
    qemu-system-arm
    qemu-system-common
    qemu-system-data
    qemu-system-gui:amd64
    qemu-system-mips
    qemu-system-misc
    qemu-system-ppc
    qemu-system-s390x
    qemu-system-sparc
    qemu-system-x86
    qemu-utils

rpm -qa |egrep -i qemu\|libvirt\|aarch64  ## centos
    libvirt-gconfig-1.0.0-1.el7.x86_64
    libvirt-bash-completion-4.5.0-36.el7_9.5.x86_64
    qemu-system-arm-2.0.0-1.el7.6.x86_64
    libvirt-daemon-driver-storage-logical-4.5.0-36.el7_9.5.x86_64
    libvirt-daemon-driver-lxc-4.5.0-36.el7_9.5.x86_64
    libvirt-python-4.5.0-1.el7.x86_64
    qemu-common-2.0.0-1.el7.6.x86_64
    qemu-system-lm32-2.0.0-1.el7.6.x86_64
    libvirt-daemon-driver-storage-mpath-4.5.0-36.el7_9.5.x86_64
    qemu-system-xtensa-2.0.0-1.el7.6.x86_64
    libvirt-daemon-driver-nodedev-4.5.0-36.el7_9.5.x86_64
    libvirt-4.5.0-36.el7_9.5.x86_64
    qemu-system-alpha-2.0.0-1.el7.6.x86_64
    libvirt-libs-4.5.0-36.el7_9.5.x86_64
    libvirt-daemon-driver-storage-4.5.0-36.el7_9.5.x86_64
    libvirt-lock-sanlock-4.5.0-36.el7_9.5.x86_64
    qemu-guest-agent-2.12.0-3.el7.x86_64
    qemu-system-or32-2.0.0-1.el7.6.x86_64
    qemu-system-m68k-2.0.0-1.el7.6.x86_64
    libvirt-daemon-driver-storage-core-4.5.0-36.el7_9.5.x86_64
    libvirt-daemon-driver-storage-rbd-4.5.0-36.el7_9.5.x86_64
    qemu-img-1.5.3-175.el7_9.5.x86_64
    qemu-system-sh4-2.0.0-1.el7.6.x86_64
    libvirt-daemon-driver-storage-scsi-4.5.0-36.el7_9.5.x86_64
    libvirt-daemon-driver-network-4.5.0-36.el7_9.5.x86_64
    libvirt-nss-4.5.0-36.el7_9.5.x86_64
    qemu-kvm-common-1.5.3-175.el7_9.5.x86_64
    qemu-system-unicore32-2.0.0-1.el7.6.x86_64
    qemu-system-s390x-2.0.0-1.el7.6.x86_64
    libvirt-daemon-driver-storage-iscsi-4.5.0-36.el7_9.5.x86_64
    libvirt-daemon-config-network-4.5.0-36.el7_9.5.x86_64
    python36-libvirt-4.5.0-1.el7.x86_64
    qemu-system-cris-2.0.0-1.el7.6.x86_64
    qemu-system-mips-2.0.0-1.el7.6.x86_64
    libvirt-daemon-driver-nwfilter-4.5.0-36.el7_9.5.x86_64
    libvirt-daemon-driver-secret-4.5.0-36.el7_9.5.x86_64
    libvirt-daemon-driver-interface-4.5.0-36.el7_9.5.x86_64
    libvirt-client-4.5.0-36.el7_9.5.x86_64
    qemu-2.0.0-1.el7.6.x86_64
    qemu-system-x86-2.0.0-1.el7.6.x86_64
    libvirt-daemon-driver-storage-gluster-4.5.0-36.el7_9.5.x86_64
    qemu-kvm-1.5.3-175.el7_9.5.x86_64
    qemu-system-moxie-2.0.0-1.el7.6.x86_64
    libvirt-daemon-4.5.0-36.el7_9.5.x86_64
    libvirt-admin-4.5.0-36.el7_9.5.x86_64
    qemu-user-2.0.0-1.el7.6.x86_64
    libvirt-daemon-config-nwfilter-4.5.0-36.el7_9.5.x86_64
    qemu-kvm-tools-1.5.3-175.el7_9.5.x86_64
    ipxe-roms-qemu-20180825-3.git133f4c.el7.noarch
    qemu-system-microblaze-2.0.0-1.el7.6.x86_64
    libvirt-daemon-driver-storage-disk-4.5.0-36.el7_9.5.x86_64
    libvirt-daemon-driver-qemu-4.5.0-36.el7_9.5.x86_64

Packages added to the rpm side are the equivs of the dpkg side as far as I'm aware and as numerous docs/blogs/etc imply.  The /bin/qemu-{arm,aarch64} binaries are there, provided by the expected qemu-user package (2.0.0-1.el7.6.x86_64).  But virt-install throws the old "Host does not support any virtualization options for arch {arch}" for any of the expected arch values (arm, arm64, aarch64, etc).  Obviously I've missed a support package on the centos side, but what?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]