tap0 e User Mode Linux
Vi chiedo un aiutino
attualmente sono riuscito a far partire una macchina virtuale attraverso
l'uso di user mode linux i passi che ho fatto sono:
apt-get install uml-utilities user-mode-linux-doc
Ps la versione delle uml-utilities e' "20040406-1"
Ho scaricato i seguenti file
http://prdownloads.sourceforge.net/user-mode-linux/user-mode-linux_0.54-2.4.17.1um-1_i386.deb
http://prdownloads.sourceforge.net/user-mode-linux/Debian-3.0r0.ext2.bz2
Installato il pacchetto:
dpkg -i user-mode-linux_0.54-2.4.17.1um-1_i386.deb
Modificato il file /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.1.2
netmask 255.255.255.0
broadcast 192.168.1.255
network 192.168.1.0
gateway 192.168.1.1
# User Mode Linux interface
auto tap0
iface tap0 inet static
address 192.168.2.1
netmask 255.255.255.0
tuntcl_user uml-net
Modificato il file /etc/default/uml-utilities
# Options to pass to uml_switch.
# For preconfigured tap setup, see
# /usr/share/doc/uml-utilities/examples/interfaces.example
UML_SWITCH_OPTIONS="-tap tap0"
# User as which to run uml_switch
#UML_SWITCH_USER="uml-net"
Quindi se eseguo /etc/init.d/networking restart
vedo che l'interfaccia tap0 e' configurata correttamente
ma se eseguo /etc/init.d/uml-utilities restart
vedo che l'interfaccia tap0 e' stata messa in down
se provvedo a tirarla su 'ifup tap0' e lancio la sessione della macchina
virtuale viene eseguito tutto alla perfezione ...
vorrei che il sistema riparta automaticamente e permetta ad uno script
eseguito da utente senza privilegi di eseguire la macchina virtuale.
un ringraziamento a chiunque voglia aiutarmi.
Reply to: