Bug #2335

Debian vmcontext script

Added by Rolandas Naujikas almost 8 years ago. Updated over 6 years ago.

Status:PendingStart date:09/25/2013
Priority:LowDue date:
Assignee:Javi Fontan% Done:


Target version:-
Resolution: Pull request:
Affected Versions:OpenNebula 4.2


Debian one-context package of version 4.2.1 couse many problems.
It starts too late, because of "Required-Start: $all".
On shutdown it is reexecuted because of "Default-Stop: 0 1 6" and "update-rc.d vmcontext defaults 9 99".
The previous version (4.0.1) was without such problems at least (with other problems also).


#1 Updated by Ruben S. Montero over 7 years ago

  • Status changed from Pending to New
  • Assignee set to Javi Fontan
  • Target version set to Release 4.4

#2 Updated by Javi Fontan over 7 years ago

The scripts are changed so they are only run when it's called with "start". There's still the problem of when the scripts are called.

When these packages were firstly created I thought that it was better to let all the services start and then do the changes but I am probably incorrect. Do you have an idea where it should be started? I want the packages to behave as close as possible in all the distros.

We are going to move these packages to an external repo in a near future so it's easier to contribute to them.

#3 Updated by Rolandas Naujikas over 7 years ago

My working setup is:


Main idea is to let run vmcontext as early as possible before networking.
That allows to reuse the same image for different VM without temporary IP conflicts.

#4 Updated by Javi Fontan over 7 years ago

One of the things that the context packages do is to delete the network configuration so in the next boot it does not get configured. With this there should be no problem with a VM getting a temporary IP before being configured by context.

Do you have a list of services that should be up before vmcontext?

#5 Updated by Rolandas Naujikas over 7 years ago

My experience is that on different Linux distributions networking is started in different ways. For e.g. Debian/Ubuntu starts it in single user mode, when CentOS - in multi user mode.

At least my config works for Debian by using "# X-Start-Before: networking" and "# Default-Start: S". For Ubuntu I use upstart task http://grid5.mif.vu.lt/mif/ubuntu1204/vmcontext.conf - not ideal, but working for the moment - I didn't find reliable way to create upstart task with condition to start before network devices are configured (we can look into cloud-init for that).

Additionally I implement EC2_USER_DATA - I put it into /etc/rc.local or configure to run from /etc/rc.local, but even here we have to be careful - because network could not be yet up really.

#6 Updated by Ruben S. Montero over 7 years ago

  • Target version changed from Release 4.4 to Release 4.6

#7 Updated by Ruben S. Montero over 7 years ago

  • Priority changed from Normal to Low
  • Target version deleted (Release 4.6)

#8 Updated by Ruben S. Montero over 6 years ago

  • Status changed from New to Pending

Also available in: Atom PDF