[OpenVZ on 10.04] 'vzctl create' causes error

Discussion in 'Server Operation' started by RegginKrad, Nov 5, 2010.

  1. RegginKrad

    RegginKrad New Member

    Tutorial:
    http://www.howtoforge.com/installing-and-using-openvz-on-ubuntu-10.04-p2

    Code:
    root@FIRE:~$ ls /vz/template/cache
    ubuntu-10.04-minimal_10.04_amd64.tar.gz  ubuntu-10.04-x86_64.tar.gz
    
    root@FIRE:/home/reggin# vzctl create 102 --ostemplate ubuntu-10.04-minimal_10.04_amd64 --config basic
    Unable to get full ostemplate name for ubuntu-10.04-minimal_10.04_amd64
    Creating container private area (ubuntu-10.04-minimal_10.04_amd64)
    /usr/local/lib/vzctl/scripts/vps-create: line 31:  4220 Killed                  tar -C "$VE_PRVT" ${TAR_OPT} ${OPT} -xf "$PRIVATE_TEMPLATE"
    vps-create ERROR: Error in tar --numeric-owner -z -xf /var/lib/vz/template/cache/ubuntu-10.04-minimal_10.04_amd64.tar.gz
    Received signal:  9 in /usr/sbin/vzquota
    Killed
    Also right after this my server gives the $ prompt like usual but will freeze after any command is given and must be restarted manually (physical restart button).

    This causes the 'vzctl set 101 --onboot yes --save' and 'vzctl start 101' to return errors and presumably means I can't continue the tutorial.

    I'm quite clueless as to what this error code means or how to get around it. Just for the record, I am trying to put a few (no more than 8) vps on a single dedicated server. If anyone knows a tutorial better suited for my project, please tell me.
     
  2. falko

    falko Super Moderator ISPConfig Developer

  3. RegginKrad

    RegginKrad New Member

    Code:
    root@FIRE:/home/reggin# ls -la /vz/template/cache/
    total 222956
    drwxr-xr-x 2 root root      4096 2010-10-31 23:06 .
    drwxr-xr-x 3 root root      4096 2010-10-31 22:10 ..
    -rw-r--r-- 1 root root  87791258 2010-05-04 18:36 ubuntu-10.04-minimal_10.04_amd64.tar.gz
    -rw-r--r-- 1 root root 140500922 2010-07-09 23:30 ubuntu-10.04-x86_64.tar.gz
    root@FIRE:/home/reggin#
    I will post more when Debian finishes downloading
     
  4. RegginKrad

    RegginKrad New Member

    Code:
    root@FIRE:/var/lib/vz/template/cache# vzctl create 103 --ostemplate debian-5.0-amd64-minimal --config basic
    Unable to get full ostemplate name for debian-5.0-amd64-minimal
    Creating container private area (debian-5.0-amd64-minimal)
    /usr/local/lib/vzctl/scripts/vps-create: line 31: 13418 Killed                  tar -C "$VE_PRVT" ${TAR_OPT} ${OPT} -xf "$PRIVATE_TEMPLATE"
    vps-create ERROR: Error in tar --numeric-owner -z -xf /var/lib/vz/template/cache/debian-5.0-amd64-minimal.tar.gz
    Received signal:  9 in /usr/sbin/vzquota
    Killed
     
  5. falko

    falko Super Moderator ISPConfig Developer

    Can you run
    Code:
    tar --numeric-owner -z -xf /var/lib/vz/template/cache/debian-5.0-amd64-minimal.tar.gz
    manually on the shell? Do you get any error messages?
     
  6. RegginKrad

    RegginKrad New Member

    Sorry it took so long:

    Code:
    root@FIRE:/home/reggin# tar --numeric-owner -z -xf /var/lib/vz/template/cache/debian-5.0-amd64-minimal.tar.gz
    root@FIRE:/home/reggin# ls -la  /var/lib/vz/template/cache
    total 282976
    drwxr-xr-x 2 root root      4096 2010-11-06 10:40 .
    drwxr-xr-x 3 root root      4096 2010-10-31 22:10 ..
    -rw-r--r-- 1 root root  61459687 2009-01-13 01:44 debian-5.0-amd64-minimal.tar.gz
    -rw-r--r-- 1 root root  87791258 2010-05-04 18:36 ubuntu-10.04-minimal_10.04_amd64.tar.gz
    -rw-r--r-- 1 root root 140500922 2010-07-09 23:30 ubuntu-10.04-86_64.tar.gz
    No error messages.
     
  7. falko

    falko Super Moderator ISPConfig Developer

    No error message? :confused:

    Maybe it is a problem with missing drive space. What's the output of
    Code:
    df -h
    ?

    Are there any errors in your logs?
     
  8. RegginKrad

    RegginKrad New Member

    I just remembered that my laptop's motherboard required Virtualization to be manually enabled. On that note, I checked my desktop board if anything similar occured. I found a setting I had not recognized called "no execute memory protection technology". My good friend Google lead me to believe that hypervisors hate that, so I disabled it. The vzctl create command worked only after I redid most of the tutorial.

    Code:
    root@FIRE:/home/reggin# vzctl create 103 --ostemplate debian-5.0-amd64-minimal --config basic
    Unable to get full ostemplate name for debian-5.0-amd64-minimal
    Creating container private area (debian-5.0-amd64-minimal)
    Performing postcreate actions
    Container private area was created
    Thank you for your time.
     

Share This Page