I did write a little init script for gentoo. Works great. There I can startand stop my UMLs with init. To stop the UMLs I need a gohst user, this user can shutdown the UML over ssh without a password. Hope this is the right repository. Hope this helps. Reproducible: Always Steps to Reproduce:
Created attachment 29443 [details] setup environment an tap devices for the UMLs
Created attachment 29444 [details] starts and stops one UML
The script is based on my situation: I have three UMLs in a DMZ. (umlsquanto, umlarize105, umlxvaderx) They are connected over tap devices to the host.
How do you propose that we package and make this available to gentoo users?
Added reference to this bug on gentoo-server@g.o email list. Was a discussion already there so I'm just trying to get some more feedback here.
I am not sure how, becauase this two init scripts are bugie suggestion, which work fine for my UML and my special setup. I wannted to give people, who are using UML and want to start it with init, a little help to write their own script. I got some good feedbacks in th uml-user mailinglist. I could maybe imagine adding it to the UML-howto. And to fit it to the UML-howto network setup. Or just posting it in the gentoo forum with some explanations. Or just collecting some versions of init scripts for UMLs somewhere.
Comment on attachment 29443 [details] setup environment an tap devices for the UMLs added to end of start: # for all iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE echo 1 > /proc/sys/net/ipv4/ip_forward added to end of stop # for all iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE echo 0 > /proc/sys/net/ipv4/ip_forward
Comment on attachment 29444 [details] starts and stops one UML >UMLUID=10000 removed this variable > start-stop-daemon --start --quiet --chuid ${UMLUID} --background --pidfile /var/run/${UMLNAME}.pid --make-pidfile --exec /usr/local/bin/linux -- ubd0=${UMLHOME}root_fs ubd1=${UMLHOME}swap_fs ubd2=${UMLHOME}home_squanto eth0=tuntap,tap${UMLUID},fe:fd:0:0:0:${UMLUID},192.168.0.25${UMLUID} >/dev/null 2>&1 fixed this line to start as the correct user: start-stop-daemon --start --quiet --chuid 1000${UMLUID} --background --pidfile /var/run/${UMLNAME}.pid --make-pidfile --exec /usr/local/bin/linux -- ubd0=${UMLHOME}root_fs ubd1=${UMLHOME}swap_fs ubd2=${UMLHOME}home_squanto eth0=tuntap,tap${UMLUID},fe:fd:0:0:0:${UMLUID},192.168.0.25${UMLUID} >/dev/null 2>&1 stoping the UML should be changed to stop it with the UMLs mconsole
When Glep 15 - Gentoo Script Repository gets off its feet this is a good candiate for it. http://www.gentoo.org/proj/en/glep/glep-0015.html
James, Is this a canditate for the script repository?
I never worked out a clean way of using them. Its here for reference and I hope it helps someone out Thomas.