Summary: | UML init start script, to automatically start and stop UMLs, with ssh dummy user | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Thomas Lassmann <t.lassmann> |
Component: | Current packages | Assignee: | Daniel Black (RETIRED) <dragonheart> |
Status: | RESOLVED WONTFIX | ||
Severity: | enhancement | CC: | hythloday, m.debruijne, tantive |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 55749 | ||
Bug Blocks: | |||
Attachments: |
setup environment an tap devices for the UMLs
starts and stops one UML |
Description
Thomas Lassmann
2004-04-16 14:13:44 UTC
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. |