Information Technology Reference
In-Depth Information
GZ# zonecfg -z winxp-desktop2
winxp-desktop2: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:winxp-desktop2> create -t winxp-desktop1
zonecfg:winxp-desktop2> set zonepath=/zones/winxp-desktop2
zonecfg:winxp-desktop2> select net physical=e1000g0
zonecfg:winxp-desktop2:net> set address=192.168.1.42/24
zonecfg:winxp-desktop2:net> end
zonecfg:winxp-desktop2> verify
zonecfg:winxp-desktop2> exit
GZ# zoneadm -z winxp-desktop1 halt
GZ# zoneadm -z winxp-desktop2 clone winxp-desktop1
WARNING: device '/dev/vboxdrv' is configured in both zones.
Cloning snapshot pandora/zones/winxp-desktop1@SUNWzone1
Instead of copying, a ZFS clone has been created for this zone.
grep: can't open /a/etc/dumpadm.conf
The warning about /dev/vboxdrv is not an error: this device is shareable and will
work as expected. The dumpadm.conf error is cosmetic and not a problem either.
The last step is to provide an identity for our new container. We will use the
same sysidcfg method that we used earlier.
GZ# cat > /zones/winxp-desktop2/root/etc/sysidcfg <<EOF
> system_locale=C
> terminal=dtterm
> network_interface=NONE { hostname=winxp-desktop2 }
> security_policy=NONE
> name_service=NONE
> nfs4_domain=domain.com
> timezone=US/Central
> root_password=Yy5CKNb6aROmU
> EOF
GZ# zoneadm -z winxp-desktop1 boot
GZ# zlogin -C winxp-desktop1
[Connected to zone 'winxp-desktop2' console]
Reading ZFS config: done.
Creating new rsa public/private host key pair
Creating new dsa public/private host key pair
Configuring network interface addresses: e1000g0.
rebooting system due to change(s) in /etc/default/init
SunOS Release 5.10 Version Generic_142901-02 64-bit
Copyright 1983-2009 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Hostname: winxp-desktop2
Reading ZFS config: done.
winxp-desktop2 console login:
 
Search WWH ::




Custom Search