[zones-discuss] Solaris Zone API

2010-02-03 Thread Tan Loc Pham
Hi Solaris Gurus,

we're looking to Solaris API ( perl modules ? ) like VMware API ( VmCom, 
VmPerl). We would like to automate cloning, delete, start, stop and check of 
vm's (vmware) and zones (solaris).

Many thanks ,
tpham
-- 
This message posted from opensolaris.org
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] attach -u question

2010-02-03 Thread Enda O'Connor

Hi Paula
I seem to remember that an RFE for this was mentioned but I cannot 
locate it if one was logged, the idea beignthat one coudl pass a lsit of 
packages to update.



Enda


Paula Van Wie wrote:



Does anyone know if this is going to be fixed or has it?  Cu uses whole 
root zones and is wondering if in the future attach -u will update even 
if SUWN_PKG_ALLZONES is not set to true.  Thanks.


A number of important non-application packages are not updated when 
doing 'zoneadm zonename attach -u' because SUNW_PKG_ALLZONES is not 
defined as true, or no packages that depend on the package have this 
parameter set to true.


The list of packages that do not update on our 10/09 build with zone 
update on attach are:


(This is a short list)

SUNWTk
SUNWbash
SUNWbind
SUNWbindr
SUNWciu8
SUNWctlu
SUNWdtbas
SUNWdtdmr
SUNWfreetype2
SUNWgtar
SUNWgzip
SUNWicu
SUNWinst
SUNWj5cfg



--
Enda O'Connor x19781  Software Product Engineering
Patch System Test : Ireland : x19781/353-1-8199718
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] zone attach -u from u6 to u8 issues

2010-02-03 Thread Gael
On Tue, Feb 2, 2010 at 4:10 PM, Gael gael.marti...@gmail.com wrote:

 I ran a few test upgrades moving zones from a T5220 u6 system to a u8
 system patched with 119254-72 and I keep observing the following packages
 missing into the end result zone..

 I'm really concerned by the pkg/patch tools packages missing ...  I have
 tried to also patch the source system before detaching the zone without
 success ... Here is a diff of the packages missing in the zone but present
 in the GZ.

 SUNWgccruntime  
 SUNWinstall-patch-utils-root
 SUNWntp4r   
 SUNWntp4u   
 SUNWpkgcmdsr
 SUNWpkgcmdsu
 SUNWppror   
 SUNWpprou   
 SUNWproduct-registry-root   
 SUNWs8brandr
 SUNWs8brandu
 SUNWstosreg 
 SUNWswmt
 SUNWwsr2
 Is that a known issue ?

 Regards
 --
 Gael Martinez




I reloaded the landing-zone machine with a vanilla U8 image (basic
installation, all packages, no patches), and reused the same ufsdump
file containing the zone. zoneadm update -u with that version did install
the pkg related packages...

labs9006.uhc.com:/zones #zoneadm -z apsz0224 attach -u
zoneadm: zone 'apsz0224': WARNING: pools facility not active; zone will not
be bound to pool 'fss_default_pool'.
zoneadm: zone 'apsz0224': WARNING: pools facility not active; zone will not
be bound to pool 'fss_default_pool'.
Getting the list of files to remove
Removing 2520 files
Remove 15 of 15 packages
Installing 25271 files
Add 454 of 454 packages
Installation of these packages generated warnings: SUNWcsr SUNWgssc
SUNWinstall-patch-utils-root SUNWkrbr SUNWmconr SUNWntpr SUNWpcr SUNWppror
SUNWpsr SUNWsacom SUNWwbcor SUNWxwplr VRTSodm
Updating editable files
The file /var/sadm/system/logs/update_log within the zone contains a log
of the zone update.

labs9006.uhc.com:/zones #zlogin apsz0224 pkginfo | grep SUNWpkgcmd
system  SUNWpkgcmdsrSVr4 package commands (root)
system  SUNWpkgcmdsuSVr4 packaging commands (usr)
labs9006.uhc.com:/zones #

The same issue was confirmed when testing S10 U4 to U8 upgrades...
Will continue toying around tomorrow and will open a case if I don't hear
anything from this list.

Regards
-- 
Gael Martinez
___
zones-discuss mailing list
zones-discuss@opensolaris.org

Re: [zones-discuss] zone attach -u from u6 to u8 issues

2010-02-03 Thread Enda O'Connor

On 03/02/2010 22:10, Gael wrote:



On Tue, Feb 2, 2010 at 4:10 PM, Gael gael.marti...@gmail.com
mailto:gael.marti...@gmail.com wrote:

I ran a few test upgrades moving zones from a T5220 u6 system to a
u8 system patched with 119254-72 and I keep observing the following
packages missing into the end result zone..
I'm really concerned by the pkg/patch tools packages missing ...  I
have tried to also patch the source system before detaching the zone
without success ...


when you say patching failed, what exactly occurred when you tried 
patching the global zone?


