Fedora 13, upstart problem [message #39838] |
Tue, 08 June 2010 22:47 |
Jean-Marc Pigeon
Messages: 27 Registered: October 2007
|
Junior Member |
|
|
Kernel: 2.6.18-194.3.1.el5.028stab069.6
vzctl: 3.0.23-10 (yesterday git version)
fc12 is started nicely (upstart-0.3.11-4.fc12.i686) while
fc13 is barely working (upstart-0.6.5-5.fc13.i686).
I was able to have fc13 container 'fully' working doing
"/etc/rc.d/rc 3" once entered within CT (vzctl enter fc13-i386).
Important: need to first set file /etc/init/openvz.conf
within CT.
;------------------------------------------------
description "upstart with openvz"
start on startup
task
pre-start script
mount -t proc proc /proc
mount -t devpts devpts /dev/pts
mount -t sysfs sys /sys
mount -t tmpfs varrun /var/run
mount -t tmpfs varlock /var/lock
mkdir -p /var/run/dbus
mkdir -p /var/run/network
mkdir -p /var/run/netreport
mkdir -p /var/lock/subsys
cat /proc/mounts > /etc/mtab
end script
script
init 2
ifconfig lo 127.0.0.1
/etc/init.d/networking restart
start rsyslog
end script
;------------------------------------------------
Seems to ne the problem stand within vzctl not calling /sbin/init
with right parameters anymore.
Could someone in the list know what is the exact call to /sbin/init done by vzctl-3.0.23?
what should it be to please upstart-0.6?
Thanks for your help.
|
|
|
Re: Fedora 13, upstart problem [message #39871 is a reply to message #39838] |
Fri, 11 June 2010 15:13 |
maratrus
Messages: 1495 Registered: August 2007 Location: Moscow
|
Senior Member |
|
|
Hi,
Quote: |
Could someone in the list know what is the exact call to /sbin/init done by vzctl-3.0.23?
|
static int _env_create(vps_handler *h, envid_t veid, int wait_p, int err_p,
void *data)
{
---<snip>---
char *argv[] = {"init", "-z", " ", NULL};
char *envp[] = {"HOME=/", "TERM=linux", NULL};
---<snip>---
logger(10, 0, "Starting init");
execve("/sbin/init", argv, envp);
execve("/etc/init", argv, envp);
execve("/bin/init", argv, envp);
---<snip>---
}
Quote: |
what should it be to please upstart-0.6?
|
A common Linux kernel calls just /sbin/init
static void run_init_process(char *init_filename)
{
argv_init[0] = init_filename;
execve(init_filename, argv_init, envp_init);
}
static int noinline init_post(void)
{
---<snip>---
run_init_process("/sbin/init"); run_init_process("/etc/init");
run_init_process("/bin/init");
run_init_process("/bin/sh");
panic("No init found. Try passing init= option to kernel.");
}
You can read
http://bugzilla.openvz.org/show_bug.cgi?id=436
it might be helpful.
|
|
|