Add

How to create zones in Solaris


Here is a quick tutorial for creating zones in Solaris 10. First, you have to create 2 partitions on the disk of your system. Partitions 3 and 4 has to be set to 1 Gb. Use the format utility.

With newfs you can create UFS filesystem on the partitions 3 and 4:

newfs /dev/rdsk/c0d0s3
newfs /dev/rdsk/c0d0s4


Now you have to create a directory /zones/myzone. You have to mount /zones/myzone. Edit /etc/vfstab:

/dev/dsk/c0d0s3 /dev/rdsk/c0d0s3 /zones/myzone ufs 2 yes -

Now, use the mount command:

mount /zones/myzone
chmod 700 /zones/myzone

Here is how to create the zone:

zonecfg -z myzone
create
set zonepath=/zones/myzone
add fs
set dir=/mnt_myzone
set special=/dev/dsk/c0d0s4
set raw=/dev/rdsk/c0d0s4
set type=ufs
end
add net
set physical=nge0
set address=10.2.1.123
end
verify
commit
info
exit

After that, you can see you zone:

zoneadm list -iv

Now you have to install the new zone:

zoneadm -z myzone install

After install, you can boot the zone:

zoneadm -z myzone boot

To login on the new zone, use the folowing command:

zlogin -C myzone

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Loading ... Loading ...

No comments yet.

Respond

get in on the action.

* Required

Rumanian flagItalian flagEnglish flagGerman flagFrench flagSpanish flagRussian flagGreek flagDutch flagBulgarian flagCzech flagCroat flagDanish flagFinnish flagSwedish flagNorwegian flagSerbian flagSlovenian flagUkrainian flagTurkish flagHungarian flag
By N2H

Random Posts Recent Comments

  • SEWilco Says:

    Would be nice to know where the check_command definitions for all the plugins reside. Ubuntu's comm...

  • gregory wayne cox Says:

    my computer is hacked by someone bigtime, I need help capturing the information from all possible p...

  • admin Says:

    @lordspartner Hi, You can try to install the missing dependencies. sudo apt-get inst...

  • lordspartner Says:

    how do i fix the following error. im new to linux. dpkg: dependency problems prevent configuratio...

  • Raul Molnar Says:

    Nice, thanks....

  • admin Says:

    Poti incerca sa instalezi din surse. Daca accesezi link-ul asta in browser, te va intreba daca vrei ...

  • codrin Says:

    mai ai alte solutii?...

  • codrin Says:

    ioana@ioana-desktop:~$ sudo apt-get install libglib1.2-dev [sudo] password for ioana: Citire list...

  • admin Says:

    Aici poti gasi pachetul libglib1.2-dev: https://launchpad.net/ubuntu/karmic/+package/...

  • codrin Says:

    incerc sa instalez pe ubuntu 9.10 am urmat pasii descrisi de tine luand comenzile cu copy &paste...

Tag Cloud