What type of media contains the installation image

UnicsSol asked:

I have installed RHEV in one HP G9 blade. Now I want to create a guest VM with Linux. In order to proceed I have copied the image to RHEV machine and mounted that iso in /mnt/iso. I am using below command to install:

virt-install --accelerate --hvm --connect qemu:///system \
--network=bridge:control,model=virtio --ram=4096 --vcpus=2 --os-type=linux \
--os-variant=rhel5.4 --nographics --location=/mnt/iso --name=TestVM2 \
--extra-args='console=ttyS0' --disk none

--location=/mnt/iso is my mount point and the iso image is in /root .

I am getting blocked in below screen . Could anyone suggest how to proceed??

What type of media contains the installation image?
Local CD/DVD
Hard Drive
NFS Directory

My answer:

The problem is that you provided a directory to the --location option. When you do this, virt-install can only boot with the kernel/initrd in that directory, but the contents of the directory are not provided to the virtual machine.

The man page also warns about this:

               Path to a local directory containing an installable
               distribution image. Note that the directory will not be
               accessible by the guest after initial boot, so the OS installer
               will need another way to access the rest of the install media.

Using a directory for --location has this limitation, but other possible parameters do not.

If you intended to provide boot media to the virtual machine, you should instead provide the location of the ISO image. You do not need to mount the image. For example:

--location /var/lib/libvirt/isos/CentOS-6.10-x86_64-DVD.iso

View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.