ERROR Couldn't find hvm kernel for SUSE tree

edited May 2020 in SLES Virtualization

We are trying to install SUSE virtual machine using virt-install. Used the below command for installation.

_virt-install --network type=bridge,source=virbr0 --name Redhat --ram=4096 --vcpus=8 --disk path=/var/lib/libvirt/images/Suse_new.qcow2,format=qcow2,bus=virtio,size=40 --graphics none --location=./SLE-12-SP5-Server-DVD-x86_64-RC2-DVD2.iso --extra-args="console=tty0 console=ttyS0,115200" --check all=off --os-variant sles12
_
I was getting the error

ERROR Couldn't find hvm kernel for SUSE tree.

It was suggested in community forums to use "--cdrom" option instead of "--location" to install this iso image. Installing with --cdrom option successfully completes the installation, but there is no option in cdrom installation to provide '--extra-args=" so we are unable to get console access to the installed virtual machine. What could be the reason the iso image does not support installation with "--location".

It would be of great help if anybody could suggest an iso image that supports installation with --location flag so we could connect to the VM using command line.

Comments

  • malcolmlewismalcolmlewis Knowledge Partner
    edited May 2020

    Hi
    A couple of questions, name Redhat? you have the wrong media (DVD2 contains the source rpms), it should be SLE-12-SP5-Server-DVD-x86_64-GM-DVD1.iso Use the full path to the media location you have ./SLE-...

    For qemu I use the following;

    -drive file=/stuff/iso_images/SLE_15/SLE-15-SP1-Installer-DVD-x86_64-GM-DVD1.iso,index=1,media=cdrom
    
Sign In or Register to comment.