Comment 4 for bug 937259

Jeremy Davis (jedmeister) wrote :

Ok, done a little more research...

It looks like the vzcreate command comes from a 3rd party bundle of scripts called vztools. It is available for download (I assume that the PVE devs bundle this in PVE). Have a read here: http://blog.chriswalker.devnetonline.net/2010/01/09/openvz-tools-working-with-openvz-and-virtual-private-systems?page=4

On the following page of that blog post it certainly does appear that the vzctl comand to set the IP should work... And again on the official OpenVZ wiki: http://wiki.openvz.org/User_Guide/Operations_on_Containers#Setting_Network_Parameters

So I assume that we just need to work out why the templates work fine when launched by PVE (and I would assume thus by vzcreate) and not when using vzctl directly. I still think the first step is possibly to compare the /etc/network/interface file from an Ubuntu OVZ template (which networking does work OOTB)...