Wed, 08 May 2013 23:42:23 -0500
I use this prepre-start script (attached) for Ubuntu 12.04 and CentOS 6.
I followed the instructions in
http://linux-vserver.org/Upstart issues#Running an upstart based guest
and comments in some online forums. It has been very useful to re-delete
unwanted init scripts after yum update.
On 08/05/13 09:28, Fiedler Roman wrote:
> Hi,
>
>> Von: Ghislain [mailto:gadnet@aqueos.com]
>> i am trying to install an ubuntu guest . I know that since they use
>> upstart that calls low level stuff everywhere it seems diffucult if not
>> impossible to make this to work but i wanted to know if anyone has
>> succès in this area. I tried to follow the guide but i was unable to
>> install a running precise pangolin.
>>
>> Is there any chance that this can run , i.e has anyone found a way ?
> I compiled scripts using various sources, that give stable results with 1204 base
(64bit) and 32/64 bit guests for automatic host and guest deployment, so it is possible.
>
> Debugging is needed to get your setup up and running. Perhaps you could give some
hints.
>
> Roman
--
Sandino Araico Sánchez
http://sandino.net
Hi,
Von: Ghislain [mailto:gadnet@aqueos.com]
i am trying to install an ubuntu guest . I know that since they use
upstart that calls low level stuff everywhere it seems diffucult if not
impossible to make this to work but i wanted to know if anyone has
succès in this area. I tried to follow the guide but i was unable to
install a running precise pangolin.
Is there any chance that this can run , i.e has anyone found a way ?
I compiled scripts using various sources, that give stable results with 1204 base (64bit) and 32/64 bit guests for automatic host and guest deployment, so it is possible.
Debugging is needed to get your setup up and running. Perhaps you could give some hints.
Roman
--
Sandino Araico Sánchez
http://sandino.net
#!/bin/sh
echo "=====> Cleaning /etc/init on vserver $2 for upstart <===== "
# http://linux-vserver.org/Upstart_issues#Running_an_upstart_based_guest
ORIG_DIR=`pwd`
cd /vservers/$2/etc/init
for FILE in dmesg.conf hostname.conf hwclock-save.conf hwclock.conf mountall-net.conf
mountall-reboot.conf mountall-shell.conf mountall.conf network-interface.conf networking.conf
procps.conf rsyslog-kmsg.conf tty1.conf tty2.conf tty3.conf tty4.conf tty5.conf tty6.conf
upstart-udev-bridge.conf console-setup.conf start-ttys.conf tty.conf serial.conf plymouth-shutdown.conf
quit-plymouth.conf kexec-disable.conf splash-manager.conf ; do
rm -vf $FILE
done
sed -i 's/^\(console output\)$/#\1/1' *
cat > vserver.conf << EOF
description "Vserver init"
start on startup
#console output
task
pre-start script
touch /var/run/utmp
chown root:utmp /var/run/utmp
chmod 664 /var/run/utmp
end script
script
initctl emit virtual-filesystems --no-wait
initctl emit local-filesystems --no-wait
initctl emit remote-filesystems --no-wait
initctl emit all-swaps --no-wait
initctl emit filesystem --no-wait
initctl emit mounting --no-wait
initctl emit mounted MOUNTPOINT=/dev --no-wait
initctl emit mounted MOUNTPOINT=/var/run --no-wait
initctl emit mounted MOUNTPOINT=/tmp --no-wait
initctl emit net-device-up IFACE=lo --no-wait
end script
EOF
cd $ORIG_DIR