From Daniel.Hain@sun.com Fri Apr  4 14:55:51 2008
Received: from sunmail4.singapore.sun.com (sunmail4.Singapore.Sun.COM [129.158.71.19])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id m34Lto89011142
	for <psarc-ext@sac.sfbay.Sun.COM>; Fri, 4 Apr 2008 14:55:51 -0700 (PDT)
Received: from nwk-avmta-2.sfbay.sun.com (nwk-avmta-2.SFBay.Sun.COM [129.145.155.6])
	by sunmail4.singapore.sun.com (8.13.4+Sun/8.13.3/ENSMAIL,v2.2) with ESMTP id m34LtkQi011970
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Sat, 5 Apr 2008 05:55:49 +0800 (SGT)
Received: from pmxchannel-daemon.nwk-avmta-2.sfbay.sun.com by
 nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0JYT00707M902D00@nwk-avmta-2.sfbay.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Fri, 04 Apr 2008 14:55:48 -0700 (PDT)
Received: from sca-es-mail-1.sun.com ([192.18.43.132])
 by nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0JYT006WCM8ZO300@nwk-avmta-2.sfbay.sun.com> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Fri,
 04 Apr 2008 14:55:47 -0700 (PDT)
Received: from fe-sfbay-10.sun.com ([192.18.43.129])
	by sca-es-mail-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id m34Ltlx7008765	for
 <PSARC-ext@sun.com>; Fri, 04 Apr 2008 14:55:47 -0700 (PDT)
Received: from conversion-daemon.fe-sfbay-10.sun.com by fe-sfbay-10.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 id <0JYT00701M0TF500@fe-sfbay-10.sun.com>
 (original mail from Daniel.Hain@Sun.COM)
 for PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Fri,
 04 Apr 2008 14:55:47 -0700 (PDT)
Received: from Macintosh-2.local ([72.197.213.236])
 by fe-sfbay-10.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb
 28 2007)) with ESMTPSA id <0JYT00F8NM8N61G0@fe-sfbay-10.sun.com> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Fri,
 04 Apr 2008 14:55:35 -0700 (PDT)
Date: Fri, 04 Apr 2008 14:55:33 -0700
From: Dan Hain <Daniel.Hain@sun.com>
Subject: PSARC/2008/237 Libvirt for LDoms support
Sender: Daniel.Hain@sun.com
To: PSARC-ext@sun.com
Cc: Eunice Moon <Eunice.Moon@sun.com>, Ryan Scott <Ryan.Scott@sun.com>
Message-id: <47F6A3D5.7090206@sun.com>
Organization: Solaris Revenue Product Engineering
MIME-version: 1.0
Content-type: text/plain; format=flowed; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031)
Status: RO
Content-Length: 6522

I am sponsoring the following case on behalf of Eunice Moon
as a fast-track with timeout set to 04/14/2008.

The project requests minor binding.



Libvirt for LDoms (Logical Domains) support
===========================================

ARC Exposure: open

1. Background

The Libvirt for LDoms software to provide libvirt interfaces for LDoms 
hypervisor was already released at Sun Download Center [1]. The LDoms 
support was added to libvirt version 0.3.2 and virtinst version 0.103.0,
and was released as the Solaris 10 packages to support LDoms 1.0.1 and
1.0.2.

This fast-track RFE will add the same LDoms support to libvirt version 
0.4.0 which was put back to the Nevada xVM gate with Xen 3.1.2 and
virtinst version 0.300.1 which will be put back soon. 

The purpose of this RFE is to provide the Libvirt for LDoms support for 
use in Open Solaris environment and will be put back to the Nevada xVM gate.

It is not targeting an S10 putback.  It is just targeting for the Nevada
xVM gate (/ws/xvm-gate) for use in Open Solaris environment.

[1] - Libvirt for LDoms 1.0.1 is available for customer download at: 
      http://www.sun.com/servers/coolthreads/ldoms/get.jsp

Please see the References section below for the available documentation
for Libvirt for LDoms 1.0.1.

2. Overview 

Libvirt is an open source management library that interacts with
virtualization capabilities.  The libvirt for LDoms software will add the
LDoms driver as a supported hypervisor in the libvirt driver system.
With the LDoms support, the libvirt library will interact with the
LDoms Manager software via its XML-based control interface to retrieve
the LDoms data or request CPU/memory resource updates. It will also
support some lifecycle commands (such as create, start, destroy, ..etc)
on the guest domain.   

virsh is included in libvirt. virsh is built on top of libvirt and allows
a user to interact with the hypervisor and guest domains. With the LDoms
support, a user can run virsh to interact with the LDoms hypervisor
as below:

   /usr/bin/virsh -c ldoms:///default

virt-install will allow a user to install a guest operating system on
LDoms system:

  /usr/sbin/virt-install --connect=ldoms:///default 


3. Library Interfaces

The LDoms Manager provides a command-line interface and also exports a
XML based control interface. The libvirt LDoms driver will use this
XML interface to communicate with the LDoms Manager to retrieve the LDoms
data and request the CPU/memory resource updates or LDoms life cycle
actions.  The current (version 1.0.1 and 1.0.2) LDoms Manager's XML interface
is using the socket connection.
 
----------------------------------------------------------------------------
| Imported Interface          | Stability      | Comments	           |
+-----------------------------+-----------------+--------------------------+
| LDoms Manager 1.0.1/1.0.2   | Consolidation  | LDoms Libvirt bundled with| 
| XML/CLI interfaces          | Private        | LDoms Manager             | 
+-----------------------------+-------------------------+------------------+

----------------------------------------------------------------------------
| exported Interface            | Stability           | Comments	   |
+-------------------------------+---------------------+--------------------+
| libvirt/virsh                 | Volatile            | Updated to support | 
|                               |                     | LDoms              | 
+-------------------------------+---------------------+--------------------+
| virt-install                  | Volatile            | Updated to support | 
|                               |                     | LDoms              | 
+-------------------------------+---------------------+--------------------+


4. Supported virsh Commands

The following virsh commands will be supported for LDoms.

    help            print help
    console         connect to the guest console
    create          create a domain from an XML file
    start           start an inactive or bound domain
    destroy         destroy a domain
    define          define (but don't start) a domain from an XML file
    domid           convert a domain name or UUID to domain id
    domuuid         convert a domain name or id to domain UUID
    dominfo         domain information
    domname         convert a domain id or UUID to domain name
    domstate        domain state
    dumpxml         domain information in XML
    hostname        print the hypervisor hostname
    list            list domains
    nodeinfo        node information
    quit            quit this interactive terminal
    shutdown        gracefully shutdown a domain
    setmem          change memory allocation
    setvcpus        change number of virtual CPUs
    undefine        undefine an inactive domain
    vcpuinfo        domain vcpu information
    version         show version

5. Supported virt-install Options 

The following virt-install options will be supported for LDoms.

   -n NAME, --name=NAME  Name of the guest instance
   -r MEMORY, --ram=MEMORY
                         Memory to allocate for guest instance
   --vcpus=VCPUS         Number of vcpus to configure for your guest
   --check-cpu           Check that vcpus do not exceed physical CPUs
   -f DISKFILE, --file=DISKFILE
                         File to use as the disk image
   -s DISKSIZE, --file-size=DISKSIZE
                         Size of the disk image
   -m MAC, --mac=MAC     Fixed MAC address for the guest
   --connect=CONNECT     Connect to hypervisor with URI
   -d, --debug           Print debugging information
   -h, --help            show help message
   

6. Deliverables

The following files will be updated to support the LDoms

   usr/bin/virsh 
   usr/include/libvirt/libvirt.h   
   usr/include/libvirt/virterror.h
   usr/lib/libvirt.so.0.4.0      
   usr/lib/python2.4/vendor-packages/libvirt.py   
   usr/lib/python2.4/vendor-packages/libvirtmod.so 
   usr/sbin/virt-install

7. References

PSARC/2007/157 libvirt - a LGPL library to control guest domains
PSARC/2008/165 xVM Hypervisor Remote Access 
               (includes Xen 3.1.2/libvirt 0.4.0 putback)

Libvirt for LDoms 1.0.1 Functional Spec:
http://sunwebcollab.east.sun.com/gm/folder-1.11.1727657

Libvirt for LDoms 1.0.1 Admin Guide:
http://docs.sun.com/app/docs/doc/820-3838-10 
Note: This Admin guide is for LDoms Libvirt. For more general Libvirt info,
      please refer to the open source web site:
      http://libvirt.org/ 



From johnlev@barman.uk.sun.com Sun Apr  6 11:55:01 2008
Received: from sunmail2sca.sfbay.sun.com (sunmail2sca.SFBay.Sun.COM [129.145.155.234])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id m36It0MT024189
	for <psarc-ext@sac.sfbay.sun.com>; Sun, 6 Apr 2008 11:55:00 -0700 (PDT)
Received: from nwk-avmta-1.SFBay.Sun.COM (nwk-avmta-1.SFBay.Sun.COM [129.146.11.74])
	by sunmail2sca.sfbay.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id m36It0B9016352
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@Sun.COM>; Sun, 6 Apr 2008 11:55:00 -0700 (PDT)
Received: from pmxchannel-daemon.nwk-avmta-1.sfbay.Sun.COM by
 nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0JYX0090137OQR00@nwk-avmta-1.sfbay.Sun.COM> for PSARC-ext@Sun.COM
 (ORCPT PSARC-ext@Sun.COM); Sun, 06 Apr 2008 11:55:00 -0700 (PDT)
Received: from dm-uk-02.uk.sun.com ([129.156.101.196])
 by nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0JYX005FX37N7110@nwk-avmta-1.sfbay.Sun.COM> for
 PSARC-ext@Sun.COM (ORCPT PSARC-ext@Sun.COM); Sun,
 06 Apr 2008 11:55:00 -0700 (PDT)
Received: from barman.uk.sun.com (barman.UK.Sun.COM [129.156.132.12])
	by dm-uk-02.uk.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2)
 with ESMTP id m36Isus5005249; Sun, 06 Apr 2008 19:54:57 +0100 (BST)
Received: from johnlev by barman.uk.sun.com with local (Exim 4.42)
	id 1Jia0v-0003Ts-Ho; Sun, 06 Apr 2008 19:54:49 +0100
