OpenVZ Forum


Home » General » Support » Fedora 13 doesn't like OpenVZ
Fedora 13 doesn't like OpenVZ [message #39713] Tue, 25 May 2010 23:32 Go to next message
mperkel is currently offline  mperkel
Messages: 253
Registered: December 2006
Senior Member
I upgraded a Fedora 12 vps to Fedora 13and now it doesn't run.

When I try to enter it I get this:

enter into CT 901 failed
Unable to open pty: No such file or directory

Did the usual trick and not working. I also notice when I run vzlist I get one 1 process running.

901 1 running 65.49.42.26 template64.ctyme.com

I'd be happy to troubleshoot this. Anyone know what might be happening?

Thanks in advance.


Re: Fedora 13 doesn't like OpenVZ [message #39714 is a reply to message #39713] Wed, 26 May 2010 05:43 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

I suspect some needed vz-specific packages were vanished in the course of upgrade. Can you do a simple check? Run

rpm -qa | grep swsoft

on both F12 and F13 containers and see if there's any difference.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: Fedora 13 doesn't like OpenVZ [message #39719 is a reply to message #39713] Wed, 26 May 2010 12:16 Go to previous messageGo to next message
mperkel is currently offline  mperkel
Messages: 253
Registered: December 2006
Senior Member
Can't run anything from inside the container so I did this:

vzctl exec 901 rpm -qa | grep swsoft

rpmdb: Program version 4.8 doesn't match environment version 4.7
error: db3 error(-30971) from dbenv->open: DB_VERSION_MISMATCH: Database environment version mismatch
error: cannot open Packages index using db3 - (-30971)
error: cannot open Packages database in /var/lib/rpm
rpmdb: Program version 4.8 doesn't match environment version 4.7
error: db3 error(-30971) from dbenv->open: DB_VERSION_MISMATCH: Database environment version mismatch
error: cannot open Packages database in /var/lib/rpm


Re: Fedora 13 doesn't like OpenVZ [message #39721 is a reply to message #39713] Wed, 26 May 2010 12:50 Go to previous messageGo to next message
mperkel is currently offline  mperkel
Messages: 253
Registered: December 2006
Senior Member
I should also mention that I'm using the 64 bit version of Fedora 13. It may very well be a Fedora 13 bug as it was just released yesterday.

Re: Fedora 13 doesn't like OpenVZ [message #39722 is a reply to message #39719] Wed, 26 May 2010 12:50 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

Apparently Fedora updated RPM one more time... and for the first time made it forward-incompatible (i.e. newer version of RPM (4.8) can't read its DB which is in 4.7 format). Previously it was working that way.

So you are completely out of luck with this, sorry.

Well you might try doing 'vzctl exec 910 rpm --rebuilddb' to fix things, but I am not sure if it will work for you or not.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png

[Updated on: Wed, 26 May 2010 12:52]

Report message to a moderator

Re: Fedora 13 doesn't like OpenVZ [message #39724 is a reply to message #39713] Wed, 26 May 2010 13:01 Go to previous messageGo to next message
mperkel is currently offline  mperkel
Messages: 253
Registered: December 2006
Senior Member
Some progress. I removed the /var/lib/rpm/__db.* files and now:

vzctl exec 901 rpm -qa | grep swsoft
vzdev-3.3.13-1.3.swsoft.x86_64

Same as the Fedora 12 that works.




Re: Fedora 13 doesn't like OpenVZ [message #39725 is a reply to message #39724] Wed, 26 May 2010 13:04 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

OK, now check that

* /dev/ptmx is present in container (and its perms are sane/same as in F12)
* /dev/pts fs is mounted (mount | grep pts)


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: Fedora 13 doesn't like OpenVZ [message #39726 is a reply to message #39713] Wed, 26 May 2010 13:10 Go to previous messageGo to next message
mperkel is currently offline  mperkel
Messages: 253
Registered: December 2006
Senior Member
This is perhaps interesting. Tried to rum yum and got:

vzctl exec 901 yum -y update
Traceback (most recent call last):
File "/usr/bin/yum", line 4, in <module>
import yum
File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 42, in <module>
import rpmsack
File "/usr/lib/python2.6/site-packages/yum/rpmsack.py", line 24, in <module>
from rpmUtils import arch
File "/usr/lib/python2.6/site-packages/rpmUtils/arch.py", line 329, in <module>
canonArch = getCanonArch()
File "/usr/lib/python2.6/site-packages/rpmUtils/arch.py", line 325, in getCanonArch
return getCanonX86_64Arch(arch)
File "/usr/lib/python2.6/site-packages/rpmUtils/arch.py", line 288, in getCanonX86_64Arch
f = open("/proc/cpuinfo", "r")
IOError: [Errno 2] No such file or directory: '/proc/cpuinfo'

Not sure what this means. Tried running

vzctl exec 901 ls -l /

and got a listing that was not the root directory. Still investigating ...


Re: Fedora 13 doesn't like OpenVZ [message #39727 is a reply to message #39713] Wed, 26 May 2010 13:16 Go to previous messageGo to next message
mperkel is currently offline  mperkel
Messages: 253
Registered: December 2006
Senior Member
/dev/ptmx is present

mount complains there is no /etc/mtab file

/proc is empty


[Updated on: Wed, 26 May 2010 13:17]

Report message to a moderator

Re: Fedora 13 doesn't like OpenVZ [message #39728 is a reply to message #39726] Wed, 26 May 2010 13:22 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

/etc/mtab should be a symlink to /proc/mounts. Either it is absent, or /proc is not mounted (and the error from yum means the latter).

So, the problem is F13 doesn't mount some needed stuff on CT start. OK, check /etc/fstab, there should be lines for /proc, /sys, /dev/pts -- if there are no such lines then add those.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: Fedora 13 doesn't like OpenVZ [message #39729 is a reply to message #39728] Wed, 26 May 2010 13:24 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

Or, if ls -l / shows you something that does not look like root dir (i.e. dev proc bin lib usr etc) then something is badly broken (in CT).

Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: Fedora 13 doesn't like OpenVZ [message #39730 is a reply to message #39713] Wed, 26 May 2010 13:30 Go to previous messageGo to next message
mperkel is currently offline  mperkel
Messages: 253
Registered: December 2006
Senior Member
I modified fstab and no difference. /proc is still empty.


Re: Fedora 13 doesn't like OpenVZ [message #39731 is a reply to message #39730] Wed, 26 May 2010 13:41 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

mperkel wrote on Wed, 26 May 2010 17:30
I modified fstab and no difference. /proc is still empty.



Well now you have to either restart CT or run mount -a


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: Fedora 13 doesn't like OpenVZ [message #39733 is a reply to message #39713] Wed, 26 May 2010 14:20 Go to previous messageGo to next message
mperkel is currently offline  mperkel
Messages: 253
Registered: December 2006
Senior Member
I've restarted several times. If I run vzctl exec 901 mount -a then the /proc file system will mount. However the initial process that should have done that does run. What I suspect is that whatever process runs first that sets everything up is hanging up.


Re: Fedora 13 doesn't like OpenVZ [message #39735 is a reply to message #39713] Wed, 26 May 2010 15:08 Go to previous messageGo to next message
mperkel is currently offline  mperkel
Messages: 253
Registered: December 2006
Senior Member
This might be related to the problem:

http://rackerhacker.com/2010/03/26/adjusting-ttys-in-fedora- 13-with-upstart/

Changes in Fedora 13 relating to init and upstart.


Re: Fedora 13 doesn't like OpenVZ [message #39736 is a reply to message #39733] Wed, 26 May 2010 15:21 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

mperkel wrote on Wed, 26 May 2010 18:20
I've restarted several times. If I run vzctl exec 901 mount -a then the /proc file system will mount. However the initial process that should have done that does run. What I suspect is that whatever process runs first that sets everything up is hanging up.



OK maybe fedora relies on initrd mounting that stuff. We have already added automounting of /proc and /sys on CT start into vzctl-3.0.24 (not yet released but you can try compiling it from git HEAD). It might or might not help, but worth a try.

Alternative is editing /etc/rc.sysinit in CT, adding mount -a into proper place. F12 contains this code in /etc/rc.sysinit:

if [ ! -e /proc/mounts ]; then
        mount -n -t proc /proc /proc
        mount -n -t sysfs /sys /sys >/dev/null 2>&1
fi

...

mount -n /dev/pts >/dev/null 2>&1


Maybe it was removed from F13?


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: Fedora 13 doesn't like OpenVZ [message #39737 is a reply to message #39735] Wed, 26 May 2010 15:22 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

mperkel wrote on Wed, 26 May 2010 19:08
This might be related to the problem:

http://rackerhacker.com/2010/03/26/adjusting-ttys-in-fedora- 13-with-upstart/

Changes in Fedora 13 relating to init and upstart.


I guess this is not related, but yes, you might need to edit that file to disable running getty's on (absent) consoles.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: Fedora 13 doesn't like OpenVZ [message #39743 is a reply to message #39713] Thu, 27 May 2010 12:10 Go to previous messageGo to next message
mperkel is currently offline  mperkel
Messages: 253
Registered: December 2006
Senior Member
Fedora 13 is different enough that the smart guys are going to have to get a copy and figure this out. I had a working copy of yum in the vps and run this to do the upgrade from Fedora 12.

yum --releasever=13 upgrade --nogpg

This might be useful.

http://blog.bodhizazen.net/linux/lxc-configure-fedora-contai ners/


Re: Fedora 13 doesn't like OpenVZ [message #39767 is a reply to message #39736] Mon, 31 May 2010 05:26 Go to previous messageGo to next message
chronos is currently offline  chronos
Messages: 2
Registered: May 2010
Junior Member
I have openvz kernel 2.6.32 and after upgrade from F12 to F13 container is able to start but network interfaces are missing.

ifconfig displays nothing

# ifconfig


Device can't come up

# ifup lo
Device lo does not seem to be present, delaying initialization.
#ifup venet0:0
Device venet0:0 does not seem to be present, delaying initialization.


/proc is mounted and /proc/net/dev contains interface list

Inter-|   Receive                                                |  Transmit
 face |bytes    packets errs drop fifo frame compressed multicast|bytes    packets errs drop fifo colls carrier compressed
    lo:       0       0    0    0    0     0          0         0        0       0    0    0    0     0       0          0
venet0:       0       0    0    0    0     0          0         0        0       0    0    0    0     0       0          0


# rpm -qa | grep swsoft
vzdummy-glibc-2.11-2.swsoft.noarch
vzdummy-jre-fc12-1.0-1.swsoft.noarch
vzdev-1.0-7.swsoft.noarch


# uname -a
Linux server 2.6.32-avdeyev.1 #1 SMP Tue Apr 27 15:16:48 MSD 2010 x86_64 GNU/Linux


What should be proper way to debug these problems?

Re: Fedora 13 doesn't like OpenVZ [message #40495 is a reply to message #39713] Tue, 24 August 2010 07:49 Go to previous messageGo to next message
chronos is currently offline  chronos
Messages: 2
Registered: May 2010
Junior Member
By comparison of clean Fedora 13 template and container upgraded from Fedora 12 to 13 I was able to solve problem. As mentioned before there are some changes and problems with upstart and init process. After commenting line console output to #console output in files /etc/init/rc.conf and /etc/init/rcS.conf, network in container started properly after next reboot and system in container works right.
Re: Fedora 13 doesn't like OpenVZ [message #42215 is a reply to message #39713] Sat, 19 March 2011 04:48 Go to previous message
mperkel is currently offline  mperkel
Messages: 253
Registered: December 2006
Senior Member
Yes - that did it. Changing those lines (removing Console Output) fixed the problem with Fedora 13 and Fedora 14.



Previous Topic: vps configuration for vps to run cpanel
Next Topic: vzctl needs a "lint" command
Goto Forum:
  


Current Time: Tue May 07 18:06:46 GMT 2024

Total time taken to generate the page: 0.01515 seconds