Hi all, I have a stupid question: how can I boot a guest from cd? (my vm is a linux paravirtualized) Thanks Marco _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Marco Strullato wrote:> Hi all, > > I have a stupid question: how can I boot a guest from cd? (my vm is a > linux paravirtualized)I don''t know why you need to actually boot a paravirtulized guest from cdrom. But If I have to go to rescue mode of a paravirtualized guest, I used to do something like the below one. The example is only applicable for RHEL/Fedora/Centos, I don''t know how best this can be suited for other distros. Download the images/xen/{vmlinuz, initrd.img} from the distro source to /var/lib/xen/images. Add the below lines to the guest configuration file. kernel = "/var/lib/xen/images/vmlinuz" ramdisk = "/var/lib/xen/images/initrd.img" extra = "rescue" Comment out the line starting by "pygrub = ". Boot the guest as usual and specify nfs/http/ftp repo as the rescue source. It had worked very nicely for me. Is there any other requirements that compells you to boot a PV guest from cdrom except to go to rescue mode? --Sadique> > Thanks > > Marco > > > ------------------------------------------------------------------------ > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
You can''t boot a PV guest from CD, I''m afraid :-( What are you trying to do? For installing the guest there are various tools (virt-manager / virt-install, rpmstrap, debootstrap and others) that can help you create a guest filesystem without needing a boot CD. Cheers, Mark -- Dave: Just a question. What use is a unicyle with no seat? And no pedals! Mark: To answer a question with a question: What use is a skateboard? Dave: Skateboards have wheels. Mark: My wheel has a wheel! _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
There are at least two reasons: 1)If I would like to upgrade the version of an existing installation (if I''m using a redhat distro), I need to boot from cd and choose to upgrade an existing installation. 2)If I want to test some live distro, I need to boot from cd. Thanks, Marco 2007/12/3, Mark Williamson <mark.williamson@cl.cam.ac.uk>:> > You can''t boot a PV guest from CD, I''m afraid :-( > > What are you trying to do? For installing the guest there are various > tools > (virt-manager / virt-install, rpmstrap, debootstrap and others) that can > help > you create a guest filesystem without needing a boot CD. > > Cheers, > Mark > > -- > Dave: Just a question. What use is a unicyle with no seat? And no pedals! > Mark: To answer a question with a question: What use is a skateboard? > Dave: Skateboards have wheels. > Mark: My wheel has a wheel! >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Marco Strullato wrote:> There are at least two reasons: > 1)If I would like to upgrade the version of an existing installation > (if I''m using a redhat distro), I need to boot from cd and choose to > upgrade an existing installation.This can be achieved by following the method that I described earlier. I have not tested though. Download the images/xen/{vmlinuz, initrd.img} from the new distro source to /var/lib/xen/images. Add the below lines to the guest configuration file. kernel = "/var/lib/xen/images/vmlinuz" ramdisk = "/var/lib/xen/images/initrd.img" extra = "upgrade" Comment out the line starting by "pygrub = ". Boot the guest as usual and specify nfs/http/ftp repo as the rescue source. Once the upgrade is completed, reverse the configuration file to its old state.> 2)If I want to test some live distro, I need to boot from cd.This is not possible. --Sadique> > > Thanks, > > Marco > > > 2007/12/3, Mark Williamson <mark.williamson@cl.cam.ac.uk > <mailto:mark.williamson@cl.cam.ac.uk>>: > > You can''t boot a PV guest from CD, I''m afraid :-( > > What are you trying to do? For installing the guest there are > various tools > (virt-manager / virt-install, rpmstrap, debootstrap and others) > that can help > you create a guest filesystem without needing a boot CD. > > Cheers, > Mark > > -- > Dave: Just a question. What use is a unicyle with no seat? And no > pedals! > Mark: To answer a question with a question: What use is a skateboard? > Dave: Skateboards have wheels. > Mark: My wheel has a wheel! > > > ------------------------------------------------------------------------ > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Sadique Puthen wrote:> >> 2)If I want to test some live distro, I need to boot from cd. > > This is not possible. >I believe you can do the same thing: - map cd image or drive to domU - copy kernel and initrd from CD to dom0, and modify domU''s config to use that. This is the method use for installing OpenSolaris PV domU, as described on http://wiki.tardis.ed.ac.uk/index.php/OpenSolaris_Xen_domU This way the installer/live CD still reads data from the CD. In order for this to work on live CD you''ll need a xen-aware live CD though, and AFAIK none available. So in short, if you want to test a live CD, you''ll need to create HVM domain. Regards, Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users