X-URL: http://jurassic.eng/~johnlev/
Date: Sun, 06 Apr 2008 19:54:49 +0100
From: John Levon <john.levon@sun.com>
Subject: Re: PSARC/2008/237 Libvirt for LDoms support
In-reply-to: <47F6A3D5.7090206@sun.com>
Sender: John Levon <johnlev@barman.uk.sun.com>
To: Dan Hain <Daniel.Hain@sun.com>
Cc: PSARC-ext@sun.com, Eunice Moon <Eunice.Moon@sun.com>,
        Ryan Scott <Ryan.Scott@sun.com>
Message-id: <20080406185449.GA13155@barman.uk.sun.com>
MIME-version: 1.0
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
Content-disposition: inline
X-PMX-Version: 5.4.1.325704
References: <47F6A3D5.7090206@sun.com>
User-Agent: Mutt/1.5.6i
Status: RO
Content-Length: 725

On Fri, Apr 04, 2008 at 02:55:33PM -0700, Dan Hain wrote:

> virsh is included in libvirt. virsh is built on top of libvirt and allows
> a user to interact with the hypervisor and guest domains. With the LDoms
> support, a user can run virsh to interact with the LDoms hypervisor
> as below:
> 
>   /usr/bin/virsh -c ldoms:///default
>  /usr/sbin/virt-install --connect=ldoms:///default 

Is this also the default (i.e. what happens when --connect isn't
specified) ?

What happens if a non-supported virsh command is run?

> Libvirt for LDoms 1.0.1 Functional Spec:
> http://sunwebcollab.east.sun.com/gm/folder-1.11.1727657

This is an open case, so this should be available externally too, if
it's relevant...

regards
john

From roland.mainz@nrubsig.org Sun Apr  6 14:59:54 2008
Received: from sunmail5.uk.sun.com (sunmail5.UK.Sun.COM [129.156.85.165])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id m36LxrmF027713
	for <psarc-ext@sac.sfbay.sun.com>; Sun, 6 Apr 2008 14:59:53 -0700 (PDT)
Received: from nwk-avmta-2.sfbay.sun.com (nwk-avmta-2.SFBay.Sun.COM [129.145.155.6])
	by sunmail5.uk.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.2) with ESMTP id m36Lxmxi018991;
	Sun, 6 Apr 2008 22:59:50 +0100 (BST)
Received: from pmxchannel-daemon.nwk-avmta-2.sfbay.sun.com by
 nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0JYX00E03BROTF00@nwk-avmta-2.sfbay.sun.com>; Sun,
 06 Apr 2008 14:59:48 -0700 (PDT)
Received: from brmea-mail-1.sun.com ([192.18.98.31])
 by nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0JYX006ANBRNFX50@nwk-avmta-2.sfbay.sun.com>; Sun,
 06 Apr 2008 14:59:48 -0700 (PDT)
Received: from relay22.sun.com
 (relay22.sun.com [192.12.251.34] (may be forged))	by brmea-mail-1.sun.com
 (8.13.6+Sun/8.12.9) with ESMTP id m36LoQg3021076; Sun,
 06 Apr 2008 21:59:47 +0000 (GMT)
Received: from mms24es.sun.com ([150.143.232.74] [150.143.232.74])
 by relay22i.sun.com with ESMTP id BT-MMP-2087584; Sun,
 06 Apr 2008 21:59:47 +0000 (Z)
Received: from relay24.sun.com (relay24.sun.com [192.12.251.74])
 by mms24es.sun.com with ESMTP id BT-MMP-55994; Sun,
 06 Apr 2008 21:59:46 +0000 (Z)
Received: from mail-in-06.arcor-online.net ([151.189.21.46] [151.189.21.46])
 by relay24i.sun.com with ESMTP id BT-MMP-21528899; Sun,
 06 Apr 2008 21:59:46 +0000 (Z)
Received: from mail-in-09-z2.arcor-online.net
 (mail-in-09-z2.arcor-online.net [151.189.8.21])	by mail-in-06.arcor-online.net
 (Postfix) with ESMTP id 62F1131E865; Sun, 06 Apr 2008 23:59:45 +0200 (CEST)
Received: from mail-in-11.arcor-online.net
 (mail-in-11.arcor-online.net [151.189.21.51])
	by mail-in-09-z2.arcor-online.net (Postfix) with ESMTP id 5350728ED36; Sun,
 06 Apr 2008 23:59:45 +0200 (CEST)
Received: from jupiterb48.nrubsig.org
 (dslb-084-058-198-205.pools.arcor-ip.net [84.58.198.205])
	by mail-in-11.arcor-online.net (Postfix) with ESMTP id 9C0A0261303; Sun,
 06 Apr 2008 23:59:44 +0200 (CEST)
Received: from nrubsig.org (localhost [127.0.0.1])	by jupiterb48.nrubsig.org
 (8.13.8+Sun/8.13.8) with ESMTP id m36LxgGO001444; Sun,
 06 Apr 2008 23:59:42 +0200 (CEST)
Date: Sun, 06 Apr 2008 23:59:41 +0200
From: Roland Mainz <roland.mainz@nrubsig.org>
Subject: virsh... / was: Re: PSARC/2008/237 Libvirt for LDoms support
Sender: gisburn@jupiterb48.nrubsig.org
To: Dan Hain <Daniel.Hain@sun.com>
Cc: PSARC-ext@sun.com, Eunice Moon <Eunice.Moon@sun.com>,
        Ryan Scott <Ryan.Scott@sun.com>
Message-id: <47F947CD.9408990D@nrubsig.org>
MIME-version: 1.0
X-Mailer: Mozilla 4.76 [en] (X11; U; SunOS 5.11 sun4u)
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
X-Accept-Language: en
X-PMX-Version: 5.4.1.325704
X-Brightmail-Tracker: AAAAAA==
X-Virus-Scanned: ClamAV 0.92.1/6635/Sun Apr  6 18:29:31 2008 on
 mail-in-11.arcor-online.net
X-Virus-Status: Clean
X-Antispam: No, score=-2.6/5.0, scanned in 0.083sec at (localhost [127.0.0.1])
	by smf-spamd v1.3.1 - http://smfs.sf.net/
References: <47F6A3D5.7090206@sun.com>
Status: RO
Content-Length: 1367

Dan Hain wrote:
> 
> I am sponsoring the following case on behalf of Eunice Moon
> as a fast-track with timeout set to 04/14/2008.
> 
> The project requests minor binding.
> 
> Libvirt for LDoms (Logical Domains) support
> ===========================================
[snip]
> Libvirt is an open source management library that interacts with
> virtualization capabilities.  The libvirt for LDoms software will add the
> LDoms driver as a supported hypervisor in the libvirt driver system.
> With the LDoms support, the libvirt library will interact with the
> LDoms Manager software via its XML-based control interface to retrieve
> the LDoms data or request CPU/memory resource updates. It will also
> support some lifecycle commands (such as create, start, destroy, ..etc)
> on the guest domain.
> 
> virsh is included in libvirt. virsh is built on top of libvirt and allows
> a user to interact with the hypervisor and guest domains. With the LDoms
> support, a user can run virsh to interact with the LDoms hypervisor
> as below:
> 
>    /usr/bin/virsh -c ldoms:///default
[snip]

The *sh suffix indicates it's some kind of shell - which shell did you
use as basis for "virsh" ?

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) roland.mainz@nrubsig.org
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 7950090
 (;O/ \/ \O;)

From Eunice.Moon@sun.com Mon Apr  7 07:37:16 2008
Received: from sunmail5.uk.sun.com (sunmail5.UK.Sun.COM [129.156.85.165])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id m37EbFPU016920
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 7 Apr 2008 07:37:16 -0700 (PDT)
Received: from brm-avmta-1.central.sun.com (brm-avmta-1.Central.Sun.COM [129.147.4.11])
	by sunmail5.uk.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.2) with ESMTP id m37EbCuV017535;
	Mon, 7 Apr 2008 15:37:15 +0100 (BST)
Received: from pmxchannel-daemon.brm-avmta-1.central.sun.com by
 brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0JYY00111LY0C700@brm-avmta-1.central.sun.com>; Mon,
 07 Apr 2008 08:37:12 -0600 (MDT)
Received: from brmea-mail-4.sun.com ([192.18.98.36])
 by brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0JYY00EL1LXZ44C0@brm-avmta-1.central.sun.com>; Mon,
 07 Apr 2008 08:37:11 -0600 (MDT)
Received: from fe-amer-10.sun.com ([192.18.109.80])
	by brmea-mail-4.sun.com (8.13.6+Sun/8.12.9) with ESMTP id m37EbA56024070; Mon,
 07 Apr 2008 14:37:10 +0000 (GMT)
Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 id <0JYY00901LT19Y00@mail-amer.sun.com>
 (original mail from Eunice.Moon@Sun.COM); Mon, 07 Apr 2008 08:37:10 -0600 (MDT)
Received: from [129.153.131.86] by mail-amer.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 with ESMTPSA id <0JYY001FXLWTBXG0@mail-amer.sun.com>; Mon,
 07 Apr 2008 08:36:33 -0600 (MDT)
Date: Mon, 07 Apr 2008 09:36:26 -0500
From: Eunice Moon <Eunice.Moon@sun.com>
Subject: Re: PSARC/2008/237 Libvirt for LDoms support
In-reply-to: <20080406185449.GA13155@barman.uk.sun.com>
Sender: Eunice.Moon@sun.com
To: John Levon <john.levon@sun.com>
Cc: Dan Hain <Daniel.Hain@sun.com>, PSARC-ext@sun.com,
        Ryan Scott <Ryan.Scott@sun.com>
Message-id: <47FA316A.6050900@Sun.COM>
MIME-version: 1.0
Content-type: text/plain; format=flowed; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <47F6A3D5.7090206@sun.com>
 <20080406185449.GA13155@barman.uk.sun.com>
User-Agent: Thunderbird 2.0.0.6 (X11/20070802)
Status: RO
Content-Length: 1527

Hi John,

Please see my responses inline.

Thanks,
Eunice

