[Devel] [vzctl] exec early script at start

Yoann Moulin ymo at adviseo.fr
Tue Jan 8 08:32:53 PST 2008


Yoann Moulin a écrit :
> Hi all,
> 
> I'm working on a xen to openvz migration, and I still have some issue to 
> fix. but some seem to be not possible yet.
> 
> actually, on our diskless servers (xen and others), we are using 
> nfsroot. And at start, in the initrd, we are using a script that make a 
> connexion on the nfs boot server and remove the old root, create a new 
> one, take the last system image build, and re apply configuration with 
> cfengine tools.
> 
> I'd like to do the same with openvz, but I didn't see in the source this 
> possibility.
> 
> it could be someting like in src/lib/env.c in the vps_start_custom 
> function (in pseudo code) :

> I didn't do C for a while, so I'm not sure I'll be able to do something 
> simple and safe.
> 
> I'm available to compile and test this until the openvz server should be 
> production at the end of next week... but I'll take the time to do all 
> the test we need before.
> 
> If some can help me on this issue.

I have patched env.c to be able to execute a script before starting a VE

I don't know if it is the best way to do that, but it work for what I need

regards,

Yoann
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_vz_early_script
URL: <http://lists.openvz.org/pipermail/devel/attachments/20080108/305ef501/attachment-0001.ksh>


More information about the Devel mailing list