OpenVZ Error installing on Debian 6

Discussion in 'Installation/Configuration' started by noaptus, Sep 23, 2012.

  1. noaptus

    noaptus New Member

    Hi.

    I'm following this How to install OpenVZ on debian 6 i'm not using AMD http://www.howtoforge.com/installing-and-using-openvz-on-debian-squeeze-amd64

    And i'm getting error when i use this command

    apt-get -y install linux-image-openvz-686 vzctl vzquota vzdump



    Code:
    root@Vps:~# apt-get -y install linux-image-openvz-686 vzctl vzquota vzdump
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    linux-image-openvz-686 is already the newest version.
    vzctl is already the newest version.
    vzdump is already the newest version.
    vzquota is already the newest version.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    4 not fully installed or removed.
    After this operation, 0 B of additional disk space will be used.
    Setting up vzctl (3.0.24-12) ...
    Starting OpenVZ: failed to load module vzmon..failed
    invoke-rc.d: initscript vz, action "start" failed.
    dpkg: error processing vzctl (--configure):
     subprocess installed post-installation script returned error exit status 1
    dpkg: dependency problems prevent configuration of linux-image-2.6.32-5-openvz-686:
     linux-image-2.6.32-5-openvz-686 depends on vzctl; however:
      Package vzctl is not configured yet.
    dpkg: error processing linux-image-2.6.32-5-openvz-686 (--configure):
     dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of linux-image-openvz-686:
     linux-image-openvz-686 depends on linux-image-2.6.32-5-openvz-686; however:
      Package linux-image-2.6.32-5-openvz-686 is not configured yet.
    dpkg: error processing linux-image-openvz-686 (--configure):
     dependency problems - leaving unconfigured
    configured to not write apport reports
                                          configured to not write apport reports
                                                                                configured to not write apport reports
                                                                                                                      configured to not write apport reports
                                                                                                                                                            dpkg: dependency problems prevent configuration of vzdump:
     vzdump depends on vzctl; however:
      Package vzctl is not configured yet.
    dpkg: error processing vzdump (--configure):
     dependency problems - leaving unconfigured
    Errors were encountered while processing:
     vzctl
     linux-image-2.6.32-5-openvz-686
     linux-image-openvz-686
     vzdump
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    
    My debian is minimal install.


    Can someone help me on this please.

    Regards

    Noaptus
     
  2. noaptus

    noaptus New Member

    Help

    Hi.

    Can someone help me?
     
  3. falko

    falko Super Moderator ISPConfig Developer

    Can you try to install vzctl first...

    Code:
    apt-get install vzctl
    ... and then (in a second step) all other packages?
     
  4. noaptus

    noaptus New Member

    No

    Hi Falko.

    Thanku for taking the time to replay my post.

    I did as you told me to try and this is the result.

    Code:
    root@Vps:~# apt-get install vzctl
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following NEW packages will be installed:
      vzctl
    0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
    Need to get 210 kB of archives.
    After this operation, 1020 kB of additional disk space will be used.
    Get:1 http://ftp.debian.org/debian/ squeeze/main vzctl i386 3.0.24-12 [210 kB]
    Fetched 210 kB in 9s (21.1 kB/s)
    Selecting previously deselected package vzctl.
    (Reading database ... 17852 files and directories currently installed.)
    Unpacking vzctl (from .../vzctl_3.0.24-12_i386.deb) ...
    Processing triggers for man-db ...
    Setting up vzctl (3.0.24-12) ...
    Starting OpenVZ: failed to load module vzmon..failed
    invoke-rc.d: initscript vz, action "start" failed.
    dpkg: error processing vzctl (--configure):
     subprocess installed post-installation script returned error exit status 1
    configured to not write apport reports
                                          Errors were encountered while processing:
     vzctl
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    root@Vps:~#
    
    I'm still getting the error installing VZCTL
     
  5. falko

    falko Super Moderator ISPConfig Developer

    Can you run
    Code:
    modprobe vzmon
    and try again?

    Can you post your /etc/apt/sources.list? I'm under the impression that you're using multiple repositories.
     
  6. MaddinXx

    MaddinXx Member

    A quick note aside.

    I recommend you installing the official OpenVZ kernel/tools like described here:

    http://wiki.openvz.org/Install_kernel_from_RPM_on_Debian_6.0

    Note that they missed ploop-lib and libcgroup (http://download.openvz.org/utils/libcgroup/) which you need to download/build the same way like the other packages.

    Why?

    Well, I can't tell you from a very technical view but:

    - you'll get ploop support (container in a single file) (this has many benefits)
    - latest versions of all packages needed for openvz
    - I got better general performance (e.g. less resources idle on node)

    However, keeping those packages up-to-date is more complicated as you have to rerun these steps every time a new package is released.

    I'm currently checking if alien builds packages are "based on the current system" or if a .deb built with alien is valid on any other machine with the same architecture/system - in that case, I'm going to try to put a repo online.

    Regards,
    Michel
     

Share This Page