John Levon wrote:
> On Fri, Apr 04, 2008 at 02:55:33PM -0700, Dan Hain wrote:
> 
>> virsh is included in libvirt. virsh is built on top of libvirt and allows
>> a user to interact with the hypervisor and guest domains. With the LDoms
>> support, a user can run virsh to interact with the LDoms hypervisor
>> as below:
>>
>>   /usr/bin/virsh -c ldoms:///default
>>  /usr/sbin/virt-install --connect=ldoms:///default 
> 
> Is this also the default (i.e. what happens when --connect isn't
> specified) ?
Xen is the default hypervisor if nothing is specified. User will get
the libvirt error if running it without --connect on the SPARC/LDoms
system where Xen hypervisor is not supported.

% /usr/bin/virsh
libvir: error : could not connect to xen:///
error: failed to connect to the hypervisor

> 
> What happens if a non-supported virsh command is run?
User will get the 'unknown command' error since the non-supported
virsh commands are listed under #ifndef WITH_LDOMS block in
the vshCmdDef/commands[] data structure.

For example:
virsh # attach-device
error: unknown command: 'attach-device'

> 
>> Libvirt for LDoms 1.0.1 Functional Spec:
>> http://sunwebcollab.east.sun.com/gm/folder-1.11.1727657
> 
> This is an open case, so this should be available externally too, if
> it's relevant...
The same info from the Functional Spec is documented in the LDoms
Libvirt Admin Guide and is available at:
http://docs.sun.com/app/docs/doc/820-3838-10

> 
> regards
> john


From Eunice.Moon@sun.com Mon Apr  7 08:02:19 2008
Received: from sunmail4.singapore.sun.com (sunmail4.Singapore.Sun.COM [129.158.71.19])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id m37F2Isu017517
	for <psarc-ext@sac.sfbay.Sun.COM>; Mon, 7 Apr 2008 08:02:19 -0700 (PDT)
Received: from nwk-avmta-1.SFBay.Sun.COM (nwk-avmta-1.SFBay.Sun.COM [129.146.11.74])
	by sunmail4.singapore.sun.com (8.13.4+Sun/8.13.3/ENSMAIL,v2.2) with ESMTP id m37F2BP8020522
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Mon, 7 Apr 2008 23:02:17 +0800 (SGT)
Received: from pmxchannel-daemon.nwk-avmta-1.sfbay.Sun.COM by
 nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0JYY00E2HN3PIC00@nwk-avmta-1.sfbay.Sun.COM> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Mon, 07 Apr 2008 08:02:13 -0700 (PDT)
Received: from brmea-mail-3.sun.com ([192.18.98.34])
 by nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0JYY008KRN3LV640@nwk-avmta-1.sfbay.Sun.COM> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Mon,
 07 Apr 2008 08:02:10 -0700 (PDT)
Received: from fe-amer-10.sun.com ([192.18.109.80])
	by brmea-mail-3.sun.com (8.13.6+Sun/8.12.9) with ESMTP id m37F29Rs001604	for
 <PSARC-ext@sun.com>; Mon, 07 Apr 2008 15:02:09 +0000 (GMT)
Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 id <0JYY00C01MC3JU00@mail-amer.sun.com>
 (original mail from Eunice.Moon@Sun.COM)
 for PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Mon,
 07 Apr 2008 09:02:09 -0600 (MDT)
Received: from [129.153.131.86] by mail-amer.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 with ESMTPSA id <0JYY002D2N31TI70@mail-amer.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Mon, 07 Apr 2008 09:01:49 -0600 (MDT)
Date: Mon, 07 Apr 2008 10:01:46 -0500
From: Eunice Moon <Eunice.Moon@sun.com>
Subject: Re: virsh... / was: Re: PSARC/2008/237 Libvirt for LDoms support
In-reply-to: <47F947CD.9408990D@nrubsig.org>
Sender: Eunice.Moon@sun.com
To: Roland Mainz <roland.mainz@nrubsig.org>
Cc: Dan Hain <Daniel.Hain@sun.com>, PSARC-ext@sun.com,
        Ryan Scott <Ryan.Scott@sun.com>
Message-id: <47FA375A.8030009@Sun.COM>
MIME-version: 1.0
Content-type: text/plain; format=flowed; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <47F6A3D5.7090206@sun.com> <47F947CD.9408990D@nrubsig.org>
User-Agent: Thunderbird 2.0.0.6 (X11/20070802)
Status: RO
Content-Length: 1413

Hi Roland,

The open source libvirt code includes a C file named 'virsh.c'
and that source file is used to create the 'virsh' binary.

Thanks,
Eunice

Roland Mainz wrote:
> Dan Hain wrote:
>> I am sponsoring the following case on behalf of Eunice Moon
>> as a fast-track with timeout set to 04/14/2008.
>>
>> The project requests minor binding.
>>
>> Libvirt for LDoms (Logical Domains) support
>> ===========================================
> [snip]
>> Libvirt is an open source management library that interacts with
>> virtualization capabilities.  The libvirt for LDoms software will add the
>> LDoms driver as a supported hypervisor in the libvirt driver system.
>> With the LDoms support, the libvirt library will interact with the
>> LDoms Manager software via its XML-based control interface to retrieve
>> the LDoms data or request CPU/memory resource updates. It will also
>> support some lifecycle commands (such as create, start, destroy, ..etc)
>> on the guest domain.
>>
>> virsh is included in libvirt. virsh is built on top of libvirt and allows
>> a user to interact with the hypervisor and guest domains. With the LDoms
>> support, a user can run virsh to interact with the LDoms hypervisor
>> as below:
>>
>>    /usr/bin/virsh -c ldoms:///default
> [snip]
> 
> The *sh suffix indicates it's some kind of shell - which shell did you
> use as basis for "virsh" ?
> 
> ----
> 
> Bye,
> Roland
> 


From johnlev@barman.uk.sun.com Mon Apr  7 09:06:27 2008
Received: from sunmail5.uk.sun.com (sunmail5.UK.Sun.COM [129.156.85.165])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id m37G6Rn2019549
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 7 Apr 2008 09:06:27 -0700 (PDT)
Received: from nwk-avmta-1.SFBay.Sun.COM (nwk-avmta-1.SFBay.Sun.COM [129.146.11.74])
	by sunmail5.uk.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.2) with ESMTP id m37G6Fi7028749
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Mon, 7 Apr 2008 17:06:26 +0100 (BST)
Received: from pmxchannel-daemon.nwk-avmta-1.sfbay.Sun.COM by
 nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0JYY00K2DQ2P3V00@nwk-avmta-1.sfbay.Sun.COM> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Mon, 07 Apr 2008 09:06:25 -0700 (PDT)
Received: from dm-uk-02.uk.sun.com ([129.156.101.196])
 by nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0JYY008VRQ2NUJA0@nwk-avmta-1.sfbay.Sun.COM> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Mon,
 07 Apr 2008 09:06:24 -0700 (PDT)
Received: from barman.uk.sun.com (barman.UK.Sun.COM [129.156.132.12])
	by dm-uk-02.uk.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2)
 with ESMTP id m37G6KVA007153; Mon, 07 Apr 2008 17:06:20 +0100 (BST)
Received: from johnlev by barman.uk.sun.com with local (Exim 4.42)
	id 1JitrL-0006DH-9c; Mon, 07 Apr 2008 17:06:15 +0100
X-URL: http://jurassic.eng/~johnlev/
Date: Mon, 07 Apr 2008 17:06:15 +0100
From: John Levon <john.levon@sun.com>
Subject: Re: PSARC/2008/237 Libvirt for LDoms support
In-reply-to: <47FA316A.6050900@Sun.COM>
Sender: John Levon <johnlev@barman.uk.sun.com>
To: Eunice Moon <Eunice.Moon@sun.com>
Cc: Dan Hain <Daniel.Hain@sun.com>, PSARC-ext@sun.com,
        Ryan Scott <Ryan.Scott@sun.com>
Message-id: <20080407160615.GC20546@barman.uk.sun.com>
MIME-version: 1.0
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
Content-disposition: inline
X-PMX-Version: 5.4.1.325704
References: <47F6A3D5.7090206@sun.com>
 <20080406185449.GA13155@barman.uk.sun.com> <47FA316A.6050900@Sun.COM>
User-Agent: Mutt/1.5.6i
Status: RO
Content-Length: 1168

On Mon, Apr 07, 2008 at 09:36:26AM -0500, Eunice Moon wrote:

> >>virsh is included in libvirt. virsh is built on top of libvirt and allows
> >>a user to interact with the hypervisor and guest domains. With the LDoms
> >>support, a user can run virsh to interact with the LDoms hypervisor
> >>as below:
> >>
> >>  /usr/bin/virsh -c ldoms:///default
> >> /usr/sbin/virt-install --connect=ldoms:///default 
> >
> >Is this also the default (i.e. what happens when --connect isn't
> >specified) ?
> Xen is the default hypervisor if nothing is specified. User will get
> the libvirt error if running it without --connect on the SPARC/LDoms
> system where Xen hypervisor is not supported.

It's perhaps not beautiful, but is there any reason libvirt can't do
something like:

#ifdef __sparc
	if (connect == NULL)
		connect = "ldoms:///default/";
#endif

It just seems strange to default to something that can't work.

> >What happens if a non-supported virsh command is run?
> User will get the 'unknown command' error since the non-supported
> virsh commands are listed under #ifndef WITH_LDOMS block in
> the vshCmdDef/commands[] data structure.

OK thanks.

regards
john

From roland.mainz@nrubsig.org Mon Apr  7 09:20:54 2008
Received: from sunmail5.uk.sun.com (sunmail5.UK.Sun.COM [129.156.85.165])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id m37GKrBx019817
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 7 Apr 2008 09:20:53 -0700 (PDT)
Received: from nwk-avmta-2.sfbay.sun.com (nwk-avmta-2.SFBay.Sun.COM [129.145.155.6])
	by sunmail5.uk.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.2) with ESMTP id m37GKnjR006803;
	Mon, 7 Apr 2008 17:20:50 +0100 (BST)
Received: from pmxchannel-daemon.nwk-avmta-2.sfbay.sun.com by
 nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0JYY00F5XQQPIA00@nwk-avmta-2.sfbay.sun.com>; Mon,
 07 Apr 2008 09:20:49 -0700 (PDT)
Received: from sca-ea-mail-2.sun.com ([192.18.43.25])
 by nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0JYY00D43QPFO240@nwk-avmta-2.sfbay.sun.com>; Mon,
 07 Apr 2008 09:20:05 -0700 (PDT)
