Doug’s Blog

Handily dispensing information to .00000001% of the world’s population

Archive for January, 2015

Problem using virsh-install with Debian ISO

Wednesday, January 14th, 2015

Doing a virsh-install with a debian image, specifically debian-7.8.0-amd64-netinst.iso, I was getting the following error:

ERROR Could not find an installable distribution at ‘/home/vm/debian-7.8.0-amd64-netinst.iso’

The location must be the root directory of an install tree.

After trying a number of things, including trying different path locations like /cdrom, it turns out the virsh-install command prefers “-c” instead of “–location” for this ISO! This is similar also to the WindowsXP ISO. So the following worked for me:

virt-install –name=vm_deb1 –ram=8192 –vcpus=1,cores=1 \

–disk path=/home/vm/vm_deb1.img,size=60 –network bridge=br0 \

-c /home/vm/debian-7.8.0-amd64-netinst.iso –os-type=linux –os-variant=debiansqueeze \

–graphics vnc,password=xxx,port=5901,listen=