In whoel root zone, the packaging bits are not pulled into update on 
attach, but they shoudl never be missing obviously.


Do we have an explorer what does pkginfo -p say when run in global zone 
of affected system


Enda
 Here is a diff of the packages missing in the

zone but present in the GZ.
SUNWgccruntime 
SUNWinstall-patch-utils-root 
SUNWntp4r 
SUNWntp4u 
SUNWpkgcmdsr 
SUNWpkgcmdsu 
SUNWppror 
SUNWpprou 
SUNWproduct-registry-root 
SUNWs8brandr 
SUNWs8brandu 
SUNWstosreg 
SUNWswmt 
SUNWwsr2 
Is that a known issue ?
Regards
--
Gael Martinez



I reloaded the landing-zone machine with a vanilla U8 image (basic
installation, all packages, no patches), and reused the same ufsdump
file containing the zone. zoneadm update -u with that version did
install the pkg related packages...
labs9006.uhc.com:/zones #zoneadm -z apsz0224 attach -u
zoneadm: zone 'apsz0224': WARNING: pools facility not active; zone will
not be bound to pool 'fss_default_pool'.
zoneadm: zone 'apsz0224': WARNING: pools facility not active; zone will
not be bound to pool 'fss_default_pool'.
Getting the list of files to remove
Removing 2520 files
Remove 15 of 15 packages
Installing 25271 files
Add 454 of 454 packages
Installation of these packages generated warnings: SUNWcsr SUNWgssc
SUNWinstall-patch-utils-root SUNWkrbr SUNWmconr SUNWntpr SUNWpcr
SUNWppror SUNWpsr SUNWsacom SUNWwbcor SUNWxwplr VRTSodm
Updating editable files
The file /var/sadm/system/logs/update_log within the zone contains a
log of the zone update.
labs9006.uhc.com:/zones #zlogin apsz0224 pkginfo | grep SUNWpkgcmd
system  SUNWpkgcmdsrSVr4 package commands (root)
system  SUNWpkgcmdsuSVr4 packaging commands (usr)
labs9006.uhc.com:/zones #
The same issue was confirmed when testing S10 U4 to U8 upgrades...
Will continue toying around tomorrow and will open a case if I don't
hear anything from this list.
Regards
--
Gael Martinez




___
zones-discuss mailing list
zones-discuss@opensolaris.org


___
zones-discuss mailing list
zones-discuss@opensolaris.org


[zones-discuss] OpenSolaris zone migration

2010-02-03 Thread Ted Ward

Hello all.

I am trying to migrate a zone on OpenSolaris from one identical system 
to another.  It's going from x86 to sparc, but even when going from x86 
to x86 I get the same error.  Here's the build of both systems


SunOS hostname 5.11 snv_111b i86pc i386 i86pc Solaris  (source system)
SunOS hostname 5.11 snv_111b sun4u sparc SUNW,Sun-Blade-100 Solaris 
(target system)


After creating the zone on zfs per expectations, I detach it it and get 
the typical directory you would expect:


# ls
SUNWdetached.xml  dev  root

I then run the following command to migrate the zone:

zfs send rpool/tedz...@migrate | ssh u...@hostname pfexec /usr/sbin/zfs 
receive -F rpool/tedz...@migrate


Everything looks good at that point.  The zfs file system is mounted at 
rpool/tedzone automatically, and so I create a zone configuration to 
match that.  However, when I run the attach I get the following error 
message:


zoneadm -z tedzone attach
cannot open 'rpool/tedzone/ROOT': dataset does not exist
ERROR: The -a, -d or -r option is required when there is no active root 
dataset


The funny thing here is that the zfs list on the source system doesn't 
mention this zfs file system:


rpool/tedzone  242M  64.1G  22.5K  /tedzone
rpool/tedzone/ROOT 242M  64.1G19K  legacy
rpool/tedzone/ROOT/zbe 242M  64.1G   242M  /tedzone/root

Are we looking at a bug here?

--

Have a great day, and thank you for calling Sun!

Ted (Thomas E.) Ward
Technical Support Engineer
Sun Microsystems, Inc.
Operating Systems Technology Service Center

Email: ted.w...@sun.com
Phone: 303-464-4594
My Working Hours : 9am-6pm MT, Monday thru Friday
My Manager's Email: phil.w...@sun.com

TO REACH THE NEXT AVAILABLE ENGINEER:
1. Call 1-800-USA-4SUN choose opt 2 and enter your case number.
2. Wait for my voice mail message to begin.
3. Press 0 during my message to reach the next available engineer.
4. You will hear hold music until the next engineer answers.

Submit, check and update tickets at http://www.sun.com/osc

This email may contain confidential and privileged material for the sole
use of the intended recipient. Any review or distribution by others is
strictly prohibited. If you are not the intended recipient please
contact the sender and delete all copies.

___
zones-discuss mailing list
zones-discuss@opensolaris.org