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 (2 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

  • admin Says:

    Amigo, Please formulate your question in english if you really need help! Cheers!...

  • Mauricio Gonçalves Says:

    Boa tarde, Amigo eu não consigo add novo user poderia me ajudar? ele fala que o comando não é ...

  • Flossy Says:

    Zubao0 That's really thinking out of the box. Thanks!...

  • Michael Esch Says:

    I used this tutorial to install Komodo Edit 6 on Ubuntu 10.10; I rate your tutorial 5/5 I hope that...

  • admin Says:

    @dan Am rulat aplicatii create in visual basic si in fox sub wine, deci cred ca nu ar trebui sa fie ...

  • dan Says:

    as dori sa imi spuneti daca un prg de conta sub visual basic ruleaza cu wine sub ubuntu intreb deo...

  • admin Says:

    Thank you all for your comments. As I was busy latelly, I haven't answer to your posts. I hope you u...

  • tcpdump Says:

    Hello, I also faced the error "It appears as though you do not have permission to view informatio...

  • Ali Says:

    awesome!!!...

  • Schedule Says:

    You you should make changes to the post subject Split and join files in Ubuntu with lxsplit | EtutsR...

Tag Cloud