Received: from relay13i.sun.com
 (ip123.net129179-4.block1.us.syntegra.com [129.179.4.123])
	by sca-ea-mail-2.sun.com (8.13.7+Sun/8.12.9) with ESMTP id m37GK2H5029636;
 Mon, 07 Apr 2008 16:20:03 +0000 (GMT)
Received: from mmp11es.sun.com ([160.41.209.21] [160.41.209.21])
 by relay13i.sun.com with ESMTP id BT-MMP-468944; Mon,
 07 Apr 2008 16:20:02 +0000 (Z)
Received: from relay15i.sun.com (relay15i.sun.com [129.179.4.125])
 by mmp11es.sun.com with ESMTP id BT-MMP-6794084; Mon,
 07 Apr 2008 16:19:59 +0000 (Z)
Received: from mail-in-03.arcor-online.net ([151.189.21.43] [151.189.21.43])
 by relay1i.sun.com with ESMTP id BT-MMP-5213763; Mon,
 07 Apr 2008 16:19:58 +0000 (Z)
Received: from mail-in-05-z2.arcor-online.net
 (mail-in-05-z2.arcor-online.net [151.189.8.17])	by mail-in-03.arcor-online.net
 (Postfix) with ESMTP id 49D3F2CAF25; Mon, 07 Apr 2008 18:19:58 +0200 (CEST)
Received: from mail-in-01.arcor-online.net
 (mail-in-01.arcor-online.net [151.189.21.41])
	by mail-in-05-z2.arcor-online.net (Postfix) with ESMTP id 373592DABFF; Mon,
 07 Apr 2008 18:19:58 +0200 (CEST)
Received: from jupiterb48.nrubsig.org
 (dslb-084-058-198-205.pools.arcor-ip.net [84.58.198.205])
	by mail-in-01.arcor-online.net (Postfix) with ESMTP id 039181A32EB; Mon,
 07 Apr 2008 18:19:57 +0200 (CEST)
Received: from nrubsig.org (localhost [127.0.0.1])	by jupiterb48.nrubsig.org
 (8.13.8+Sun/8.13.8) with ESMTP id m37GJtJu001808; Mon,
 07 Apr 2008 18:19:56 +0200 (CEST)
Date: Mon, 07 Apr 2008 18:19:55 +0200
From: Roland Mainz <roland.mainz@nrubsig.org>
Subject: Re: virsh... / was: Re: PSARC/2008/237 Libvirt for LDoms support
Sender: gisburn@jupiterb48.nrubsig.org
To: Eunice Moon <Eunice.Moon@sun.com>
Cc: Dan Hain <Daniel.Hain@sun.com>, PSARC-ext@sun.com,
        Ryan Scott <Ryan.Scott@sun.com>
Message-id: <47FA49AB.76C4E478@nrubsig.org>
MIME-version: 1.0
X-Mailer: Mozilla 4.76 [en] (X11; U; SunOS 5.11 sun4u)
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
X-Accept-Language: en
X-PMX-Version: 5.4.1.325704
X-Brightmail-Tracker: AAAAAA==
X-Virus-Scanned: ClamAV 0.92.1/6647/Mon Apr  7 10:41:45 2008 on
 mail-in-01.arcor-online.net
X-Virus-Status: Clean
X-Antispam: No, score=-2.6/5.0, scanned in 2.813sec at (localhost [127.0.0.1])
	by smf-spamd v1.3.1 - http://smfs.sf.net/
References: <47F6A3D5.7090206@sun.com> <47F947CD.9408990D@nrubsig.org>
 <47FA375A.8030009@Sun.COM>
Status: RO
Content-Length: 1782

Eunice Moon wrote:
> Roland Mainz wrote:
> > Dan Hain wrote:
> >> I am sponsoring the following case on behalf of Eunice Moon
> >> as a fast-track with timeout set to 04/14/2008.
> >>
> >> The project requests minor binding.
> >>
> >> Libvirt for LDoms (Logical Domains) support
> >> ===========================================
> > [snip]
> >> Libvirt is an open source management library that interacts with
> >> virtualization capabilities.  The libvirt for LDoms software will add the
> >> LDoms driver as a supported hypervisor in the libvirt driver system.
> >> With the LDoms support, the libvirt library will interact with the
> >> LDoms Manager software via its XML-based control interface to retrieve
> >> the LDoms data or request CPU/memory resource updates. It will also
> >> support some lifecycle commands (such as create, start, destroy, ..etc)
> >> on the guest domain.
> >>
> >> virsh is included in libvirt. virsh is built on top of libvirt and allows
> >> a user to interact with the hypervisor and guest domains. With the LDoms
> >> support, a user can run virsh to interact with the LDoms hypervisor
> >> as below:
> >>
> >>    /usr/bin/virsh -c ldoms:///default
> > [snip]
> >
> > The *sh suffix indicates it's some kind of shell - which shell did you
> > use as basis for "virsh" ?
> 
> The open source libvirt code includes a C file named 'virsh.c'
> and that source file is used to create the 'virsh' binary.

Is there anywhere a manpage for "virsh" ?

BTW: The code seems to depend on the GPL-licensed readline stuff - in
which consolidation are you going to integrate ?

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) roland.mainz@nrubsig.org
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 7950090
 (;O/ \/ \O;)

From Ryan.Scott@sun.com Mon Apr  7 10:25:18 2008
Received: from sunmail5.uk.sun.com (sunmail5.UK.Sun.COM [129.156.85.165])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id m37HPHaR022331
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 7 Apr 2008 10:25:17 -0700 (PDT)
Received: from nwk-avmta-1.SFBay.Sun.COM (nwk-avmta-1.SFBay.Sun.COM [129.146.11.74])
	by sunmail5.uk.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.2) with ESMTP id m37HP9mb005675
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Mon, 7 Apr 2008 18:25:16 +0100 (BST)
Received: from pmxchannel-daemon.nwk-avmta-1.sfbay.Sun.COM by
 nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0JYY0021TTQ3ZN00@nwk-avmta-1.sfbay.Sun.COM> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Mon, 07 Apr 2008 10:25:15 -0700 (PDT)
Received: from sca-es-mail-2.sun.com ([192.18.43.133])
 by nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0JYY002CNTQ24O60@nwk-avmta-1.sfbay.Sun.COM> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Mon,
 07 Apr 2008 10:25:15 -0700 (PDT)
Received: from fe-sfbay-10.sun.com ([192.18.43.129])
	by sca-es-mail-2.sun.com (8.13.7+Sun/8.12.9) with ESMTP id m37HPE3e022100	for
 <PSARC-ext@sun.com>; Mon, 07 Apr 2008 10:25:14 -0700 (PDT)
Received: from conversion-daemon.fe-sfbay-10.sun.com by fe-sfbay-10.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 id <0JYY00F01T0AGM00@fe-sfbay-10.sun.com>
 (original mail from Ryan.Scott@Sun.COM)
 for PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Mon,
 07 Apr 2008 10:25:14 -0700 (PDT)
Received: from [129.153.88.128] by fe-sfbay-10.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 with ESMTPSA id <0JYY00LMCTPVO7B0@fe-sfbay-10.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Mon, 07 Apr 2008 10:25:12 -0700 (PDT)
Date: Mon, 07 Apr 2008 10:25:01 -0700
From: Ryan Scott <Ryan.Scott@sun.com>
Subject: Re: virsh... / was: Re: PSARC/2008/237 Libvirt for LDoms support
In-reply-to: <47FA49AB.76C4E478@nrubsig.org>
Sender: Ryan.Scott@sun.com
To: Roland Mainz <roland.mainz@nrubsig.org>
Cc: Eunice Moon <Eunice.Moon@sun.com>, Dan Hain <Daniel.Hain@sun.com>,
        PSARC-ext@sun.com
Message-id: <47FA58ED.2090504@Sun.COM>
MIME-version: 1.0
Content-type: text/plain; format=flowed; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <47F6A3D5.7090206@sun.com> <47F947CD.9408990D@nrubsig.org>
 <47FA375A.8030009@Sun.COM> <47FA49AB.76C4E478@nrubsig.org>
User-Agent: Thunderbird 2.0.0.12pre (X11/20071231)
Status: RO
Content-Length: 1797

Roland Mainz wrote:
> Eunice Moon wrote:
>> Roland Mainz wrote:
>>> Dan Hain wrote:
>>>> I am sponsoring the following case on behalf of Eunice Moon
>>>> as a fast-track with timeout set to 04/14/2008.
>>>>
>>>> The project requests minor binding.
>>>>
>>>> Libvirt for LDoms (Logical Domains) support
>>>> ===========================================
>>> [snip]
>>>> Libvirt is an open source management library that interacts with
>>>> virtualization capabilities.  The libvirt for LDoms software will add the
>>>> LDoms driver as a supported hypervisor in the libvirt driver system.
>>>> With the LDoms support, the libvirt library will interact with the
>>>> LDoms Manager software via its XML-based control interface to retrieve
>>>> the LDoms data or request CPU/memory resource updates. It will also
>>>> support some lifecycle commands (such as create, start, destroy, ..etc)
>>>> on the guest domain.
>>>>
>>>> virsh is included in libvirt. virsh is built on top of libvirt and allows
>>>> a user to interact with the hypervisor and guest domains. With the LDoms
>>>> support, a user can run virsh to interact with the LDoms hypervisor
>>>> as below:
>>>>
>>>>    /usr/bin/virsh -c ldoms:///default
>>> [snip]
>>>
>>> The *sh suffix indicates it's some kind of shell - which shell did you
>>> use as basis for "virsh" ?
>> The open source libvirt code includes a C file named 'virsh.c'
>> and that source file is used to create the 'virsh' binary.
> 
> Is there anywhere a manpage for "virsh" ?

virsh(1m) already exists for x86.

More information is available at http://libvirt.org/

> 
> BTW: The code seems to depend on the GPL-licensed readline stuff - in
> which consolidation are you going to integrate ?

libvirt is already in the xvm gate.

-Ryan

> 
> ----
> 
> Bye,
> Roland
> 


From Eunice.Moon@sun.com Mon Apr  7 11:06:48 2008
Received: from sunmail4.singapore.sun.com (sunmail4.Singapore.Sun.COM [129.158.71.19])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id m37I6lph023826
	for <psarc-ext@sac.sfbay.Sun.COM>; Mon, 7 Apr 2008 11:06:48 -0700 (PDT)
