Networking not starting - OpenVZ default Ubuntu 12.04 Template

Posted by Stu2000 on Ask Ubuntu See other posts from Ask Ubuntu or by Stu2000
Published on 2013-11-07T11:36:57Z Indexed on 2013/11/09 4:18 UTC
Read the original article Hit count: 338

Filed under:
|
|
|

I have been using HyperVM to deploy OpenVZ Ubuntu 12.04 server instances. Unfortunately, they all boot without networking enabled. I tried inserting int the crontab:

@reboot /usr/sbin/service networking restart

But this didn't work.

Running this command (without @reboot) from the CLI will result in the network starting and being able to use commands like ifconfig so I get the feeling it is just a matter of the cron being called too soon?

What is the best practice for resolving the issue. I am guessing something along the lines of adding an upstart job?

© Ask Ubuntu or respective owner

Related posts about networking

Related posts about cron