<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Feb 13, 2020 at 11:01 PM Cole Robinson <<a href="mailto:crobinso@redhat.com">crobinso@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 2/13/20 12:18 PM, Kaushal Shriyan wrote:<br>
> Hi,<br>
> <br>
> I am trying to set up alpine Linux Guest OS using the below command<br>
> <br>
> #virt-install --name=mfecdrupalalphine<br>
> --file=/linuxkvmguestosdisk/var/lib/libvirt/images/mfecdrupalalphine.img<br>
> --file-size=100 --nonsparse --vcpus=2 --ram=6096 --network=bridge:br0<br>
> --os-type=linux --os-variant=alpinelinux3.8 --graphics none<br>
> --location=/linuxkvmguestosdisk/var/lib/libvirt/isos/alpine-standard-3.11.3-x86_64.iso<br>
> --extra-args="console=ttyS0"<br>
> <br>
> Starting install...<br>
> Retrieving file .treeinfo...                                            <br>
>                                                                        <br>
>                                     |    0 B  00:00:00<br>
> Retrieving file content...                                              <br>
>                                                                        <br>
>                                     |    0 B  00:00:00<br>
> ERROR    Could not find an installable distribution at<br>
> '/linuxkvmguestosdisk/var/lib/libvirt/isos/alpine-standard-3.11.3-x86_64.iso':<br>
> The URL could not be accessed, maybe you mistyped?<br>
> <br>
> The location must be the root directory of an install tree.<br>
> See virt-install man page for various distro examples.<br>
> Domain installation does not appear to have been successful.<br>
> If it was, you can restart your domain by running:<br>
>   virsh --connect qemu:///system start mfecdrupalalphine<br>
> otherwise, please restart your installation.<br>
> <br>
> The iso file do exist as per the below details<br>
> ls -l<br>
> /linuxkvmguestosdisk/var/lib/libvirt/isos/alpine-standard-3.11.3-x86_64.iso<br>
> -rw-r--r-- 1 root root 127926272 Feb 12 17:49<br>
> /linuxkvmguestosdisk/var/lib/libvirt/isos/alpine-standard-3.11.3-x86_64.iso<br>
> #<br>
<br>
virt-instal doesn't know where to find the bootable kernel and initrd in<br>
the directory tree on the alpine iso. If you are using virt-install<br>
2.1.0 you can use --location<br>
$PATH,kernel=/relative/path/to/kernel,initrd=/relative/path/to/initrd<br>
where those paths are relative to the root of the ISO tree. Or try<br>
--cdrom $PATH, but then --extra-args won't work<br>
<br>
- Cole<br></blockquote><div><br></div><div><br></div><div>Thank Cole for the email. I am running CentOS Linux release 7.6.1810 (Core). Is there a way to install virt-install 2.1.0? </div><div><br></div>[root@~]#  cat /etc/redhat-release<br>CentOS Linux release 7.6.1810 (Core)<br>[root@~]#  yum whatprovides virt-install<br>Loaded plugins: fastestmirror<br>Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast<br>Loading mirror speeds from cached hostfile<br> * base: <a href="http://centos.excellmedia.net">centos.excellmedia.net</a><br> * extras: <a href="http://centos.excellmedia.net">centos.excellmedia.net</a><br> * updates: <a href="http://centos.excellmedia.net">centos.excellmedia.net</a><br>virt-install-1.5.0-7.el7.noarch : Utilities for installing virtual machines<br>Repo        : base<br><br><br><br>virt-install-1.5.0-1.el7.noarch : Utilities for installing virtual machines<br>Repo        : @base<br><br><br><br><div>[root@~]# </div><div><br></div><div>Thanks in advance. I look forward to hearing from you.</div><div><br></div><div>Best Regards,</div><div><br></div><div>Kaushal</div></div></div>