Received: from nwk-avmta-2.sfbay.sun.com (nwk-avmta-2.SFBay.Sun.COM [129.145.155.6])
	by sunmail4.singapore.sun.com (8.13.4+Sun/8.13.3/ENSMAIL,v2.2) with ESMTP id m37I6dCO004606;
	Tue, 8 Apr 2008 02:06:45 +0800 (SGT)
Received: from pmxchannel-daemon.nwk-avmta-2.sfbay.sun.com by
 nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0JYY00J0JVN8EK00@nwk-avmta-2.sfbay.sun.com>; Mon,
 07 Apr 2008 11:06:44 -0700 (PDT)
Received: from brmea-mail-2.sun.com ([192.18.98.43])
 by nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0JYY00DCRVN4O9B0@nwk-avmta-2.sfbay.sun.com>; Mon,
 07 Apr 2008 11:06:40 -0700 (PDT)
Received: from fe-amer-09.sun.com ([192.18.109.79])
	by brmea-mail-2.sun.com (8.13.6+Sun/8.12.9) with ESMTP id m37I6eFk020948; Mon,
 07 Apr 2008 18:06:40 +0000 (GMT)
Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 id <0JYY00201U9V8B00@mail-amer.sun.com>
 (original mail from Eunice.Moon@Sun.COM); Mon, 07 Apr 2008 12:06:40 -0600 (MDT)
Received: from [129.153.131.86] by mail-amer.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 with ESMTPSA id <0JYY00BDVVMYF8A0@mail-amer.sun.com>; Mon,
 07 Apr 2008 12:06:35 -0600 (MDT)
Date: Mon, 07 Apr 2008 13:06:31 -0500
From: Eunice Moon <Eunice.Moon@sun.com>
Subject: Re: PSARC/2008/237 Libvirt for LDoms support
In-reply-to: <20080407160615.GC20546@barman.uk.sun.com>
Sender: Eunice.Moon@sun.com
To: John Levon <john.levon@sun.com>
Cc: Dan Hain <Daniel.Hain@sun.com>, PSARC-ext@sun.com,
        Ryan Scott <Ryan.Scott@sun.com>
Message-id: <47FA62A7.3030907@Sun.COM>
MIME-version: 1.0
Content-type: text/plain; format=flowed; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <47F6A3D5.7090206@sun.com>
 <20080406185449.GA13155@barman.uk.sun.com> <47FA316A.6050900@Sun.COM>
 <20080407160615.GC20546@barman.uk.sun.com>
User-Agent: Thunderbird 2.0.0.6 (X11/20070802)
Status: RO
Content-Length: 1685

Hi John,

 From http://libvirt.org/
The open source libvirt aims at providing a long term stable C API
initially for Xen paravirtualization but it can also integrate with
other virtualization mechanisms. It currently also supports QEMU, KVM
and OpenVZ.

So, xen is the default hypervisor and users would specify any other
hypervisor as the command line options (with --connect) if they want
to connect to any other hypervisor than xen.

Thanks,
Eunice

John Levon wrote:
> On Mon, Apr 07, 2008 at 09:36:26AM -0500, Eunice Moon wrote:
> 
>>>> virsh is included in libvirt. virsh is built on top of libvirt and allows
>>>> a user to interact with the hypervisor and guest domains. With the LDoms
>>>> support, a user can run virsh to interact with the LDoms hypervisor
>>>> as below:
>>>>
>>>>  /usr/bin/virsh -c ldoms:///default
>>>> /usr/sbin/virt-install --connect=ldoms:///default 
>>> Is this also the default (i.e. what happens when --connect isn't
>>> specified) ?
>> Xen is the default hypervisor if nothing is specified. User will get
>> the libvirt error if running it without --connect on the SPARC/LDoms
>> system where Xen hypervisor is not supported.
> 
> It's perhaps not beautiful, but is there any reason libvirt can't do
> something like:
> 
> #ifdef __sparc
> 	if (connect == NULL)
> 		connect = "ldoms:///default/";
> #endif
> 
> It just seems strange to default to something that can't work.
> 
>>> What happens if a non-supported virsh command is run?
>> User will get the 'unknown command' error since the non-supported
>> virsh commands are listed under #ifndef WITH_LDOMS block in
>> the vshCmdDef/commands[] data structure.
> 
> OK thanks.
> 
> regards
> john


From Nicolas.Williams@sun.com Mon Apr  7 11:07:25 2008
Received: from sunmail4.singapore.sun.com (sunmail4.Singapore.Sun.COM [129.158.71.19])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id m37I7Oo6023881
	for <psarc-ext@sac.sfbay.Sun.COM>; Mon, 7 Apr 2008 11:07:24 -0700 (PDT)
Received: from nwk-avmta-1.SFBay.Sun.COM (nwk-avmta-1.SFBay.Sun.COM [129.146.11.74])
	by sunmail4.singapore.sun.com (8.13.4+Sun/8.13.3/ENSMAIL,v2.2) with ESMTP id m37I7HE6004831;
	Tue, 8 Apr 2008 02:07:20 +0800 (SGT)
Received: from pmxchannel-daemon.nwk-avmta-1.sfbay.Sun.COM by
 nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0JYY0061LVO5W800@nwk-avmta-1.sfbay.Sun.COM>; Mon,
 07 Apr 2008 11:07:17 -0700 (PDT)
Received: from binky.Central.Sun.COM ([129.153.128.104])
 by nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0JYY006TKVO47400@nwk-avmta-1.sfbay.Sun.COM>; Mon,
 07 Apr 2008 11:07:16 -0700 (PDT)
Received: from binky.Central.Sun.COM (localhost [127.0.0.1])
	by binky.Central.Sun.COM (8.14.1+Sun/8.14.1) with ESMTP id m37I7GDO005020;
 Mon, 07 Apr 2008 13:07:16 -0500 (CDT)
Received: (from nw141292@localhost)
	by binky.Central.Sun.COM (8.14.1+Sun/8.14.1/Submit) id m37I7GYj005019; Mon,
 07 Apr 2008 13:07:16 -0500 (CDT)
Date: Mon, 07 Apr 2008 13:07:16 -0500
From: Nicolas Williams <Nicolas.Williams@sun.com>
Subject: Re: virsh... / was: Re: PSARC/2008/237 Libvirt for LDoms support
In-reply-to: <47FA58ED.2090504@Sun.COM>
To: Ryan Scott <Ryan.Scott@sun.com>
Cc: Roland Mainz <roland.mainz@nrubsig.org>, Eunice Moon <Eunice.Moon@sun.com>,
        Dan Hain <Daniel.Hain@sun.com>, PSARC-ext@sun.com
Mail-followup-to: Ryan Scott <Ryan.Scott@Sun.COM>,
 Roland Mainz <roland.mainz@nrubsig.org>, Eunice Moon <Eunice.Moon@sun.com>,
 Dan Hain <Daniel.Hain@sun.com>, PSARC-ext@sun.com
Message-id: <20080407180715.GC16998@Sun.COM>
MIME-version: 1.0
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
Content-disposition: inline
X-PMX-Version: 5.4.1.325704
References: <47F6A3D5.7090206@sun.com> <47F947CD.9408990D@nrubsig.org>
 <47FA375A.8030009@Sun.COM> <47FA49AB.76C4E478@nrubsig.org>
 <47FA58ED.2090504@Sun.COM>
X-Authentication-warning: binky.Central.Sun.COM: nw141292 set sender to
 Nicolas.Williams@sun.com using -f
User-Agent: Mutt/1.5.7i
Status: RO
Content-Length: 659

On Mon, Apr 07, 2008 at 10:25:01AM -0700, Ryan Scott wrote:
> Roland Mainz wrote:
> >Is there anywhere a manpage for "virsh" ?
> 
> virsh(1m) already exists for x86.
> 
> More information is available at http://libvirt.org/

Shouldn't the manpage be part of the case materials?

I can't, BTW, find such a manpage at libvirt.org, not without actually
downloading the source.

Searching the 'Net I can find it.

The answer to Roland's question is that virsh is a shell, just not in
the sense that he thinks of "shell" -- it's a shell in the same sense
that the sqlite3(1) program is a shell: an interactive, text-based
interface to a complex feature.

Nico
-- 

From Ryan.Scott@sun.com Mon Apr  7 11:15:05 2008
Received: from newsunmail1brm.central.sun.com (newsunmail1brm.Central.Sun.COM [129.147.62.245])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id m37IF5dk024562
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 7 Apr 2008 11:15:05 -0700 (PDT)
Received: from nwk-avmta-1.SFBay.Sun.COM (nwk-avmta-1.SFBay.Sun.COM [129.146.11.74])
	by newsunmail1brm.central.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id m37IF42u050267
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Mon, 7 Apr 2008 12:15:04 -0600 (MDT)
Received: from pmxchannel-daemon.nwk-avmta-1.sfbay.Sun.COM by
 nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0JYY0070RW11IX00@nwk-avmta-1.sfbay.Sun.COM> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Mon, 07 Apr 2008 11:15:01 -0700 (PDT)
Received: from sca-es-mail-1.sun.com ([192.18.43.132])
 by nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0JYY006IQW0Z7110@nwk-avmta-1.sfbay.Sun.COM> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Mon,
 07 Apr 2008 11:14:59 -0700 (PDT)
Received: from fe-sfbay-10.sun.com ([192.18.43.129])
	by sca-es-mail-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id m37IEwjI011913	for
 <PSARC-ext@sun.com>; Mon, 07 Apr 2008 11:14:58 -0700 (PDT)
Received: from conversion-daemon.fe-sfbay-10.sun.com by fe-sfbay-10.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 id <0JYY00M01VV3GA00@fe-sfbay-10.sun.com>
 (original mail from Ryan.Scott@Sun.COM)
 for PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Mon,
 07 Apr 2008 11:14:58 -0700 (PDT)
Received: from [129.153.88.128] by fe-sfbay-10.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 with ESMTPSA id <0JYY00IAFW0K9GG0@fe-sfbay-10.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Mon, 07 Apr 2008 11:14:45 -0700 (PDT)
Date: Mon, 07 Apr 2008 11:14:39 -0700
From: Ryan Scott <Ryan.Scott@sun.com>
Subject: Re: virsh... / was: Re: PSARC/2008/237 Libvirt for LDoms support
In-reply-to: <20080407180715.GC16998@Sun.COM>
Sender: Ryan.Scott@sun.com
To: Ryan Scott <Ryan.Scott@sun.com>, Roland Mainz <roland.mainz@nrubsig.org>,
        Eunice Moon <Eunice.Moon@sun.com>, Dan Hain <Daniel.Hain@sun.com>,
        PSARC-ext@sun.com
