tof:computer:vserver:upstart_ubuntu_lucid
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| tof:computer:vserver:upstart_ubuntu_lucid [09/06/2010 10:57] – créée Christophe Boyanique | tof:computer:vserver:upstart_ubuntu_lucid [13/07/2010 09:58] (Version actuelle) – Christophe Boyanique | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| ====== Fix for running Ubuntu Lucid in vserver ====== | ====== Fix for running Ubuntu Lucid in vserver ====== | ||
| - | This tweak is inspired by http:// | + | This tweak is inspired by [[http:// |
| ===== Choose plain init style ===== | ===== Choose plain init style ===== | ||
| Ligne 27: | Ligne 27: | ||
| < | < | ||
| # mkdir / | # mkdir / | ||
| - | # for srv in console-setup | + | # for srv in console-setup dmesg failsafe-x hostname hwclock-save hwclock module-init-tools \ |
| mountall-net mountall-reboot mountall-shell mountall network-interface network-interface-security networking \ | mountall-net mountall-reboot mountall-shell mountall network-interface network-interface-security networking \ | ||
| plymouth-log plymouth-splash plymouth-stop plymouth procps rcS rsyslog-kmsg tty1 tty2 tty3 tty4 tty5 tty6 \ | plymouth-log plymouth-splash plymouth-stop plymouth procps rcS rsyslog-kmsg tty1 tty2 tty3 tty4 tty5 tty6 \ | ||
| upstart-udev-bridge ureadahead-other ureadahead; do mv / | upstart-udev-bridge ureadahead-other ureadahead; do mv / | ||
| / | / | ||
| + | </ | ||
| + | |||
| + | Be carefull to keep the '' | ||
| + | |||
| + | < | ||
| + | 20:00 < | ||
| + | 20:01 < | ||
| + | </ | ||
| + | |||
| + | ===== Add vserver init task ===== | ||
| + | |||
| + | Create the file ''/ | ||
| + | < | ||
| + | description | ||
| + | |||
| + | start on startup | ||
| + | |||
| + | console output | ||
| + | task | ||
| + | |||
| + | pre-start script | ||
| + | touch / | ||
| + | chown root:utmp / | ||
| + | chmod 664 / | ||
| + | end script | ||
| + | |||
| + | script | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | end script | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== Tweak sysinit configuration ===== | ||
| + | |||
| + | In ''/ | ||
| + | |||
| + | < | ||
| + | start on filesystem and net-device-up IFACE=lo | ||
| + | </ | ||
| + | |||
| + | by: | ||
| + | |||
| + | < | ||
| + | start on filesystem | ||
| </ | </ | ||
| Ligne 64: | Ligne 117: | ||
| # *.=notice; | # *.=notice; | ||
| </ | </ | ||
| + | |||
| + | |||
| + | ===== Tweak ssh configuration ===== | ||
| + | |||
| + | In ''/ | ||
| + | |||
| + | < | ||
| + | # replaces SSHD_OOM_ADJUST in / | ||
| + | #oom never | ||
| + | </ | ||
| + | |||
| + | ===== Create the console device ===== | ||
| + | |||
| + | Missing of ''/ | ||
| + | |||
| + | < | ||
| + | 19:57 < | ||
| + | | ||
| + | 19:58 < | ||
| + | | ||
| + | </ | ||
| + | |||
| + | I use '' | ||
| + | |||
| + | < | ||
| + | # mknod --mode=600 / | ||
| + | </ | ||
| + | |||
| + | |||
| + | If you want to troubleshot from outside the vserver you can use for example '' | ||
| + | |||
| + | < | ||
| + | # mknod --mode=600 / | ||
| + | </ | ||
| + | |||
| ===== Install dbus ===== | ===== Install dbus ===== | ||
tof/computer/vserver/upstart_ubuntu_lucid.1276081048.txt.gz · Dernière modification : 09/06/2010 10:57 de Christophe Boyanique
