Using virt-install to mount multiple cdrom drives/images
Posted
by Dana the Sane
on Super User
See other posts from Super User
or by Dana the Sane
Published on 2010-05-31T22:46:16Z
Indexed on
2010/05/31
22:55 UTC
Read the original article
Hit count: 590
I would like to create a windows xp guest from the windows xp upgrade cd I have, along with one of a few full versions I have around. However, when I reach the stage in the installer where I am prompted to insert a full version cd, the installer can't find it, i.e.:
Setup could not read the CD you inserted, or the CD is not a valid Windows CD..
Is there a work-around for this?, my Googling didn't uncover anything.
I've tried various combinations of mounting .iso files and specifying disks, such as:
$sudo virt-install --accelerate --connect qemu:///system -n xpsp1 -r 2048
--disk ./vm/winxp_sp1.iso,device=cdrom --disk ./vm/windows.qcow2,size=12
--vnc --noautoconsole --os-type windows --os-variant winxp --vcpus 2 -c /dev/cdrom
--check-cpu
If I try to specify multiple cdrom drives, I receive an error:
virt-install --accelerate --connect qemu:///system -n xpsp1 -r 2048
--disk ./vm/winxp_sp1.iso,device=cdrom --disk /dev/cdrom,device=cdrom
--disk ./vm/windows.qcow2,size=12 --vnc --noautoconsole --os-type windows
--os-variant winxp --vcpus 2 --check-cpu
Starting install...
ERROR IDE CDROM must use 'hdc', but target in use.
© Super User or respective owner