Message-id: <47FA648F.50509@Sun.COM>
MIME-version: 1.0
Content-type: text/plain; format=flowed; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <47F6A3D5.7090206@sun.com> <47F947CD.9408990D@nrubsig.org>
 <47FA375A.8030009@Sun.COM> <47FA49AB.76C4E478@nrubsig.org>
 <47FA58ED.2090504@Sun.COM> <20080407180715.GC16998@Sun.COM>
User-Agent: Thunderbird 2.0.0.12pre (X11/20071231)
Status: RO
Content-Length: 1084

Nicolas Williams wrote:
> On Mon, Apr 07, 2008 at 10:25:01AM -0700, Ryan Scott wrote:
>> Roland Mainz wrote:
>>> Is there anywhere a manpage for "virsh" ?
>> virsh(1m) already exists for x86.
>>
>> More information is available at http://libvirt.org/
> 
> Shouldn't the manpage be part of the case materials?

I don't think the man page needs to be changed for this case, so I 
didn't think it was necessary to include it.  We can include a copy if 
you want.

We probably should have included the man page changes in 2008/165, but 
that is an entirely different discussion.

> 
> I can't, BTW, find such a manpage at libvirt.org, not without actually
> downloading the source.

Sorry, I didn't intend for that to be a pointer to the man page, just 
some further information.

-Ryan

> 
> Searching the 'Net I can find it.
> 
> The answer to Roland's question is that virsh is a shell, just not in
> the sense that he thinks of "shell" -- it's a shell in the same sense
> that the sqlite3(1) program is a shell: an interactive, text-based
> interface to a complex feature.
> 
> Nico


From johnlev@barman.uk.sun.com Mon Apr  7 11:28:57 2008
Received: from sunmail3mpk.sfbay.sun.com (sunmail3mpk.SFBay.Sun.COM [129.146.11.52])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id m37ISvng024837
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 7 Apr 2008 11:28:57 -0700 (PDT)
Received: from brm-avmta-1.central.sun.com (brm-avmta-1.Central.Sun.COM [129.147.4.11])
	by sunmail3mpk.sfbay.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id m37ISvlk011194
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Mon, 7 Apr 2008 11:28:57 -0700 (PDT)
Received: from pmxchannel-daemon.brm-avmta-1.central.sun.com by
 brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0JYY00F0JWO7MO00@brm-avmta-1.central.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Mon, 07 Apr 2008 12:28:55 -0600 (MDT)
Received: from dm-uk-02.uk.sun.com ([129.156.101.196])
 by brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0JYY003IIWO1H2D0@brm-avmta-1.central.sun.com> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Mon,
 07 Apr 2008 12:28:50 -0600 (MDT)
Received: from barman.uk.sun.com (barman.UK.Sun.COM [129.156.132.12])
	by dm-uk-02.uk.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2)
 with ESMTP id m37ISlJR009108; Mon, 07 Apr 2008 19:28:47 +0100 (BST)
Received: from johnlev by barman.uk.sun.com with local (Exim 4.42)
	id 1Jiw5C-0007Ea-88; Mon, 07 Apr 2008 19:28:42 +0100
X-URL: http://jurassic.eng/~johnlev/
Date: Mon, 07 Apr 2008 19:28:42 +0100
From: John Levon <john.levon@sun.com>
Subject: Re: PSARC/2008/237 Libvirt for LDoms support
In-reply-to: <47FA62A7.3030907@Sun.COM>
Sender: John Levon <johnlev@barman.uk.sun.com>
To: Eunice Moon <Eunice.Moon@sun.com>
Cc: Dan Hain <Daniel.Hain@sun.com>, PSARC-ext@sun.com,
        Ryan Scott <Ryan.Scott@sun.com>
Message-id: <20080407182841.GB26587@barman.uk.sun.com>
MIME-version: 1.0
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
Content-disposition: inline
X-PMX-Version: 5.4.1.325704
References: <47F6A3D5.7090206@sun.com>
 <20080406185449.GA13155@barman.uk.sun.com> <47FA316A.6050900@Sun.COM>
 <20080407160615.GC20546@barman.uk.sun.com> <47FA62A7.3030907@Sun.COM>
User-Agent: Mutt/1.5.6i
Status: RO
Content-Length: 860

On Mon, Apr 07, 2008 at 01:06:31PM -0500, Eunice Moon wrote:

> From http://libvirt.org/
> The open source libvirt aims at providing a long term stable C API
> initially for Xen paravirtualization but it can also integrate with
> other virtualization mechanisms. It currently also supports QEMU, KVM
> and OpenVZ.
> 
> So, xen is the default hypervisor and users would specify any other
> hypervisor as the command line options (with --connect) if they want
> to connect to any other hypervisor than xen.

With respect, this doesn't answer my question. I'm aware of what libvirt
*can* do. I'm asking for a reason to default to a known broken behaviour
on SPARC platforms, or a modification of the case to default to ldoms.

(As an analogy: if libvirt 3.0 or whatever defaulted to KVM, we'd change
it so the Solaris version defaulted to xVM/Xen.)

regards
john

From Eunice.Moon@sun.com Mon Apr  7 12:32:20 2008
Received: from sunmail3mpk.sfbay.sun.com (sunmail3mpk.SFBay.Sun.COM [129.146.11.52])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id m37JWJPm027547
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 7 Apr 2008 12:32:20 -0700 (PDT)
Received: from nwk-avmta-2.sfbay.sun.com (nwk-avmta-2.SFBay.Sun.COM [129.145.155.6])
	by sunmail3mpk.sfbay.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id m37JWIeZ026819;
	Mon, 7 Apr 2008 12:32:18 -0700 (PDT)
Received: from pmxchannel-daemon.nwk-avmta-2.sfbay.sun.com by
 nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0JYY00M25ZLTBF00@nwk-avmta-2.sfbay.sun.com>; Mon,
 07 Apr 2008 12:32:17 -0700 (PDT)
Received: from brmea-mail-2.sun.com ([192.18.98.43])
 by nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0JYY00DAIZLSO2F0@nwk-avmta-2.sfbay.sun.com>; Mon,
 07 Apr 2008 12:32:16 -0700 (PDT)
Received: from fe-amer-09.sun.com ([192.18.109.79])
	by brmea-mail-2.sun.com (8.13.6+Sun/8.12.9) with ESMTP id m37JWGMh010494; Mon,
 07 Apr 2008 19:32:16 +0000 (GMT)
Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 id <0JYY00M01Y4ICO00@mail-amer.sun.com>
 (original mail from Eunice.Moon@Sun.COM); Mon, 07 Apr 2008 13:32:16 -0600 (MDT)
Received: from [129.153.131.86] by mail-amer.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 with ESMTPSA id <0JYY00800ZLGWXG0@mail-amer.sun.com>; Mon,
 07 Apr 2008 13:32:04 -0600 (MDT)
Date: Mon, 07 Apr 2008 14:32:01 -0500
From: Eunice Moon <Eunice.Moon@sun.com>
Subject: Re: PSARC/2008/237 Libvirt for LDoms support
In-reply-to: <20080407182841.GB26587@barman.uk.sun.com>
Sender: Eunice.Moon@sun.com
To: John Levon <john.levon@sun.com>
Cc: Dan Hain <Daniel.Hain@sun.com>, PSARC-ext@sun.com,
        Ryan Scott <Ryan.Scott@sun.com>
Message-id: <47FA76B1.9040908@Sun.COM>
MIME-version: 1.0
Content-type: text/plain; format=flowed; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <47F6A3D5.7090206@sun.com>
 <20080406185449.GA13155@barman.uk.sun.com> <47FA316A.6050900@Sun.COM>
 <20080407160615.GC20546@barman.uk.sun.com> <47FA62A7.3030907@Sun.COM>
 <20080407182841.GB26587@barman.uk.sun.com>
User-Agent: Thunderbird 2.0.0.6 (X11/20070802)
Status: RO
Content-Length: 1143

Hi John,

Yes, I can change the code to make default to ldoms for
SPARC platforms.  I thought that xen would be the default hypervisor
for any cases and users are expected to use --connect for any other
hypervisor.

Thanks,
Eunice

John Levon wrote:
> On Mon, Apr 07, 2008 at 01:06:31PM -0500, Eunice Moon wrote:
> 
>> From http://libvirt.org/
>> The open source libvirt aims at providing a long term stable C API
>> initially for Xen paravirtualization but it can also integrate with
>> other virtualization mechanisms. It currently also supports QEMU, KVM
>> and OpenVZ.
>>
>> So, xen is the default hypervisor and users would specify any other
>> hypervisor as the command line options (with --connect) if they want
>> to connect to any other hypervisor than xen.
> 
> With respect, this doesn't answer my question. I'm aware of what libvirt
> *can* do. I'm asking for a reason to default to a known broken behaviour
> on SPARC platforms, or a modification of the case to default to ldoms.
> 
> (As an analogy: if libvirt 3.0 or whatever defaulted to KVM, we'd change
> it so the Solaris version defaulted to xVM/Xen.)
> 
> regards
> john


From unixconsole@yahoo.com Mon Apr  7 21:18:12 2008
Received: from sunmail2sca.sfbay.sun.com (sunmail2sca.SFBay.Sun.COM [129.145.155.234])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id m384ICND014028
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 7 Apr 2008 21:18:12 -0700 (PDT)
Received: from brm-avmta-1.central.sun.com (brm-avmta-1.Central.Sun.COM [129.147.4.11])
	by sunmail2sca.sfbay.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id m384IBpX018743
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Mon, 7 Apr 2008 21:18:12 -0700 (PDT)
Received: from pmxchannel-daemon.brm-avmta-1.central.sun.com by
 brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0JYZ00C07NYBJR00@brm-avmta-1.central.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Mon, 07 Apr 2008 22:18:11 -0600 (MDT)
Received: from sca-ea-mail-3.sun.com ([192.18.43.21])
 by brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0JYZ00BBSNYA4OD0@brm-avmta-1.central.sun.com> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Mon,
 07 Apr 2008 22:18:10 -0600 (MDT)
