PVE 1.4 kernel freezing

peter

Member
Nov 25, 2008
31
0
6
I'm trying to install PVE1.4 on top of an existing Debian Lenny installation on a AMD phenom x3720 server in a data center (via a Lantronix KVM).

The data center admin staff wouldn't install proxmox from baremetal, hence the reason I'm trying to install it on an existing Lenny install.

Debian boots just fine, but when I try booting with the PVE Kernel 2.6.24-9-pve, it hangs very early in the process.

The full boot messages are:

Code:
Filesystem type is ext2fs, partition type 0x83
kernel /vmlinux-2.6.24-9-pve root=/dev/sda5 ro
  [Linux-bzImage, setup=0x2c00, size=0x1ffa08]
initrd /initrd.img-2.6.24-9-pve
  [Linux-initrd @ 0x372f1000, 0xcfe7d2 bytes]


Kernel alive
Kernel direct mapping tables up to 100000000 @ 8000-d000
At that point, the only thing I can do is reboot with the standard Lenny kernel.

I tried using the test kernel, ie: 2.6.24-10-pve which does boot, but vzctl won't install with a message saying no openvz kernel found
 
Last edited:
Perhaps I'm missing a step somewhere, although it's getting quite messy now.

Here's the messages I'm getting after booting with 2.6.32-1-pve

Code:
# uname -r
2.6.32-1-pve

