Go Vegetarian

Go Vegetarian

Tuesday, February 10, 2009

Error: no zonepath dataset

The following error is due to the fact that the filesystem where the zone will be created did not receive its own ZFS filesystem !

root@catalogne:~# zonecfg -z opensso_enterprise_80
opensso_enterprise_80: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:opensso_enterprise_80> create
zonecfg:opensso_enterprise_80> set zonepath=/export/zones/opensso_enterprise_80
zonecfg:opensso_enterprise_80> add net
zonecfg:opensso_enterprise_80:net> set address=192.168.1.50
zonecfg:opensso_enterprise_80:net> set physical=e1000g0
zonecfg:opensso_enterprise_80:net> end
zonecfg:opensso_enterprise_80> commit
zonecfg:opensso_enterprise_80> exit
root@catalogne:~# zoneadm -z opensso_enterprise_80 install
Error: no zonepath dataset.


THE ONLY THING YOU HAVE TO DO IS HAVING THE "zone" DIRECTORY
AS A ZFS FILESYSTEM !!!

zfs will do the job for you !!!

Example :

Remarks :

zc is a link to zonecfg
za is a link to zoneadm
lz is a command equal to za list -iv

/z is a ZFS filesystem !!!

root@dhcp-ebru03-133-226:/# zfs create -o mountpoint=/z rpool/z


In one command you create the dataset and the filesystem.

root@dhcp-ebru03-133-226:~# cat identity-manager-80.xml
create -b
set zonepath=/z/identity-manager-80
set brand=ipkg
set autoboot=false
set ip-type=shared
add net
set address=192.168.1.101
set physical=e1000g0
end


opensolaris is aware of the definition of identity-manager-80.

root@dhcp-ebru03-133-226:~# zc -z identity-manager-80 -f identity-manager-80.xml


The zone identity-manager-80 is created.
btw no mkdir and no chmod 700; it is part of the zoneadm command !!!

root@dhcp-ebru03-133-226:~# za -z identity-manager-80 install
A ZFS file system has been created for this zone.
Authority: Using http://pkg.opensolaris.org/release/.
Image: Preparing at /z/identity-manager-80/root ... done.
Cache: Using /var/pkg/download.
Installing: (output follows)
DOWNLOAD PKGS FILES XFER (MB)
Completed 52/52 7862/7862 72.41/72.41

PHASE ACTIONS
Install Phase 12939/12939
PHASE ITEMS
Reading Existing Index 9/9
Indexing Packages 52/52

Note: Man pages can be obtained by installing SUNWman
Postinstall: Copying SMF seed repository ... done.
Postinstall: Working around http://defect.opensolaris.org/bz/show_bug.cgi?id=741
Done: Installation completed in 205.082 seconds.

Next Steps: Boot the zone, then log into the zone console
(zlogin -C) to complete the configuration process

root@dhcp-ebru03-133-226:~# za -z identity-manager-80 boot
zone 'identity-manager-80': WARNING: e1000g0:1: no matching subnet found in netmasks(4) for 192.168.1.101; using default of 255.255.255.0.


open a console

root@dhcp-ebru03-133-226:~# zlogin -C identity-manager-80
[Connected to zone 'identity-manager-80' console]

identity-manager-80 console login: root
Password:
Last login: Tue Mar 3 16:03:52 on console
Sun Microsystems Inc. SunOS 5.11 snv_101b November 2008
root@identity-manager-80:~# uname -a
SunOS identity-manager-80 5.11 snv_101b i86pc i386 i86pc
root@identity-manager-80:~# exit
logout

identity-manager-80 console login: ~.
[Connection to zone 'identity-manager-80' console closed]
root@dhcp-ebru03-133-226:~#


-Rudy-

1 comment:

Unknown said...

Thanks for the post it was really helpful in identifying what the real underlying problem was and how to fix it