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