# aptitude install proxmox-ve
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
No candidate version found for proxmox-ve
No candidate version found for proxmox-ve
The following partially installed packages will be configured:
  proxmox-ve-2.6.32 pve-manager vzctl vzdump
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Writing extended state information... Done
Setting up vzctl (3.0.23-1pve3) ...
Running kernel is not OpenVZ kernel...failed
invoke-rc.d: initscript vz, action "start" failed.
dpkg: error processing vzctl (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of pve-manager:
 pve-manager depends on vzctl (>= 3.0.23-1pve2); however:
  Package vzctl is not configured yet.
dpkg: error processing pve-manager (--configure):
 dependency problems - leaving unconfigured
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
dpkg: dependency problems prevent configuration of proxmox-ve-2.6.32:
 proxmox-ve-2.6.32 depends on pve-manager; however:
  Package pve-manager is not configured yet.
 proxmox-ve-2.6.32 depends on vzctl; however:
  Package vzctl is not configured yet.
 proxmox-ve-2.6.32 depends on vzdump; however:
  Package vzdump is not configured yet.
dpkg: error processing proxmox-ve-2.6.32 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 vzctl
 pve-manager
 vzdump
 proxmox-ve-2.6.32
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up vzctl (3.0.23-1pve3) ...
Running kernel is not OpenVZ kernel...failed
invoke-rc.d: initscript vz, action "start" failed.
dpkg: error processing vzctl (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of pve-manager:
 pve-manager depends on vzctl (>= 3.0.23-1pve2); however:
  Package vzctl is not configured yet.
dpkg: error processing pve-manager (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of proxmox-ve-2.6.32:
 proxmox-ve-2.6.32 depends on pve-manager; however:
  Package pve-manager is not configured yet.
 proxmox-ve-2.6.32 depends on vzctl; however:
  Package vzctl is not configured yet.
dpkg: error processing proxmox-ve-2.6.32 (--configure):
 dependency problems - leaving unconfigured
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
 pve-manager
 proxmox-ve-2.6.32
 vzdump
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
 
I don't necessarily want to update from the pvetest repository. I just want to boot a kernel that won't hang.

I still have the same problem

Code:
# apt-get install proxmox-ve-2.6.32
Reading package lists... Done
Building dependency tree
Reading state information... Done
proxmox-ve-2.6.32 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, 0B of additional disk space will be used.
Setting up vzctl (3.0.23-1pve3) ...
Running kernel is not OpenVZ kernel...failed
invoke-rc.d: initscript vz, action "start" failed.
dpkg: error processing vzctl (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of pve-manager:
 pve-manager depends on vzctl (>= 3.0.23-1pve2); however:
  Package vzctl is not configured yet.
dpkg: error processing pve-manager (--configure):
 dependency problems - leaving unconfigured
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
dpkg: dependency problems prevent configuration of proxmox-ve-2.6.32:
 proxmox-ve-2.6.32 depends on pve-manager; however:
  Package pve-manager is not configured yet.
 proxmox-ve-2.6.32 depends on vzctl; however:
  Package vzctl is not configured yet.
 proxmox-ve-2.6.32 depends on vzdump; however:
  Package vzdump is not configured yet.
dpkg: error processing proxmox-ve-2.6.32 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 vzctl
 pve-manager
 vzdump
 proxmox-ve-2.6.32
E: Sub-process /usr/bin/dpkg returned an error code (1)

I have previously tried removing all the pve packages and reinstalling them, but with the same results.
 
Just to expand on the above, I started from a totally clean debian system and try to install the newer kernel.

Code:
# uname -r
2.6.26-2-amd64

# dpkg -l | egrep 'pve|prox|vz|qemu'
#

Code:
# cat /etc/apt/sources.list
deb http://debian.mirror.iweb.ca/debian/ lenny main
deb-src http://debian.mirror.iweb.ca/debian/ lenny main

deb http://debian.mirror.iweb.ca/debian-security/ lenny/updates main contrib
deb-src http://debian.mirror.iweb.ca/debian-security/ lenny/updates main contrib

#deb http://ftp.debian.org/debian lenny main

# PVE packages provided by proxmox.com
#deb http://download.proxmox.com/debian lenny pve
deb http://download.proxmox.com/debian lenny pvetest


# security updates
#deb http://security.debian.org/ lenny/updates main

Code:
# apt-get update
Hit http://debian.mirror.iweb.ca lenny Release.gpg
Ign http://debian.mirror.iweb.ca lenny/main Translation-en_US
Hit http://debian.mirror.iweb.ca lenny/updates Release.gpg
Ign http://debian.mirror.iweb.ca lenny/updates/main Translation-en_US
Ign http://debian.mirror.iweb.ca lenny/updates/contrib Translation-en_US
Hit http://debian.mirror.iweb.ca lenny Release
Hit http://debian.mirror.iweb.ca lenny/updates Release
Ign http://debian.mirror.iweb.ca lenny/main Packages/DiffIndex
Ign http://debian.mirror.iweb.ca lenny/main Sources/DiffIndex
Hit http://debian.mirror.iweb.ca lenny/main Packages
Hit http://debian.mirror.iweb.ca lenny/main Sources
Ign http://debian.mirror.iweb.ca lenny/updates/main Packages/DiffIndex
Ign http://debian.mirror.iweb.ca lenny/updates/contrib Packages/DiffIndex
Ign http://debian.mirror.iweb.ca lenny/updates/main Sources/DiffIndex
Ign http://debian.mirror.iweb.ca lenny/updates/contrib Sources/DiffIndex
Hit http://debian.mirror.iweb.ca lenny/updates/main Packages
Hit http://debian.mirror.iweb.ca lenny/updates/contrib Packages
Hit http://debian.mirror.iweb.ca lenny/updates/main Sources
Hit http://debian.mirror.iweb.ca lenny/updates/contrib Sources
Hit http://download.proxmox.com lenny Release.gpg
Ign http://download.proxmox.com lenny/pvetest Translation-en_US
Hit http://download.proxmox.com lenny Release
Ign http://download.proxmox.com lenny/pvetest Packages/DiffIndex
Ign http://download.proxmox.com lenny/pvetest Packages
Hit http://download.proxmox.com lenny/pvetest Packages
Reading package lists... Done

# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Note that I'd previously run apt-get update, hence no packages to be installed.


Code:
# apt-get  install proxmox-ve-2.6.32
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libpve-storage-perl pve-firmware pve-kernel-2.6.32-1-pve pve-manager pve-qemu-kvm qemu-server vzctl vzdump
  vzprocps vzquota
Suggested packages:
  vzctl-ostemplate ovzkernel kernel-patch-openvz
The following NEW packages will be installed:
  libpve-storage-perl proxmox-ve-2.6.32 pve-firmware pve-kernel-2.6.32-1-pve pve-manager pve-qemu-kvm qemu-server
  vzctl vzdump vzprocps vzquota
0 upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
Need to get 183kB/53.7MB of archives.
After this operation, 7098kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://debian.mirror.iweb.ca lenny/main vzquota 3.0.11-1 [84.4kB]
Get:2 http://download.proxmox.com lenny/pvetest vzprocps 2.0.11-1dso2 [99.0kB]
Fetched 183kB in 0s (203kB/s)
Preconfiguring packages ...
Selecting previously deselected package libpve-storage-perl.
(Reading database ... 27662 files and directories currently installed.)
Unpacking libpve-storage-perl (from .../libpve-storage-perl_1.0-6_all.deb) ...
Selecting previously deselected package pve-kernel-2.6.32-1-pve.
Unpacking pve-kernel-2.6.32-1-pve (from .../pve-kernel-2.6.32-1-pve_2.6.32-2_amd64.deb) ...
Selecting previously deselected package pve-firmware.
Unpacking pve-firmware (from .../pve-firmware_1.0-3_all.deb) ...
Selecting previously deselected package pve-qemu-kvm.
Unpacking pve-qemu-kvm (from .../pve-qemu-kvm_0.11.1-1_amd64.deb) ...
Selecting previously deselected package qemu-server.
Unpacking qemu-server (from .../qemu-server_1.1-10_amd64.deb) ...
Selecting previously deselected package vzquota.
Unpacking vzquota (from .../vzquota_3.0.11-1_amd64.deb) ...
Selecting previously deselected package vzctl.
Unpacking vzctl (from .../vzctl_3.0.23-1pve3_amd64.deb) ...
Adding OpenVZ sysctl settings, see README at /usr/share/doc/vzctl/ ...
Selecting previously deselected package pve-manager.
Unpacking pve-manager (from .../pve-manager_1.5-1_all.deb) ...
Selecting previously deselected package vzdump.
Unpacking vzdump (from .../archives/vzdump_1.2-5_all.deb) ...
Selecting previously deselected package vzprocps.
Unpacking vzprocps (from .../vzprocps_2.0.11-1dso2_amd64.deb) ...
Selecting previously deselected package proxmox-ve-2.6.32.
Unpacking proxmox-ve-2.6.32 (from .../proxmox-ve-2.6.32_1.5-2_all.deb) ...
Processing triggers for man-db ...
Setting up libpve-storage-perl (1.0-6) ...
Setting up pve-kernel-2.6.32-1-pve (2.6.32-2) ...
update-initramfs: Generating /boot/initrd.img-2.6.32-1-pve
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
W: mdadm: no arrays defined in configuration file.
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /vmlinuz-2.6.32-1-pve
Found kernel: /vmlinuz-2.6.26-2-amd64
Updating /boot/grub/menu.lst ... done

Setting up pve-firmware (1.0-3) ...
Setting up pve-qemu-kvm (0.11.1-1) ...
Setting up qemu-server (1.1-10) ...
Setting up vzquota (3.0.11-1) ...
Setting up vzctl (3.0.23-1pve3) ...
Running kernel is not OpenVZ kernel...failed
invoke-rc.d: initscript vz, action "start" failed.
dpkg: error processing vzctl (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of pve-manager:
 pve-manager depends on vzctl (>= 3.0.23-1pve2); however:
  Package vzctl is not configured yet.
dpkg: error processing pve-manager (--configure):
 dependency problems - leaving unconfigured
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
Setting up vzprocps (2.0.11-1dso2) ...
dpkg: dependency problems prevent configuration of proxmox-ve-2.6.32:
 proxmox-ve-2.6.32 depends on pve-manager; however:
  Package pve-manager is not configured yet.
 proxmox-ve-2.6.32 depends on vzctl; however:
  Package vzctl is not configured yet.
 proxmox-ve-2.6.32 depends on vzdump; however:
  Package vzdump is not configured yet.
dpkg: error processing proxmox-ve-2.6.32 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 vzctl
 pve-manager
 vzdump
 proxmox-ve-2.6.32
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
I then thought I try to do the install with 2.6.32-1-pve running, as I assumed the reason I got the "Running kernel is not OpenVZ kernel...failed" error was due to me trying to install running a vanilla Debian kernel.

However, I got the same results, ie:

Code:
# uname -r
2.6.32-1-pve

# apt-get install proxmox-ve-2.6.32
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libpve-storage-perl pve-firmware pve-manager pve-qemu-kvm qemu-server vzctl vzdump vzprocps vzquota
Suggested packages:
  vzctl-ostemplate ovzkernel kernel-patch-openvz
The following NEW packages will be installed:
  libpve-storage-perl proxmox-ve-2.6.32 pve-firmware pve-manager pve-qemu-kvm qemu-server vzctl vzdump vzprocps vzquota
0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/6873kB of archives.
After this operation, 7098kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Preconfiguring packages ...
Selecting previously deselected package libpve-storage-perl.
(Reading database ... 30619 files and directories currently installed.)
Unpacking libpve-storage-perl (from .../libpve-storage-perl_1.0-6_all.deb) ...
Selecting previously deselected package pve-firmware.
Unpacking pve-firmware (from .../pve-firmware_1.0-3_all.deb) ...
Selecting previously deselected package pve-qemu-kvm.
Unpacking pve-qemu-kvm (from .../pve-qemu-kvm_0.11.1-1_amd64.deb) ...
Selecting previously deselected package qemu-server.
Unpacking qemu-server (from .../qemu-server_1.1-10_amd64.deb) ...
Selecting previously deselected package vzquota.
Unpacking vzquota (from .../vzquota_3.0.11-1_amd64.deb) ...
Selecting previously deselected package vzctl.
Unpacking vzctl (from .../vzctl_3.0.23-1pve3_amd64.deb) ...
Adding OpenVZ sysctl settings, see README at /usr/share/doc/vzctl/ ...
Selecting previously deselected package pve-manager.
Unpacking pve-manager (from .../pve-manager_1.5-1_all.deb) ...
Selecting previously deselected package vzdump.
Unpacking vzdump (from .../archives/vzdump_1.2-5_all.deb) ...
Selecting previously deselected package vzprocps.
Unpacking vzprocps (from .../vzprocps_2.0.11-1dso2_amd64.deb) ...
Selecting previously deselected package proxmox-ve-2.6.32.
Unpacking proxmox-ve-2.6.32 (from .../proxmox-ve-2.6.32_1.5-2_all.deb) ...
Processing triggers for man-db ...
Setting up libpve-storage-perl (1.0-6) ...
Setting up pve-firmware (1.0-3) ...
Setting up pve-qemu-kvm (0.11.1-1) ...
Setting up qemu-server (1.1-10) ...
Setting up vzquota (3.0.11-1) ...
Setting up vzctl (3.0.23-1pve3) ...
Running kernel is not OpenVZ kernel...failed
invoke-rc.d: initscript vz, action "start" failed.
dpkg: error processing vzctl (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of pve-manager:
 pve-manager depends on vzctl (>= 3.0.23-1pve2); however:
  Package vzctl is not configured yet.
dpkg: error processing pve-manager (--configure):
 dependency problems - leaving unconfigured
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
Setting up vzprocps (2.0.11-1dso2) ...
dpkg: dependency problems prevent configuration of proxmox-ve-2.6.32:
 proxmox-ve-2.6.32 depends on pve-manager; however:
  Package pve-manager is not configured yet.
 proxmox-ve-2.6.32 depends on vzctl; however:
  Package vzctl is not configured yet.
 proxmox-ve-2.6.32 depends on vzdump; however:
  Package vzdump is not configured yet.
dpkg: error processing proxmox-ve-2.6.32 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 vzctl
 pve-manager
 vzdump
 proxmox-ve-2.6.32
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
OK, here is a workaround. Please edit /etc/vz/vz.conf and set:

VIRTUOZZO=no

Does that fix the problem?
 
Setting

VIRTUOZZO=no

in /etc/vz/vz.conf allows

apt-get install proxmox-ve-2.6.32

to complete successfully.

But you're saying that 2.6.32 has no openvz support? What's the latest kernel I can use with openvz support? Alternatively, how do I downgrade to 2.6.18?
 
At this point, I think I'm screwed. Here's a summary of the various kernels

2.6.18-1-pve - boots, but no interfaces come up. Gets the error
eth0: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: No such device

2.6.24-9-pve - Freezes very early in the boot process (see original post for the message.)

2.6.24-10-pve - Same as 2.6.24-9-pve


2.6.32-1-pve - Boots fine, but needs VIRTUOZZO=no set. Kernel doesn't support openvz, which is what I need.


Have I come to a dead end here?
 
2.6.18-1-pve - boots, but no interfaces come up. Gets the error
eth0: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: No such device

Please can you send me the output of 'dmesg' (to dietmar@proxmox.com)?
 
Code:
e1000: eth0: e1000_probe: Intel(R) PRO/1000 Network Connection
udev: renamed network interface eth0 to eth1

Seems the device is renamed to eth1 - not sure why.
 
Finally fixed :D

Thank you very much.


/etc/udev/rules.d/70-persistent-net.rules had the entry

Code:
# PCI device 0x8086:0x107c (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1b:21:4d:a1:d1", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

which I changed to eth0.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!