Received: from relay22.sun.com
 (relay22.sun.com [192.12.251.34] (may be forged))	by sca-ea-mail-3.sun.com
 (8.13.6+Sun/8.12.9) with ESMTP id m384IALN018002	for <PSARC-ext@sun.com>; Tue,
 08 Apr 2008 04:18:10 +0000 (GMT)
Received: from mms24es.sun.com ([150.143.232.74] [150.143.232.74])
 by relay22i.sun.com with ESMTP id BT-MMP-2172579 for PSARC-ext@sun.com; Tue,
 08 Apr 2008 04:18:10 +0000 (Z)
Received: from relay23.sun.com (relay23.sun.com [192.12.251.54])
 by mms24es.sun.com with ESMTP id BT-MMP-2447861 for PSARC-ext@sun.com; Tue,
 08 Apr 2008 04:18:09 +0000 (Z)
Received: from web30803.mail.mud.yahoo.com ([68.142.200.146] [68.142.200.146])
 by relay23i.sun.com id BT-MMP-23643968 for PSARC-ext@sun.com; Tue,
 08 Apr 2008 04:18:09 +0000 (Z)
Received: (qmail 41993 invoked by uid 60001); Tue, 08 Apr 2008 04:17:45 +0000
Received: from [71.2.176.248] by web30803.mail.mud.yahoo.com via HTTP; Mon,
 07 Apr 2008 21:17:45 -0700 (PDT)
Date: Mon, 07 Apr 2008 21:17:45 -0700 (PDT)
From: Octave Orgeron <unixconsole@yahoo.com>
Subject: Re: PSARC/2008/237 Libvirt for LDoms support
To: Eunice Moon <Eunice.Moon@sun.com>, John Levon <john.levon@sun.com>
Cc: Dan Hain <Daniel.Hain@sun.com>, Ryan Scott <Ryan.Scott@sun.com>,
        PSARC-ext@sun.com
Message-id: <227665.41813.qm@web30803.mail.mud.yahoo.com>
MIME-version: 1.0
X-Mailer: YahooMailRC/902.40 YahooMailWebService/0.7.185
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;  s=s1024; d=yahoo.com;
 h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:MIME-Version:Content-Type:Message-ID;
 b=pMZn63aqkoo+yMqL3+rPhkz/NGsbxtLBZV1KLRyImjSiB8l1zphDGKdQYHhpzhDPaZ4G6KJnbVTLwnJmITX7i1aTrufjLjwfKUmdiqcxAYoHLM5MUKT7OVKmmw5B/O3CANnFt6v+gkbBFiuvBUWodrRA6DTiroFpdNBKc6+Kb9s=;
X-PMX-Version: 5.4.1.325704
X-Brightmail-Tracker: AAAAAA==
X-YMail-OSG: 
 Euv9kscVM1nzX0aXkE1y4OHD62Jck7G5fTbCShdhS3QHbtyqbi7DrmqNSYC1UdhFwfU3xzH9g8K7P8NJyjfHcJKYsNaxRvoBd1QfATBG33u8m7FMRxI-
X-Antispam: No, score=-2.6/5.0, scanned in 0.302sec at (localhost [127.0.0.1])
	by smf-spamd v1.3.1 - http://smfs.sf.net/
Status: RO
Content-Length: 2581

Hi,

I agree that libvert should default to the LDom hypervisor on the SPARC platform since the other hypervisors don't apply to the SPARC platform. Also, having a detailed man page should be a requirement for any tool released. Will this include the virt-manager tool as well, or is that a separate project? I'm also concerned about security. If a control domain has libvirt installed, can it be managed by a remote system that has the libvirt or virt-manager tools installed? If so, how is security implemented to prevent unauthorized access?
 
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
Octave J. Orgeron
Solaris Systems Engineer
http://www.opensolaris.org/os/community/sysadmin/
http://unixconsole.blogspot.com
unixconsole@yahoo.com
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

----- Original Message ----
From: Eunice Moon <Eunice.Moon@sun.com>
To: John Levon <john.levon@sun.com>
Cc: Dan Hain <Daniel.Hain@sun.com>; Ryan Scott <Ryan.Scott@sun.com>; PSARC-ext@sun.com
Sent: Monday, April 7, 2008 2:32:01 PM
Subject: Re: PSARC/2008/237 Libvirt for LDoms support

Hi John,

Yes, I can change the code to make default to ldoms for
SPARC platforms.  I thought that xen would be the default hypervisor
for any cases and users are expected to use --connect for any other
hypervisor.

Thanks,
Eunice

John Levon wrote:
> On Mon, Apr 07, 2008 at 01:06:31PM -0500, Eunice Moon wrote:
> 
>> From http://libvirt.org/
>> The open source libvirt aims at providing a long term stable C API
>> initially for Xen paravirtualization but it can also integrate with
>> other virtualization mechanisms. It currently also supports QEMU, KVM
>> and OpenVZ.
>>
>> So, xen is the default hypervisor and users would specify any other
>> hypervisor as the command line options (with --connect) if they want
>> to connect to any other hypervisor than xen.
> 
> With respect, this doesn't answer my question. I'm aware of what libvirt
> *can* do. I'm asking for a reason to default to a known broken behaviour
> on SPARC platforms, or a modification of the case to default to ldoms.
> 
> (As an analogy: if libvirt 3.0 or whatever defaulted to KVM, we'd change
> it so the Solaris version defaulted to xVM/Xen.)
> 
> regards
> john

_______________________________________________
opensolaris-arc mailing list
opensolaris-arc@opensolaris.org





      ____________________________________________________________________________________
You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost.  
http://tc.deals.yahoo.com/tc/blockbuster/text5.com

From Eunice.Moon@sun.com Tue Apr  8 08:54:56 2008
Received: from sunmail2sca.sfbay.sun.com (sunmail2sca.SFBay.Sun.COM [129.145.155.234])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id m38FstR1029195
	for <psarc-ext@sac.sfbay.sun.com>; Tue, 8 Apr 2008 08:54:55 -0700 (PDT)
Received: from brm-avmta-1.central.sun.com (brm-avmta-1.Central.Sun.COM [129.147.4.11])
	by sunmail2sca.sfbay.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id m38Fsm1l003100;
	Tue, 8 Apr 2008 08:54:54 -0700 (PDT)
Received: from pmxchannel-daemon.brm-avmta-1.central.sun.com by
 brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0JZ000E0ZK7HZJ00@brm-avmta-1.central.sun.com>; Tue,
 08 Apr 2008 09:54:53 -0600 (MDT)
Received: from brmea-mail-1.sun.com ([192.18.98.31])
 by brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0JZ0008FNK7G9V70@brm-avmta-1.central.sun.com>; Tue,
 08 Apr 2008 09:54:52 -0600 (MDT)
Received: from fe-amer-10.sun.com ([192.18.109.80])
	by brmea-mail-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id m38FsqHk021438; Tue,
 08 Apr 2008 15:54:52 +0000 (GMT)
Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 id <0JZ000L01JTBQH00@mail-amer.sun.com>
 (original mail from Eunice.Moon@Sun.COM); Tue, 08 Apr 2008 09:54:52 -0600 (MDT)
Received: from [129.153.131.86] by mail-amer.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 with ESMTPSA id <0JZ000MUXK75X6E0@mail-amer.sun.com>; Tue,
 08 Apr 2008 09:54:41 -0600 (MDT)
Date: Tue, 08 Apr 2008 10:54:37 -0500
From: Eunice Moon <Eunice.Moon@sun.com>
Subject: Re: PSARC/2008/237 Libvirt for LDoms support
In-reply-to: <227665.41813.qm@web30803.mail.mud.yahoo.com>
Sender: Eunice.Moon@sun.com
To: Octave Orgeron <unixconsole@yahoo.com>
Cc: John Levon <john.levon@sun.com>, Dan Hain <Daniel.Hain@sun.com>,
        Ryan Scott <Ryan.Scott@sun.com>, PSARC-ext@sun.com
Message-id: <47FB953D.4040500@Sun.COM>
MIME-version: 1.0
Content-type: text/plain; format=flowed; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <227665.41813.qm@web30803.mail.mud.yahoo.com>
User-Agent: Thunderbird 2.0.0.6 (X11/20070802)
Status: RO
Content-Length: 3180

Hi Octave,

OK. I will make the code changes to default to ldoms on the SPARC
platform if user doesn't specify with --connect.

I will include a copy of man page.

This doesn't include the virt-manager tool. virt-manager is
done by the JDS team as a separate project. Please see
http://sac.sfbay/Archives/CaseLog/arc/LSARC/2007/175/

libvirt will be installed on the control domain where the LDoms
Manager is running and it can't be managed by a remote system.

Thanks,
Eunice

Octave Orgeron wrote:
> Hi,
> 
> I agree that libvert should default to the LDom hypervisor on the SPARC platform since the other hypervisors don't apply to the SPARC platform. Also, having a detailed man page should be a requirement for any tool released. Will this include the virt-manager tool as well, or is that a separate project? I'm also concerned about security. If a control domain has libvirt installed, can it be managed by a remote system that has the libvirt or virt-manager tools installed? If so, how is security implemented to prevent unauthorized access?
>  
> *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
> Octave J. Orgeron
> Solaris Systems Engineer
> http://www.opensolaris.org/os/community/sysadmin/
> http://unixconsole.blogspot.com
> unixconsole@yahoo.com
> *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
> 
> ----- Original Message ----
> From: Eunice Moon <Eunice.Moon@sun.com>
> To: John Levon <john.levon@sun.com>
> Cc: Dan Hain <Daniel.Hain@sun.com>; Ryan Scott <Ryan.Scott@sun.com>; PSARC-ext@sun.com
> Sent: Monday, April 7, 2008 2:32:01 PM
> Subject: Re: PSARC/2008/237 Libvirt for LDoms support
> 
> Hi John,
> 
> Yes, I can change the code to make default to ldoms for
> SPARC platforms.  I thought that xen would be the default hypervisor
> for any cases and users are expected to use --connect for any other
> hypervisor.
> 
> Thanks,
> Eunice
> 
> John Levon wrote:
>> On Mon, Apr 07, 2008 at 01:06:31PM -0500, Eunice Moon wrote:
>>
>>> From http://libvirt.org/
>>> The open source libvirt aims at providing a long term stable C API
>>> initially for Xen paravirtualization but it can also integrate with
>>> other virtualization mechanisms. It currently also supports QEMU, KVM
>>> and OpenVZ.
>>>
>>> So, xen is the default hypervisor and users would specify any other
>>> hypervisor as the command line options (with --connect) if they want
>>> to connect to any other hypervisor than xen.
>> With respect, this doesn't answer my question. I'm aware of what libvirt
>> *can* do. I'm asking for a reason to default to a known broken behaviour
>> on SPARC platforms, or a modification of the case to default to ldoms.
>>
>> (As an analogy: if libvirt 3.0 or whatever defaulted to KVM, we'd change
>> it so the Solaris version defaulted to xVM/Xen.)
>>
>> regards
>> john
> 
> _______________________________________________
> opensolaris-arc mailing list
> opensolaris-arc@opensolaris.org
> 
> 
> 
> 
> 
>       ____________________________________________________________________________________
> You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost.  
> http://tc.deals.yahoo.com/tc/blockbuster/text5.com


