Hi List. I''m still feeling my way through my first Solaris dom0, after a few successful experiences with Linux dom0. Getting a Solaris domU is nice and easy, but now I need to start building Linux systems. Following the directions at opensolaris.org, it looks like virt-install really wants to run a classic "install CD" with a domU-aware kernel, but I don''t have such a thing since our Linux of choice is Gentoo. (I could patch a Gentoo-minimal CD with a new kernel, but I haven''t quite figured out the mechanics of that yet.) I do have abundant resources for pre-building system images, which is what I generally do for all our VMware guests, but I haven''t figured out how to take a built guest image and run it on a Solaris dom0. It looks like I might be able to hand-roll an xVM xml config file, but I haven''t been able to find documentation for that, and the examples I have from virt-install have comments at the top which warn against hand-editing. So I need a clue. Thanks, --Michael _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Fri, 9 Jan 2009 22:41:12 -0600 Michael Jinks <mjinks@uchicago.edu> wrote:> Following the directions at opensolaris.org, it looks like virt-install > really wants to run a classic "install CD" with a domU-aware kernel, > but I don''t have such a thing since our Linux of choice is Gentoo. (I > could patch a Gentoo-minimal CD with a new kernel, but I haven''t quite > figured out the mechanics of that yet.)You can get images with domU kernels from places like jailtime.org. And if they aren''t good enough for your purposes, you can always use any image with linux kernel there just to boot and unpack stage3/portage, compile kernel and some base software - just following the gentoo handbook ( http://www.gentoo.org/doc/en/handbook/ ). -- Mike Kazantsev // fraggod.net _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Sat, Jan 10, 2009 at 10:40:21AM +0500, Mike Kazantsev wrote:> On Fri, 9 Jan 2009 22:41:12 -0600 > Michael Jinks <mjinks@uchicago.edu> wrote: > > > Following the directions at opensolaris.org, it looks like virt-install > > really wants to run a classic "install CD" with a domU-aware kernel, > > but I don''t have such a thing since our Linux of choice is Gentoo. (I > > could patch a Gentoo-minimal CD with a new kernel, but I haven''t quite > > figured out the mechanics of that yet.) > > You can get images with domU kernels from places like jailtime.org.Thanks, I''m aware of jailtime, and one of their images would be just fine. The trouble I''m having isn''t coming up with a domU image, it''s getting the Solaris virt-install utility to use it. I figure there''s something I''m just not picking up on in the man page, but here''s an example of what I''ve tried so far: $ sudo virt-install --nographics --name foo --paravirt --ram 1011 --file /dev/zvol/dsk/mtank/foo --location /export/home/mjinks/gentoo.2008-0.img (The .img file is a downloaded 32-bit Gentoo domU from jailtime.org.) virt-install prompts me for the size of the disk image to create, since "foo" doesn''t exist yet, then: Starting install... hsfs mount: /export/home/mjinks/gentoo.2008-0.img is not an hsfs file system. umount: warning: /var/tmp/virtinstmnt.7bQr8T not in mnttab umount: /var/tmp/virtinstmnt.7bQr8T not mounted Invalid install location: Mounting location /export/home/mjinks/gentoo.2008-0.img failed Domain installation may not have been successful. If it was, you can restart your domain by running ''virsh start foo''; otherwise, please restart your installation. Sat, 10 Jan 2009 00:12:14 ERROR Invalid install location: Mounting location /export/home/mjinks/gentoo.2008-0.img failed Traceback (most recent call last): <snip traceback output> That''s why I got the impression that virt-install really wants to boot the system from an ISO disk image. If there''s a way to point it at a non-ISO disk image to boot from, I''m not finding it in the manpage. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Sat, Jan 10, 2009 at 12:27:58AM -0600, Michael Jinks wrote:> > That''s why I got the impression that virt-install really wants to boot > the system from an ISO disk image. If there''s a way to point it at a > non-ISO disk image to boot from, I''m not finding it in the manpage.A bit more that I forgot to add: I realize that the jailtime images aren''t installers, they''re ready-to-run systems. So the real goal would be to transfer the contents of a jailtime .img file into a virtual disk on the dom0. But I''m not sure how to do that (Can I just dd it into a zfs volume? Surely not?), and once I solve that problem, how do I create the xml config file that virt-install would create automatically if I were booting from an ISO image? _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Sat, 10 Jan 2009 00:43:13 -0600 Michael Jinks <mjinks@uchicago.edu> wrote:> But I''m not sure how to do that (Can I just dd it into a > zfs volume? Surely not?)That''s really just a loopback image with an ext3/reiserfs or xfs, you can mount it in a usual way, just like an ISO or initrd image: mount /path/to/file.img /some/path -o loop After that, it''s just "cp -ax", or "rsync -axH" (so it''ll save some space by preserving hardlinks).> and once I solve that problem, how do I > create the xml config file that virt-install would create automatically > if I were booting from an ISO image?Sorry, but I''m completely unfamiliar with solaris virt-install utility, but it''s name suggests installing, while you have (or can easily create otherwise) a working rootfs - there''s no need to "install" anything at all, so prehaps it''s just not the right tool for the task. While native OS tools are probably made to ease the maintenance, you can always write configuration file by hand (or use one from jailtime tarball), then use xen-tools to create domU from it. -- Mike Kazantsev // fraggod.net _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Looks like it''s more about Gentoo as PV DomU, then OpenSolaris 2008.11 or Solaris Nevada (b 103) Dom0. Would the most recent Xen 3.3.1 port to CentOS 5.2 help you to install Gentoo as PV DomU or , in other words, would you be able to install Gentoo PV DomU at Xen 3.3.1 CentOS 5.2 Dom0 ? --- On Fri, 1/9/09, Michael Jinks <mjinks@uchicago.edu> wrote: From: Michael Jinks <mjinks@uchicago.edu> Subject: [Xen-users] Solaris dom0, prebuilt domU? To: xen-users@lists.xensource.com Date: Friday, January 9, 2009, 11:41 PM Hi List. I''m still feeling my way through my first Solaris dom0, after a few successful experiences with Linux dom0. Getting a Solaris domU is nice and easy, but now I need to start building Linux systems. Following the directions at opensolaris.org, it looks like virt-install really wants to run a classic "install CD" with a domU-aware kernel, but I don''t have such a thing since our Linux of choice is Gentoo. (I could patch a Gentoo-minimal CD with a new kernel, but I haven''t quite figured out the mechanics of that yet.) I do have abundant resources for pre-building system images, which is what I generally do for all our VMware guests, but I haven''t figured out how to take a built guest image and run it on a Solaris dom0. It looks like I might be able to hand-roll an xVM xml config file, but I haven''t been able to find documentation for that, and the examples I have from virt-install have comments at the top which warn against hand-editing. So I need a clue. Thanks, --Michael _______________________________________________ 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
Hi Michael, http://home.arcor.de/bnsmb/public/htdocs/Xen_and_Solaris.html should help you. Thomas Am Freitag, den 09.01.2009, 22:41 -0600 schrieb Michael Jinks:> Hi List. > > I''m still feeling my way through my first Solaris dom0, after a few > successful experiences with Linux dom0. Getting a Solaris domU is nice > and easy, but now I need to start building Linux systems. > > Following the directions at opensolaris.org, it looks like virt-install > really wants to run a classic "install CD" with a domU-aware kernel, > but I don''t have such a thing since our Linux of choice is Gentoo. (I > could patch a Gentoo-minimal CD with a new kernel, but I haven''t quite > figured out the mechanics of that yet.) > > I do have abundant resources for pre-building system images, which is > what I generally do for all our VMware guests, but I haven''t figured out > how to take a built guest image and run it on a Solaris dom0. > > It looks like I might be able to hand-roll an xVM xml config file, but I > haven''t been able to find documentation for that, and the examples I > have from virt-install have comments at the top which warn against > hand-editing. > > So I need a clue. > > Thanks, > --Michael > > > _______________________________________________ > 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
On Sat, Jan 10, 2009 at 12:22:45PM +0500, Mike Kazantsev wrote:> Michael Jinks <mjinks@uchicago.edu> wrote: > > > But I''m not sure how to do that (Can I just dd it into a > > zfs volume? Surely not?) > > That''s really just a loopback image with an ext3/reiserfs or xfs, you > can mount it in a usual way, just like an ISO or initrd image:I could, if Solaris had support for mounting ext3, reiserfs, or xfs. ;)> > and once I solve that problem, how do I > > create the xml config file that virt-install would create automatically > > if I were booting from an ISO image? > > Sorry, but I''m completely unfamiliar with solaris virt-install utility, > but it''s name suggests installing, while you have (or can easily > create otherwise) a working rootfs - there''s no need to "install" > anything at all, so prehaps it''s just not the right tool for the task. > > While native OS tools are probably made to ease the maintenance, you > can always write configuration file by hand (or use one from jailtime > tarball), then use xen-tools to create domU from it.Unfortunately the Xen configs on Solaris look completely different from the way it works on a Linux dom0. So the jailtime .cfg file is useless unless I have a way to convert its contents to Sun''s .xml format. Setting up that file is one of the things virt-install does, but I''ve only been able to get virt-install to work on a Solaris domU, and haven''t been able to find docs which describe the format of that config file so that I could hand-roll my own (or what to do with it once I had it). virt-install also handles setting up the initial disk image and booting the guest OS for the first time, and is zfs-aware, all of which make it more than just a scaffold for doing things you could do just as easily by hand. I haven''t found any docs which describe how to do what virt-install does without virt-install. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Sat, Jan 10, 2009 at 03:29:46AM -0800, Boris Derzhavets wrote:> Looks like it''s more about Gentoo as PV DomU, then OpenSolaris 2008.11 > or Solaris Nevada (b 103) Dom0. > Would the most recent Xen 3.3.1 port to CentOS 5.2 help you to install > Gentoo as PV DomU or , in other words, would you be able to install Gentoo PV DomU at Xen 3.3.1 CentOS 5.2 Dom0? ?I have Linux dom0 machines that I''m quite happy with. Now though I have some Sun hardware that really wants to run Solaris (native hardware monitoring tools, ZFS, etc.) I have OpenSolaris 2008.11 running happily on the hardware with a dom0 kernel, and I can make it set up Solaris domU instances. I *think* that I could make it run Linux domU''s if I had Linux ISO images with Xen kernels on them, because that''s what the Solaris domU setup tool expects; but so far I don''t have any such ISO images. I do have (and can easily make) all sorts of domU system images, like what one gets from jailtime.org. That''s easy. What I can''t figure out is how to get the domU image into place for running on the Solaris host system without following the expected pattern of "virt-install with an ISO installer image". So far as I can tell, xVM (the Solaris re-badge of Xen) does things completely differently from Linux when it comes to handling guest images, and the only docs I can find for it describe their convenience tool, virt-install, not the mechanics of how virt-install works its magic.> --- On Fri, 1/9/09, Michael Jinks <mjinks@uchicago.edu> wrote: > From: Michael Jinks <mjinks@uchicago.edu> > Subject: [Xen-users] Solaris dom0, prebuilt domU? > To: xen-users@lists.xensource.com > Date: Friday, January 9, 2009, 11:41 PM > > Hi List. > > I''m still feeling my way through my first Solaris dom0, after a few > successful experiences with Linux dom0. Getting a Solaris domU is nice > and easy, but now I need to start building Linux systems. > > Following the directions at opensolaris.org, it looks like virt-install > really wants to run a classic "install CD" with a domU-aware kernel, > but I don''t have such a thing since our Linux of choice is Gentoo. (I > could patch a Gentoo-minimal CD with a new kernel, but I haven''t quite > figured out the mechanics of that yet.) > > I do have abundant resources for pre-building system images, which is > what I generally do for all our VMware guests, but I haven''t figured out > how to take a built guest image and run it on a Solaris dom0. > > It looks like I might be able to hand-roll an xVM xml config file, but I > haven''t been able to find documentation for that, and the examples I > have from virt-install have comments at the top which warn against > hand-editing. > > So I need a clue. > > Thanks, > --Michael > > > _______________________________________________ > 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_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Sat, Jan 10, 2009 at 01:03:51PM +0100, Thomas Halinka wrote:> Hi Michael, > > http://home.arcor.de/bnsmb/public/htdocs/Xen_and_Solaris.html > > should help you.Thanks. That is a great resource, I''ve spotted answers to other questions I''ve run across before now. But -- and maybe I''m being dense -- I still don''t find an answer to the problem I''m having now. I''ve just restated my original post twice in response to other attempts to help me out, so I won''t do that again, but... is there something in that list that I may be overlooking? I only found two references to setting up a domU, one that just points out virt-install (which I already know about, and can''t make do my bidding), and the other a broken link which I think used to lead to this page: http://weblog.dme.org/posts/old/363/ ...which appears to be out of date with current Solaris dom0; it describes a config file format that looks like what we use on Linux, not the XML thing Xen expects. It also uses xm for domU control. From the OpenSolaris xm manpage: DESCRIPTION The main interface for command and control of both xVM and guest domains is virsh(1M). Users should use virsh wherever possible, as it provides a generic and stable interface to controlling virtualized operating systems. Some xVM opera- tions are not yet implemented by virsh. In those cases, the legacy utility xm can be used for detailed control. ...all of which leads me to believe that, somewhere, there''s an "OpenSolaris Way" of doing this that I''m just not finding. That excerpt does point to their "virsh" tool, which has a manpage, which says you can use it to load up an XML config file describing a domU. But I can''t find a description for how to get such a file in the first place. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Sat, Jan 10, 2009 at 11:49 AM, Michael Jinks <mjinks@uchicago.edu> wrote:> On Sat, Jan 10, 2009 at 01:03:51PM +0100, Thomas Halinka wrote: >> Hi Michael, >> >> http://home.arcor.de/bnsmb/public/htdocs/Xen_and_Solaris.html >> >> should help you. > > Thanks. That is a great resource, I''ve spotted answers to other > questions I''ve run across before now. But -- and maybe I''m being dense > -- I still don''t find an answer to the problem I''m having now. > > I''ve just restated my original post twice in response to other attempts > to help me out, so I won''t do that again, but... is there something in > that list that I may be overlooking? I only found two references to > setting up a domU, one that just points out virt-install (which I > already know about, and can''t make do my bidding), and the other a > broken link which I think used to lead to this page: > > http://weblog.dme.org/posts/old/363/ > > ...which appears to be out of date with current Solaris dom0; it > describes a config file format that looks like what we use on Linux, not > the XML thing Xen expects. > > It also uses xm for domU control. From the OpenSolaris xm manpage: > > DESCRIPTION > The main interface for command and control of both xVM and > guest domains is virsh(1M). Users should use virsh wherever > possible, as it provides a generic and stable interface to > controlling virtualized operating systems. Some xVM opera- > tions are not yet implemented by virsh. In those cases, the > legacy utility xm can be used for detailed control. > > ...all of which leads me to believe that, somewhere, there''s an > "OpenSolaris Way" of doing this that I''m just not finding. > > That excerpt does point to their "virsh" tool, which has a manpage, > which says you can use it to load up an XML config file describing a > domU. But I can''t find a description for how to get such a file in the > first place. >The virt-install, virsh, etc. stuff is all based on libvirt http://libvirt.org/ Cheers, Todd -- Todd Deshane http://todddeshane.net http://runningxen.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Sat, Jan 10, 2009 at 10:49:07AM -0600, Michael Jinks wrote: Oops:> http://weblog.dme.org/posts/old/363/ > > ...which appears to be out of date with current Solaris dom0; it > describes a config file format that looks like what we use on Linux, not > the XML thing Xen expects.That should have been "the XML thing xVM expects". Obviously Xen outside of Solaris is happy with the config file format I''m used to. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Sat, Jan 10, 2009 at 11:52:15AM -0500, Todd Deshane wrote:> > The virt-install, virsh, etc. stuff is all based on libvirt > http://libvirt.org/AHA! I expect that will help a ton, thanks. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
nice... bravo. very informative.... On Sat, Jan 10, 2009 at 7:03 PM, Thomas Halinka <lists@thohal.de> wrote:> Hi Michael, > > http://home.arcor.de/bnsmb/public/htdocs/Xen_and_Solaris.html > > should help you. > > Thomas > > > > Am Freitag, den 09.01.2009, 22:41 -0600 schrieb Michael Jinks: > > Hi List. > > > > I''m still feeling my way through my first Solaris dom0, after a few > > successful experiences with Linux dom0. Getting a Solaris domU is nice > > and easy, but now I need to start building Linux systems. > > > > Following the directions at opensolaris.org, it looks like virt-install > > really wants to run a classic "install CD" with a domU-aware kernel, > > but I don''t have such a thing since our Linux of choice is Gentoo. (I > > could patch a Gentoo-minimal CD with a new kernel, but I haven''t quite > > figured out the mechanics of that yet.) > > > > I do have abundant resources for pre-building system images, which is > > what I generally do for all our VMware guests, but I haven''t figured out > > how to take a built guest image and run it on a Solaris dom0. > > > > It looks like I might be able to hand-roll an xVM xml config file, but I > > haven''t been able to find documentation for that, and the examples I > > have from virt-install have comments at the top which warn against > > hand-editing. > > > > So I need a clue. > > > > Thanks, > > --Michael > > > > > > _______________________________________________ > > 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 >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi Michael, i do not really understand your problem. http://www.ezunix.org/index.php?title=Linux_XEN_DomU_on_OpenSolaris_Dom0 shows that the configs are the same - so what s the problem? And as Todd pointed out its all based on Libvirt. Thomas Am Samstag, den 10.01.2009, 10:49 -0600 schrieb Michael Jinks:> On Sat, Jan 10, 2009 at 01:03:51PM +0100, Thomas Halinka wrote: > > Hi Michael, > > > > http://home.arcor.de/bnsmb/public/htdocs/Xen_and_Solaris.html > > > > should help you. > > Thanks. That is a great resource, I''ve spotted answers to other > questions I''ve run across before now. But -- and maybe I''m being dense > -- I still don''t find an answer to the problem I''m having now. > > I''ve just restated my original post twice in response to other attempts > to help me out, so I won''t do that again, but... is there something in > that list that I may be overlooking? I only found two references to > setting up a domU, one that just points out virt-install (which I > already know about, and can''t make do my bidding), and the other a > broken link which I think used to lead to this page: > > http://weblog.dme.org/posts/old/363/ > > ...which appears to be out of date with current Solaris dom0; it > describes a config file format that looks like what we use on Linux, not > the XML thing Xen expects. > > It also uses xm for domU control. From the OpenSolaris xm manpage: > > DESCRIPTION > The main interface for command and control of both xVM and > guest domains is virsh(1M). Users should use virsh wherever > possible, as it provides a generic and stable interface to > controlling virtualized operating systems. Some xVM opera- > tions are not yet implemented by virsh. In those cases, the > legacy utility xm can be used for detailed control. > > ...all of which leads me to believe that, somewhere, there''s an > "OpenSolaris Way" of doing this that I''m just not finding. > > That excerpt does point to their "virsh" tool, which has a manpage, > which says you can use it to load up an XML config file describing a > domU. But I can''t find a description for how to get such a file in the > first place. > > _______________________________________________ > 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
More links: http://deepenintocs.blogspot.com/ usenix.org/publications/login/2008-10/openpdfs/hu.pdf Cheers, Todd -- Todd Deshane http://todddeshane.net http://runningxen.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Fri, Jan 09, 2009 at 10:41:12PM -0600, Michael Jinks wrote:> Following the directions at opensolaris.org, it looks like virt-install > really wants to run a classic "install CD" with a domU-aware kernel,Yes, virt-install expects that. If you need Gentoo, and that doesn''t support Xen PV, you can use HVM mode. regards john _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Sat, Jan 10, 2009 at 05:21:58PM +0000, John Levon wrote:> On Fri, Jan 09, 2009 at 10:41:12PM -0600, Michael Jinks wrote: > > > Following the directions at opensolaris.org, it looks like virt-install > > really wants to run a classic "install CD" with a domU-aware kernel, > > Yes, virt-install expects that. If you need Gentoo, and that doesn''t > support Xen PV, you can use HVM mode.Sadly our x4500 doesn''t have the right CPU''s for HVM. I was heartbroken. I may just spend the half hour of doc combing to figure out how to make my own Gentoo install CD with a custom kernel. At this point that''s looking easier than trying to figure out how to force-feed an img file onto a ZFS volume. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Sat, Jan 10, 2009 at 06:06:08PM +0100, Thomas Halinka wrote:> Hi Michael, > > i do not really understand your problem. > > http://www.ezunix.org/index.php?title=Linux_XEN_DomU_on_OpenSolaris_Dom0 > > shows that the configs are the same - so what s the problem?The Xen configs I''m used to look like old-school Unix config files, with "key = value" pairs. The configs I''m seeing for domU''s on OpenSolaris are XML, with similar but not quite isomorphic <tag>value</tag> constructions, and docs telling me not to edit them by hand. Maybe xVM can understand "old style"(?) Xen config files, but if so I can''t find where they''re stored, nor any examples to work from; the virsh and virt-install man pages I''ve read only refer to the XML style configs. I could probably work around that -- ignore the warnings about hand-editing and use virsh''s config loading function -- but that still doesn''t get the .img file transferred into a ZFS volume.> And as Todd pointed out its all based on Libvirt.Yeah, reading up on that now, also the couple more links Todd sent along a few minutes ago. But I think this is probably all barking up the wrong tree, and I''ll be better off just doing things the way virt-install expects, with a Xen-capable ISO image. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Sun, Jan 11, 2009 at 1:01 AM, Michael Jinks <mjinks@uchicago.edu> wrote:> The Xen configs I''m used to look like old-school Unix config files, with > "key = value" pairs. The configs I''m seeing for domU''s on OpenSolaris > are XML, with similar but not quite isomorphic <tag>value</tag> > constructions, and docs telling me not to edit them by hand. > > Maybe xVM can understand "old style"(?) Xen config files, but if so IYes, it does.> can''t find where they''re stored, nor any examples to work from; theAnywhere you want, actually :D I created /etc/xen manually, and store it there. Here''s an example of /etc/xen/rhel5 ====================memory = "500" disk = [ ''phy:/dev/zvol/dsk/rpool/xen/rhel5root,hda1,w'',''phy:/dev/zvol/dsk/rpool/xen/rhel5swap,hda2,w'' ] vif = [ ''mac=00:16:3E:F0:3D:6C, bridge=bnx0'', ] bootloader="/usr/lib/xen/bin/pygrub" vcpus=1 cpus="^0" on_xend_start="start" ==================== If you prefer to work with .img instead of zvol, simply change all phy:/dev/zvol/dsk/... to file:// ....img The downside of this approach is that you cannot autostart domU. To be exact, whether it''s xml based or old-style, xvm''s auotstart script doesn''t read /etc/xen/auto like it does on RHEL. Instead, it autostarts domUs that have been registered to xend with "xm new" (or created with virt-install) that have these values (when you run "xm list -l") (on_xend_start start) (on_xend_stop shutdown) Or (in the case of config above) have on_xend_start="start" If you want to autostart domU using the config above, what you need to do is : - cd /etc/xen - xm new rhel5 - xm start rhel5> but that still > doesn''t get the .img file transferred into a ZFS volume. >There''s a package that allows you to mount ext2/3 on solaris http://www.genunix.org/distributions/belenix_site/binfiles/README.FSWfsmisc.txt I haven''t tried it though. What I prefer to do is : - turn on iscsi share on zfs and import the iscsi volume on linux, OR - have a "standard" domU linux ready on the same solaris dom0, and attach the block device there using xm block-attach and detach it later using block-detach PS : When creating zvols, BEWARE of http://marc.info/?l=opensolaris-bugs&m=122149483527748&w=2 For example, It means using two zvol named "rhel5" and "rhel5swap" will NOT work, but using "rhel5root" and "rhel5swap" works. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
>So far as I can tell, xVM (the Solaris re-badge >of Xen) does things completely differently from Linux when it comes to >handling guest images, and the only docs I can find for it describet>heir convenience tool, virt-install, not the mechanics of how>virt-install works its magic.Yes, it''s old Red Hat''s magic. Feel free to consult Red Hat Manuals regarding libvirtd daemon, package python-virtinst, virt-install and etc been written a before SNV 75(A) ,66 Sun''s original Xen drops. I mean F7, CentOS 5.0 ( Xen 3.0.3 enabled Systems). --- On Sat, 1/10/09, Michael Jinks <mjinks@uchicago.edu> wrote: From: Michael Jinks <mjinks@uchicago.edu> Subject: Re: [Xen-users] Solaris dom0, prebuilt domU? To: "Boris Derzhavets" <bderzhavets@yahoo.com> Cc: xen-users@lists.xensource.com Date: Saturday, January 10, 2009, 11:33 AM On Sat, Jan 10, 2009 at 03:29:46AM -0800, Boris Derzhavets wrote:> Looks like it''s more about Gentoo as PV DomU, then OpenSolaris 2008.11 > or Solaris Nevada (b 103) Dom0. > Would the most recent Xen 3.3.1 port to CentOS 5.2 help you to install > Gentoo as PV DomU or , in other words, would you be able to install GentooPV DomU at Xen 3.3.1 CentOS 5.2 Dom0? ? I have Linux dom0 machines that I''m quite happy with. Now though I have some Sun hardware that really wants to run Solaris (native hardware monitoring tools, ZFS, etc.) I have OpenSolaris 2008.11 running happily on the hardware with a dom0 kernel, and I can make it set up Solaris domU instances. I *think* that I could make it run Linux domU''s if I had Linux ISO images with Xen kernels on them, because that''s what the Solaris domU setup tool expects; but so far I don''t have any such ISO images. I do have (and can easily make) all sorts of domU system images, like what one gets from jailtime.org. That''s easy. What I can''t figure out is how to get the domU image into place for running on the Solaris host system without following the expected pattern of "virt-install with an ISO installer image". So far as I can tell, xVM (the Solaris re-badge of Xen) does things completely differently from Linux when it comes to handling guest images, and the only docs I can find for it describe their convenience tool, virt-install, not the mechanics of how virt-install works its magic.> --- On Fri, 1/9/09, Michael Jinks <mjinks@uchicago.edu> wrote: > From: Michael Jinks <mjinks@uchicago.edu> > Subject: [Xen-users] Solaris dom0, prebuilt domU? > To: xen-users@lists.xensource.com > Date: Friday, January 9, 2009, 11:41 PM > > Hi List. > > I''m still feeling my way through my first Solaris dom0, after a few > successful experiences with Linux dom0. Getting a Solaris domU is nice > and easy, but now I need to start building Linux systems. > > Following the directions at opensolaris.org, it looks like virt-install > really wants to run a classic "install CD" with a domU-awarekernel,> but I don''t have such a thing since our Linux of choice is Gentoo. (I > could patch a Gentoo-minimal CD with a new kernel, but I haven''t quite > figured out the mechanics of that yet.) > > I do have abundant resources for pre-building system images, which is > what I generally do for all our VMware guests, but I haven''t figuredout> how to take a built guest image and run it on a Solaris dom0. > > It looks like I might be able to hand-roll an xVM xml config file, but I > haven''t been able to find documentation for that, and the examples I > have from virt-install have comments at the top which warn against > hand-editing. > > So I need a clue. > > Thanks, > --Michael > > > _______________________________________________ > 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_______________________________________________ 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