#LyX 1.5.4 created this file. For more info see http://www.lyx.org/
\lyxformat 276
\begin_document
\begin_header
\textclass article
\language italian
\inputencoding auto
\font_roman default
\font_sans default
\font_typewriter default
\font_default_family default
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100
\graphics default
\paperfontsize default
\spacing single
\papersize a4paper
\use_geometry false
\use_amsmath 1
\use_esint 1
\cite_engine basic
\use_bibtopic false
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\author "" 
\author "" 
\end_header

\begin_body

\begin_layout Title
Virtualbox mini-howto
\end_layout

\begin_layout Standard
Virtualbox has three types of network: nat (default), a virtual network
 between vm and bridged networking.
\end_layout

\begin_layout Standard
The first and the second works out of the box so let's explain the third.
\end_layout

\begin_layout Standard
Bridged networking uses the tun/tap interface, so the first requirement
 is the tun module loaded at startup (in slackware modify rc.modules).
\end_layout

\begin_layout Standard
Then you have to change the rc.vboxbridge in rc.local to match the number
 of machines and the username of the virtualbox user (sh /etc/rc.d/rc.vboxbridge
 start 
\emph on
2 user
\emph default
).
\newline
The last step is 
\begin_inset Quotes eld
\end_inset

chmod 755 /etc/rc.d/rc.vboxbridge
\begin_inset Quotes erd
\end_inset

 and 
\begin_inset Quotes eld
\end_inset

/etc/rc.d/rc.vboxbridge start 
\emph on
2 user
\begin_inset Quotes erd
\end_inset


\emph default
 as above and voila, bridged networking is up and running.
\end_layout

\begin_layout Standard
A last note, for bridged networking to work you need at least a network
 interface (i.e.
 eth0) configured with an ip address.
 The rc script retrieves the eth0 ip address automatically but I haven't
 yet tested it with aliases, so if you have net aliases and bridging isn't
 working or your network configuration screws up you are on your own.
 I take no responsibility for any damage to your O.S./pc/network/wife/dog
 (so as we tell in Italy 
\begin_inset Quotes eld
\end_inset

Uomo avvisato mezzo salvato
\begin_inset Quotes erd
\end_inset

, who knows italian let's translate).
\end_layout

\begin_layout Standard
Feel free to correct this text (my english is poor, I already know that),
 but, please, send me a copy so I can change it in the next release.
\end_layout

\begin_layout Standard
Update (31/05/2008):
\newline
if you run into trouble with network in linux guests
 (i.e.
 the network is not responding), add something like that in your rc.local
 or other local start file based on your distribution (sorry, that won't
 work with other than Slackware):
\end_layout

\begin_layout Standard
ping -c1 <host ip>
\newline
TEST=$?
\newline
while [ $TEST -eq 1 ];
\newline
do
\newline
/etc/rc.d/rc.inet1 stop &&
 /etc/rc.d/rc.inet1 start
\newline
ping -c1 <host ip>
\newline
TEST=$?
\newline
done
\end_layout

\begin_layout Standard
This check if network is up and restart until it comes up.
\end_layout

\end_body
\end_document
