On Tue, May 05, 2020 at 03:14:25PM +0100, Richard W.M. Jones wrote: > On Sun, May 03, 2020 at 03:31:38PM +0530, Harsh chopra wrote: > > Hi everyone, > > I was trying to install Centos 2.1 on the virtual machine, > > Ambitious! Note that older operating systems often don't work in > qemu, not for any particular reason but just because they don't get > much attention and things regress, drivers in particular. Or the > drivers such as IDE don't emulate corners which are needed by the old > OS. For example I tried running some really ancient Linux versions in > qemu a while back with no success at all. > > Having said that I have run RHEL 3 recently on qemu and that's fairly > similar to 2.1. > > > the installation > > was complete 50% but then it asked to insert the second installation iso > > file. > > i.e. "Please insert disc 2 in cdrom" > > I tried to change the XML file and insert the line > > <source file = "/home/..."/> > > under device name but nothing helped. > > When you say you "tried to change the XML file" - how did you do that? > You should use ‘virsh edit <guest>’ only, and not attempt to edit any > XML file directly. Or of course you can use virt-manager as the other > reply suggested - it essentially does the same thing as virsh edit. Actually "virsh edit" is not what you need in this case. That will update the persistent XML config only. For a multi-stage installer, you need to perform a CD media change in the live VM. IIRC the following should work: $ virsh change-media $GUESTNAME /dev/hdc --update /path/to/iso This is equivalent to using "--eject" followed by "--insert /path/to/iso" Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|