Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 75746 Details for
Bug 117112
[it] translated vserver-howto.xml
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Traduzione in italiano del doc VServer Howto
vserver-howto.xml (text/plain), 8.45 KB, created by
Matteo Carli
on 2005-12-29 11:20:44 UTC
(
hide
)
Description:
Traduzione in italiano del doc VServer Howto
Filename:
MIME Type:
Creator:
Matteo Carli
Created:
2005-12-29 11:20:44 UTC
Size:
8.45 KB
patch
obsolete
><?xml version='1.0' encoding="UTF-8"?> ><!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> ><!-- $Header$ --> > ><guide link="/doc/it/vserver-howto.xml"> ><title>Gentoo Linux-VServer Howto</title> > ><author title="Autore"> > <mail link="hollow@gentoo.org">Benedikt Boehm</mail> ></author> ><author title="Editore"> > <mail link="fox2mike@gentoo.org">Shyam Mani</mail> ></author> ><author title="Traduttore"> > <mail link="swit@autistici.org">Matteo Carli</mail> ></author> > ><abstract> >In questo Howto si imparerà a installare un virtual server di base usando >la tecnologia Linux-VServer ></abstract> > ><!-- The content of this document is licensed under the CC-BY-SA license --> ><!-- See http://creativecommons.org/licenses/by-sa/2.5 --> ><license/> > ><version>1.1</version> ><date>2005-10-06</date> > ><chapter> ><title>Introduzione</title> ><section> ><title>Il concetto di Linux-VServer</title> ><body> > ><p> >Il concetto di base della soluzione Linux-VServer è di separare l'ambiente >user-space in distinte unità (a volte chiamate Virtual Private Servers) in >modo che ogni VPS sembri e si comporti come un vero server con i processi in >esso contenuti. ></p> > ></body> ></section> ><section> ><title>Termini utilizzati in questo Howto</title> ><body> > ><table> ><tr> > <th>Termine</th> > <th>Descrizione</th> ></tr> ><tr> > <th>Linux-VServer, VServer</th> > <ti> > Linux-VServer è il nome ufficiale del progetto ed è usato in questo Howto > con il medesimo significato > </ti> ></tr> ><tr> > <th>virtual server, vserver, guest system</th> > <ti> > Tutti questi termini sono sinonimi e si riferiscono ad una instanza del > server (ad esempio un virtual server) > </ti> ></tr> ><tr> > <th>host system, host</th> > <ti> > La macchina fisica che monta Gentoo Linux e che ospita tutti i virtual > servers > </ti> ></tr> ><tr> > <th>util-vserver, vserver utils</th> > <ti> > Il pacchetto <c>util-vserver</c> contiene tutti i programmi necessari > per la manutenzione dei virtual server > </ti> ></tr> ></table> > ></body> ></section> ></chapter> > ><chapter> ><title>Configurazione dell'host</title> ><section> ><title>Installare un VServer kernel</title> ><body> > ><pre caption="Installare vserver-sources"> ># <i>emerge vserver-sources</i> ></pre> > ><p> >Dopo aver installato vserver-sources è il momento di configurarlo >usando ><c>make menuconfig</c>. ></p> > ><pre caption="Configurare vserver-sources"> ># <i>cd /usr/src/linux-<VERSIONEKERNEL>-vserver-<VERSIONEVSERVER></i> ># <i>make menuconfig</i> > >Linux VServer ---> > [ ] Enable Legacy Kernel API ><comment>(Da non selezionare!)</comment> > [ ] Disable Legacy Networking Kernel API ><comment>(Altamente raccomandato)</comment> > [*] Enable Proc Security > [*] Enable Hard CPU Limits > Persistent Inode Context Tagging (UID24/GID24) ---> > [ ] Tag NFSD User Auth and Files > [ ] Compile Debugging Code ></pre> > ><p> >Dopo che è stato compilato e installato il kernel, si deve aggiornare il >boot loader ed infine controllare se il kernel riesce ad avviarsi >correttamente. ></p> > ><pre caption="Installare il kernel"> ><comment>(Compilare il kernel)</comment> ># <i>make</i> ><comment>(Installarlo)</comment> ># <i>make modules_install</i> ># <i>cp arch/i386/boot/bzImage /boot/kernel-<KERNELVERSION>-vserver-<VSERVERVERSION></i> ><comment>(Modificare la configurazione del boot loader come richiesto e fare il)</comment> ># <i>reboot</i> ></pre> > ></body> ></section> ><section> ><title>Configurare l'ambiente host</title> ><body> > ><p> >Per la manutenzione del virtual server è necessario il pacchetto >util-vserver il quale contiene tutti gli applicativi necessari e le >caratteristiche utili. ></p> > ><note> >Gli applicativi e le caratteristiche ai quali questo Howto si riferisce richiedono ><c>>=sys-apps/util-vserver-0.30.208-r3</c>. Controllare la versione prima >di continuare. ></note> > ><pre caption="Installare util-vserver"> ># <i>emerge util-vserver</i> ></pre> > ><p> >Si deve eseguire il comando <c>vprocunhide</c> dopo ogni riavvio per settare >i permessi in <path>/proc</path> correttamente per l'uso del vserver. Uno script >di init è stato installato da util-vserver. Per usarlo aggiungerlo al runlevel >di default: ></p> > ><pre caption="vserver init script"> ># <i>rc-update add vservers default</i> ># <i>/etc/init.d/vservers start</i> ></pre> > ><p> >Lo script vshelper è usato per stoppare e riavviare correttamente i virtual >server. Bisogna specificare al kernel la locazione dello script: ></p> > ><pre caption="vshelper setup"> ># <i>echo 'kernel.vshelper = /usr/lib/util-vserver/vshelper' >> /etc/sysctl.conf</i> ># <i>sysctl -p</i> ></pre> > ></body> ></section> ></chapter> > ><chapter> ><title>Creare un modello</title> ><section> ><title>Installare un vserver stage3</title> ><body> > ><p> >Usare <c>vserver-new</c> per creare il sistema ospite. Si deve scaricare >lo stage3 del vserver già preparato da: ><uri>http://dev.gentoo.org/~hollow/vserver/stages</uri> e lo script guider >nel processo di creazione. ></p> > ><p> >Si deve scegliere un "context ID" per il vserver (ID casuali sono >sconsigliati) meglio se si usano le informazioni sui dispositivi di rete >(in questo esempio eth0 è configurata con 192.168.1.253/24 e il >"connext ID" sarà equivalente agli ultimi due ottetti dell'indirizzo IP del >vserver). ></p> > ><pre caption="Inizio installazione dello stage3 sul guest system"> ># <i>vserver-new gentoo-template \</i> > <i>--hostname gentoo \</i> > <i>--context 1253 \</i> > <i>--interface eth0:192.168.1.253/24 \</i> > <i>stage3 /path/to/stage3-tarball.tar.bz2</i> ></pre> > ><note> >Per rendere effettive le configurazioni di rete si deve modificare: ><path>/etc/conf.d/hostname</path>, <path>/etc/conf.d/domainname</path> e ><path>/etc/hosts</path> all'interno dei sistemi ospite. Vedere <uri >link="/doc/en/handbook/handbook-x86.xml?part=1&chap=8#doc_chap2_sect1">capitolo >8.b.1</uri> e <uri >link="/doc/en/handbook/handbook-x86.xml?part=1&chap=8#doc_chap2_sect4">capitolo >8.b.4</uri>. Il resto delle configurazioni del vserver saranno fatte >sull'host. ></note> > ></body> ></section> ><section> ><title>Creare il tarball del modello</title> ><body> > ><p> >Non è necessario fare un tarball dello stage3 per ogni guest system. >Lo script <c>vserver-new</c> supporta i modelli. Per usarlo è necessario >creare il tarball dell'installazione del vserver stesso: ></p> > ><pre caption="Creare il tarball del modello"> ># <i>cd /vservers/gentoo-template</i> ># <i>tar cjvpf ../gentoo-template.tar.bz2 ./</i> ></pre> > ><p> >Per creare un nuovo guest system partendo dal tarball creato usare ><c>vserver-new</c>: ></p> > ><pre caption="Usare il tarball del modello"> ># <i>cd /vservers</i> ># <i>vserver-new myguest \</i> > <i>--hostname myguest \</i> > <i>--context 1252 \</i> > <i>--interface eth0:192.168.1.252/24 \</i> > <i>template ./gentoo-template.tar.bz2</i> ></pre> > ><note> >Si dovrebbe usare un albero del portage in modo condiviso per mantenere >i guest system di piccole dimensioni. Modificare <path>/etc/vservers/myguest/fstab</path> >e decommentare le linee <path>/usr/portage</path> e <path>/usr/portage/distfiles</path>. >I guest system hanno accesso di sola lettura a <path>/usr/portage</path> e di >lettura e scrittura a <path>/usr/portage/distfiles</path>. ></note> > ></body> ></section> ><section> ><title>Provare il virtual server</title> ><body> > ><p> >Si dovrebbe essere in grado di far partire il vserver usando il comando sotto >riportato. >Se non si hanno comandi come <c>mount</c> o <c>dmesg</c> si dovrebbe eseguire ><c>emerge util-linux</c> all'interno del virtual server poiché il profilo vserver >non fornisce questo pacchetto nella configurazione standard. ></p> > ><pre caption="Provare il virtual server"> ># <i>vserver myguest start</i> ># <i>vserver-stat</i> >CTX PROC VSZ RSS userTIME sysTIME UPTIME NAME >0 90 1.4G 153.4K 14m00s11 6m45s17 2h59m59 root server >1252 2 3M 286 0m00s45 0m00s42 0m02s91 myguest ># <i>vserver myguest enter</i> ># <i>ps ax</i> >PID TTY STAT TIME COMMAND > 1 ? S 0:00 init [3] >22887 ? Ss 0:00 /usr/sbin/syslog-ng >20496 pts/0 S 0:00 /bin/bash -login >20508 pts/0 R+ 0:00 ps ax ># <i>logout</i> ></pre> > ></body> ></section> ><section> ><title>Contatti</title> ><body> > ><p> >Sentitevi liberi di contattare l'autore o di aprire un bug su <uri >link="http://bugs.gentoo.org">Bugzilla</uri> in caso di problemi. ></p> > ></body> ></section> ></chapter> ></guide>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 117112
: 75746