From Daniel.Hain@Sun.COM Wed Apr  9 10:33:11 2008
Received: from newsunmail1brm.central.sun.com (newsunmail1brm.Central.Sun.COM [129.147.62.245])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id m39HXBxq023092
	for <psarc-ext@sac.sfbay.sun.com>; Wed, 9 Apr 2008 10:33:11 -0700 (PDT)
Received: from brm-avmta-1.central.sun.com (brm-avmta-1.Central.Sun.COM [129.147.4.11])
	by newsunmail1brm.central.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id m39HXBSM058396
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Wed, 9 Apr 2008 11:33:11 -0600 (MDT)
Received: from pmxchannel-daemon.brm-avmta-1.central.sun.com by
 brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0JZ2003B6JFBL900@brm-avmta-1.central.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Wed, 09 Apr 2008 11:33:11 -0600 (MDT)
Received: from sca-es-mail-2.sun.com ([192.18.43.133])
 by brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0JZ200KYBJF8TZ70@brm-avmta-1.central.sun.com> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Wed,
 09 Apr 2008 11:33:08 -0600 (MDT)
Received: from fe-sfbay-10.sun.com ([192.18.43.129])
	by sca-es-mail-2.sun.com (8.13.7+Sun/8.12.9) with ESMTP id m39HX8To000071	for
 <PSARC-ext@sun.com>; Wed, 09 Apr 2008 10:33:08 -0700 (PDT)
Received: from conversion-daemon.fe-sfbay-10.sun.com by fe-sfbay-10.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 id <0JZ200801IX1DC00@fe-sfbay-10.sun.com>
 (original mail from Daniel.Hain@Sun.COM)
 for PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Wed,
 09 Apr 2008 10:33:08 -0700 (PDT)
Received: from dhcp-usan09-88-152.West.Sun.COM ([129.153.88.152])
 by fe-sfbay-10.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 with ESMTPSA id <0JZ2002EBJELRPE0@fe-sfbay-10.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Wed, 09 Apr 2008 10:32:46 -0700 (PDT)
Date: Wed, 09 Apr 2008 10:32:44 -0700
From: Dan Hain <Daniel.Hain@Sun.COM>
Subject: Re: PSARC/2008/237 Libvirt for LDoms support
In-reply-to: <47F6A3D5.7090206@sun.com>
Sender: Daniel.Hain@Sun.COM
To: Dan Hain <Daniel.Hain@Sun.COM>
Cc: PSARC-ext@Sun.COM, Eunice Moon <Eunice.Moon@Sun.COM>,
        Ryan Scott <Ryan.Scott@Sun.COM>
Message-id: <47FCFDBC.3080708@sun.com>
Organization: Solaris Revenue Product Engineering
MIME-version: 1.0
Content-type: text/plain; format=flowed; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <47F6A3D5.7090206@sun.com>
User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031)
Status: RO
Content-Length: 7389

Closed approved in PSARC today.

Dan

Dan Hain wrote:
> I am sponsoring the following case on behalf of Eunice Moon
> as a fast-track with timeout set to 04/14/2008.
>
> The project requests minor binding.
>
>
>
> Libvirt for LDoms (Logical Domains) support
> ===========================================
>
> ARC Exposure: open
>
> 1. Background
>
> The Libvirt for LDoms software to provide libvirt interfaces for LDoms 
> hypervisor was already released at Sun Download Center [1]. The LDoms 
> support was added to libvirt version 0.3.2 and virtinst version 0.103.0,
> and was released as the Solaris 10 packages to support LDoms 1.0.1 and
> 1.0.2.
>
> This fast-track RFE will add the same LDoms support to libvirt version 
> 0.4.0 which was put back to the Nevada xVM gate with Xen 3.1.2 and
> virtinst version 0.300.1 which will be put back soon.
> The purpose of this RFE is to provide the Libvirt for LDoms support 
> for use in Open Solaris environment and will be put back to the Nevada 
> xVM gate.
>
> It is not targeting an S10 putback.  It is just targeting for the Nevada
> xVM gate (/ws/xvm-gate) for use in Open Solaris environment.
>
> [1] - Libvirt for LDoms 1.0.1 is available for customer download at: 
>      http://www.sun.com/servers/coolthreads/ldoms/get.jsp
>
> Please see the References section below for the available documentation
> for Libvirt for LDoms 1.0.1.
>
> 2. Overview
> Libvirt is an open source management library that interacts with
> virtualization capabilities.  The libvirt for LDoms software will add the
> LDoms driver as a supported hypervisor in the libvirt driver system.
> With the LDoms support, the libvirt library will interact with the
> LDoms Manager software via its XML-based control interface to retrieve
> the LDoms data or request CPU/memory resource updates. It will also
> support some lifecycle commands (such as create, start, destroy, ..etc)
> on the guest domain.  
> virsh is included in libvirt. virsh is built on top of libvirt and allows
> a user to interact with the hypervisor and guest domains. With the LDoms
> support, a user can run virsh to interact with the LDoms hypervisor
> as below:
>
>   /usr/bin/virsh -c ldoms:///default
>
> virt-install will allow a user to install a guest operating system on
> LDoms system:
>
>  /usr/sbin/virt-install --connect=ldoms:///default
>
> 3. Library Interfaces
>
> The LDoms Manager provides a command-line interface and also exports a
> XML based control interface. The libvirt LDoms driver will use this
> XML interface to communicate with the LDoms Manager to retrieve the LDoms
> data and request the CPU/memory resource updates or LDoms life cycle
> actions.  The current (version 1.0.1 and 1.0.2) LDoms Manager's XML 
> interface
> is using the socket connection.
>
> ---------------------------------------------------------------------------- 
>
> | Imported Interface          | Stability      | Comments               |
> +-----------------------------+-----------------+--------------------------+ 
>
> | LDoms Manager 1.0.1/1.0.2   | Consolidation  | LDoms Libvirt bundled 
> with| | XML/CLI interfaces          | Private        | LDoms 
> Manager             | 
> +-----------------------------+-------------------------+------------------+ 
>
>
> ---------------------------------------------------------------------------- 
>
> | exported Interface            | Stability           | Comments       |
> +-------------------------------+---------------------+--------------------+ 
>
> | libvirt/virsh                 | Volatile            | Updated to 
> support | |                               |                     | 
> LDoms              | 
> +-------------------------------+---------------------+--------------------+ 
>
> | virt-install                  | Volatile            | Updated to 
> support | |                               |                     | 
> LDoms              | 
> +-------------------------------+---------------------+--------------------+ 
>
>
>
> 4. Supported virsh Commands
>
> The following virsh commands will be supported for LDoms.
>
>    help            print help
>    console         connect to the guest console
>    create          create a domain from an XML file
>    start           start an inactive or bound domain
>    destroy         destroy a domain
>    define          define (but don't start) a domain from an XML file
>    domid           convert a domain name or UUID to domain id
>    domuuid         convert a domain name or id to domain UUID
>    dominfo         domain information
>    domname         convert a domain id or UUID to domain name
>    domstate        domain state
>    dumpxml         domain information in XML
>    hostname        print the hypervisor hostname
>    list            list domains
>    nodeinfo        node information
>    quit            quit this interactive terminal
>    shutdown        gracefully shutdown a domain
>    setmem          change memory allocation
>    setvcpus        change number of virtual CPUs
>    undefine        undefine an inactive domain
>    vcpuinfo        domain vcpu information
>    version         show version
>
> 5. Supported virt-install Options
> The following virt-install options will be supported for LDoms.
>
>   -n NAME, --name=NAME  Name of the guest instance
>   -r MEMORY, --ram=MEMORY
>                         Memory to allocate for guest instance
>   --vcpus=VCPUS         Number of vcpus to configure for your guest
>   --check-cpu           Check that vcpus do not exceed physical CPUs
>   -f DISKFILE, --file=DISKFILE
>                         File to use as the disk image
>   -s DISKSIZE, --file-size=DISKSIZE
>                         Size of the disk image
>   -m MAC, --mac=MAC     Fixed MAC address for the guest
>   --connect=CONNECT     Connect to hypervisor with URI
>   -d, --debug           Print debugging information
>   -h, --help            show help message
>  
> 6. Deliverables
>
> The following files will be updated to support the LDoms
>
>   usr/bin/virsh   usr/include/libvirt/libvirt.h     
> usr/include/libvirt/virterror.h
>   usr/lib/libvirt.so.0.4.0        
> usr/lib/python2.4/vendor-packages/libvirt.py     
> usr/lib/python2.4/vendor-packages/libvirtmod.so   usr/sbin/virt-install
>
> 7. References
>
> PSARC/2007/157 libvirt - a LGPL library to control guest domains
> PSARC/2008/165 xVM Hypervisor Remote Access               (includes 
> Xen 3.1.2/libvirt 0.4.0 putback)
>
> Libvirt for LDoms 1.0.1 Functional Spec:
> http://sunwebcollab.east.sun.com/gm/folder-1.11.1727657
>
> Libvirt for LDoms 1.0.1 Admin Guide:
> http://docs.sun.com/app/docs/doc/820-3838-10 Note: This Admin guide is 
> for LDoms Libvirt. For more general Libvirt info,
>      please refer to the open source web site:
>      http://libvirt.org/
>


-- 
Dan Hain 
Solaris Revenue Product Engineering (RPE)


