def openvz_post(ostemplate, vmid, config = {})
      config['vmid'] = vmid
      config['ostemplate'] = "local%3Avztmpl%2F#{ostemplate}.tar.gz"
      vm_definition = config.to_a.map { |v| v.join '=' }.join '&'

      http_action_post("nodes/#{@node}/openvz", vm_definition)
    end
def openvz_post(ostemplate, vmid, config = {})
      config['vmid'] = vmid
      config['ostemplate'] = "local%3Avztmpl%2F#{ostemplate}.tar.gz"
      vm_definition = config.to_a.map { |v| v.join '=' }.join '&'

      http_action_post("nodes/#{@node}/openvz", vm_definition)
    end
Create CT container

 :call-seq:
   openvz_post(ostemplate, vmid) -> String
   openvz_post(ostemplate, vmid, options) -> String

 Return a String as task ID

 Examples:

   openvz_post('ubuntu-10.04-standard_10.04-4_i386', 200)
   openvz_post('ubuntu-10.04-standard_10.04-4_i386', 200, {'hostname' => 'test.test.com', 'password' => 'testt' })

 Example return:

   UPID:localhost:000BC66A:1279E395:521EFC4E:vzcreate:200:root@pam: