I have followed a combination of instructions from this post and have been able to get an Ubuntu paravirtualized instance running under snv_96. Is there a way to "list" the fact that it is paravirtualized? For example, xm list, virsh list, etc. thanks -- This message posted from opensolaris.org
Ian Blenke
2008-Oct-10 14:42 UTC
Re: How do I see that a xVM is running as paravirtualized
You could always do something like: /usr/lib/xen/bin/xenstore-list /vm | xargs -L1 -I% /usr/lib/xen/bin/xenstore-read /vm/%/name /vm/%/image/ostype Or, "prettier": /usr/lib/xen/bin/xenstore-list /vm | xargs -L1 -I% bash -c ''echo `/usr/lib/xen/bin/xenstore-read /vm/%/name /vm/%/image/ostype`'' You can view the entire xenstore tree with: /usr/lib/xen/bin/xenstore-ls Or you could just parse the LISPish SXP output of "xm list --long". Hope that helps. - Ian Blenke <ian@blenke.com> <iblenke@csdvrs.com> http://ian.blenke.com/ On 10/10/08 9:58 AM, "Paul Whitener" <pwhitener@earthlink.net> wrote:> I have followed a combination of instructions from this post and have been > able to get an Ubuntu paravirtualized instance running under snv_96. Is there > a way to "list" the fact that it is paravirtualized? For example, xm list, > virsh list, etc. > > thanks > -- > This message posted from opensolaris.org > _______________________________________________ > xen-discuss mailing list > xen-discuss@opensolaris.org
Paul Whitener
2008-Oct-10 17:13 UTC
Re: How do I see that a xVM is running as paravirtualized
EXCELLANT! Thanks Ian! -- This message posted from opensolaris.org
Ronald J Mann
2008-Oct-10 17:16 UTC
Re: How do I see that a xVM is running as paravirtualized
Out of curiosity, cant you simply infer it (the lack of kennel, ramdisk entries) from the contents of a virsh dumpxml? =Ron Ian Blenke wrote:> You could always do something like: > > /usr/lib/xen/bin/xenstore-list /vm | xargs -L1 -I% > /usr/lib/xen/bin/xenstore-read /vm/%/name /vm/%/image/ostype > > Or, "prettier": > > /usr/lib/xen/bin/xenstore-list /vm | xargs -L1 -I% bash -c ''echo > `/usr/lib/xen/bin/xenstore-read /vm/%/name /vm/%/image/ostype`'' > > You can view the entire xenstore tree with: > > /usr/lib/xen/bin/xenstore-ls > > Or you could just parse the LISPish SXP output of "xm list --long". > > Hope that helps. > > - Ian Blenke <ian@blenke.com> <iblenke@csdvrs.com> http://ian.blenke.com/ > > On 10/10/08 9:58 AM, "Paul Whitener" <pwhitener@earthlink.net> wrote: > > >> I have followed a combination of instructions from this post and have been >> able to get an Ubuntu paravirtualized instance running under snv_96. Is there >> a way to "list" the fact that it is paravirtualized? For example, xm list, >> virsh list, etc. >> >> thanks >> -- >> This message posted from opensolaris.org >> _______________________________________________ >> xen-discuss mailing list >> xen-discuss@opensolaris.org >> > > _______________________________________________ > xen-discuss mailing list > xen-discuss@opensolaris.org >
Ian Blenke
2008-Oct-10 17:56 UTC
Re: How do I see that a xVM is running as paravirtualized
On 10/10/08 1:16 PM, "Ronald J Mann" <Ron.Mann@Sun.COM> wrote:> Out of curiosity, cant you simply infer it (the lack of kennel, ramdisk > entries) from the contents of a virsh dumpxml? > > =Ron=Sure, you could. That would mean parsing some XML from a shell script... Also, the libvirt abstraction is just a representation of what you can use the native Xen tools to query far easier from a commandline, if you know they''re there. Libvirt/virsh is not a panacea, there are reasons to use them, as well as reasons why you might not want to. If you''re going to use Xen, it''s a good idea to learn about xenstore and how it fits into how things operate. - Ian Blenke <ian@blenke.com> <iblenke@csdvrs.com> http://ian.blenke.com
Paul Whitener
2008-Oct-10 20:27 UTC
Re: How do I see that a xVM is running as paravirtualized
Hi Ian, Interesting that it sees domain 0 as linux! -- This message posted from opensolaris.org
Boris Derzhavets
2008-Oct-10 20:52 UTC
Re: How do I see that a xVM is running as paravirtualized
xm list -l Domain-name -- This message posted from opensolaris.org
John Levon
2008-Oct-10 23:35 UTC
Re: How do I see that a xVM is running as paravirtualized
On Fri, Oct 10, 2008 at 06:58:07AM -0700, Paul Whitener wrote:> I have followed a combination of instructions from this post and have > been able to get an Ubuntu paravirtualized instance running under > snv_96. Is there a way to "list" the fact that it is paravirtualized? > For example, xm list, virsh list, etc.virsh dominfo <domU> Look for "OS Type". If it says ''linux'' that means PV, or it could say ''hvm''. regards john