LxCenter HyperVM & Kloxo Support

Forum



Members   Search      Help    Register    Login    Home
Home » HyperVM Community Support » Knowledge Base » CentOS 4.5 ssh/console fails on openvz.
CentOS 4.5 ssh/console fails on openvz. [message #5728] Sun, 27 May 2007 13:31 Go to next message
Lxhelp
Messages: 23691
Registered: July 2006
The Champion

People who have updated their centOS4.4 to 4.5 seemed to run into a major problem with their vps rendered nearly inaccssible with both ssh and console failing. The reason is the switch to udev, which removed the static dev files, which is how openvz VPSes are configured. The solution:

 

 vzctl stop bad-vpsid
 mv /vz/private/bad-vpsid/dev /vz/private/bad-vpsid/dev.disabled
 cp -a /vz/private/good-vpsid/dev /vz/private/bad-vpsid
 vzctl start bad-vpsid

 




Good-vpsid is a vps running centos-4.4. You can create a fresh vps using one of the centos-4 ostemplates to get a working centos-4.4 vps to copy the '/dev' from.

Thanks.


Re: CentOS 4.5 ssh/console fails on openvz. [message #5746 is a reply to message #5728] Sun, 27 May 2007 17:22 Go to previous messageGo to next message
webxtra is currently offline webxtra  Netherlands
Messages: 112
Registered: March 2007
Location: The Netherlands
Valuable Member
What if all my VPS-s went bad and I do not have any good ones on my system?

On the openVZ forum they were talking about a vzdev package that could be installed, but I couldn't find it. Does LxLabs provide such a package?
Re: CentOS 4.5 ssh/console fails on openvz. [message #5748 is a reply to message #5728] Sun, 27 May 2007 18:17 Go to previous messageGo to next message
joshua is currently offline joshua  Canada
Messages: 170
Registered: May 2007
Senior Member
You can create a new CentOS 4.4 VPS and use the /dev from that.
Re: CentOS 4.5 ssh/console fails on openvz. [message #5799 is a reply to message #5728] Tue, 29 May 2007 11:19 Go to previous messageGo to next message
whatever is currently offline whatever  India
Messages: 609
Registered: September 2006
Master
So we have to copy /dev in every VPS we make?
Ahh!!!
Re: CentOS 4.5 ssh/console fails on openvz. [message #5801 is a reply to message #5728] Tue, 29 May 2007 12:10 Go to previous messageGo to next message
joshua is currently offline joshua  Canada
Messages: 170
Registered: May 2007
Senior Member
It's pretty quick Smile

I did about 20 of them in 5 minutes or so.
Re: CentOS 4.5 ssh/console fails on openvz. [message #7383 is a reply to message #5728] Tue, 26 June 2007 10:22 Go to previous messageGo to next message
CleberDantas is currently offline CleberDantas  Brazil
Messages: 149
Registered: October 2006
Valuable Member
What Link for download OS TEMPLATE centos 4.4 ?
Re: CentOS 4.5 ssh/console fails on openvz. [message #7384 is a reply to message #7383] Tue, 26 June 2007 10:27 Go to previous messageGo to next message
Lxhelp
Messages: 23691
Registered: July 2006
The Champion
http://download.lxlabs.com/download/vpstemplate


On Tue, Jun 26, 2007 at 02:22:04PM -0000, Cleber Dantas wrote:
>
>
> What Link for download OS TEMPLATE centos 4.4 ?
Re: CentOS 4.5 ssh/console fails on openvz. [message #7386 is a reply to message #5728] Tue, 26 June 2007 10:53 Go to previous messageGo to next message
CleberDantas is currently offline CleberDantas  Brazil
Messages: 149
Registered: October 2006
Valuable Member
Hello,

I used this image:
centos-4-i386-default.tar.gz 2006-Sep-02 08:47:23 117.8M

This is 4.4 or 4.5?

I have this problem for install cpanel.
Re: CentOS 4.5 ssh/console fails on openvz. [message #7387 is a reply to message #7386] Tue, 26 June 2007 10:55 Go to previous messageGo to next message
Lxhelp
Messages: 23691
Registered: July 2006
The Champion
4.4
Re: CentOS 4.5 ssh/console fails on openvz. [message #7389 is a reply to message #5728] Tue, 26 June 2007 11:05 Go to previous messageGo to next message
CleberDantas is currently offline CleberDantas  Brazil
Messages: 149
Registered: October 2006
Valuable Member
I installed cpanel4 and 5 and have this error:

...............x10.......................................... ..........................11................................ ............................................................ ............................................................ ............................................................ ............................................................ ............................................................ ............................................................ .................x11..12...open3: close(main::RNULL) failed: Bad file descriptor at ./install line 650
[root@srv01 home]#

I deleted vm and create again. Error continue.

What problem?
Re: CentOS 4.5 ssh/console fails on openvz. [message #7390 is a reply to message #7389] Tue, 26 June 2007 11:06 Go to previous messageGo to next message
Lxhelp
Messages: 23691
Registered: July 2006
The Champion
PLease check the howto. It is explained there clearly.

Re: CentOS 4.5 ssh/console fails on openvz. [message #7392 is a reply to message #5728] Tue, 26 June 2007 11:45 Go to previous messageGo to next message
CleberDantas is currently offline CleberDantas  Brazil
Messages: 149
Registered: October 2006
Valuable Member
Hello,

I understand.

I created VM witch CENTOS4 and started install cpanel. Have error.

I created other vm witch centos4 and copyed /dev of new vm for old vm. Install of cpanel is Ok.

Cpanel damaged /dev ???
Re: CentOS 4.5 ssh/console fails on openvz. [message #7394 is a reply to message #7392] Tue, 26 June 2007 11:47 Go to previous messageGo to next message
Lxhelp
Messages: 23691
Registered: July 2006
The Champion
Quote:


>
>
> Hello,
>
> I understand.
>
> I created VM witch CENTOS4 and started install cpanel. Have error.
>
> I created other vm witch centos4 and copyed /dev of new vm for old vm. Install of cpanel is Ok.
>
> Cpanel damaged /dev ???




yes. That's it. It is not cpanel, but rather the updation, that installs udev.

Thanks.
Re: CentOS 4.5 ssh/console fails on openvz. [message #7644 is a reply to message #7394] Sat, 30 June 2007 10:06 Go to previous messageGo to next message
aidanlx  Ireland
Messages: 92
Registered: June 2007
Valuable Member
How can we avoid this error with new cPanel installations & CentOS 4-Default image? Is there something we can add to yum.conf to stop the upgrade?
Re: CentOS 4.5 ssh/console fails on openvz. [message #7713 is a reply to message #7644] Mon, 02 July 2007 05:34 Go to previous messageGo to next message
aidanlx  Ireland
Messages: 92
Registered: June 2007
Valuable Member
Ah, its ok, I created an OS template from the first VPS to avoid the error.
icon3.gif  Re: CentOS 4.5 ssh/console fails on openvz. [message #8412 is a reply to message #5728] Fri, 13 July 2007 19:38 Go to previous messageGo to next message
carvalho is currently offline carvalho  Portugal
Messages: 8
Registered: July 2007
Location: PORTUGAL
Member
I've found an workaround so that the yum don't delete the /dev, and also don't mess another things.
I've look in forums and this seems to be a recurrent problem when updating centos. (4.2->4.3 , 4.3->4.4 amd so on)

So what i did was after instaling the HIB23 ostemplate, I edited the /etc/yum.conf and added the following line:

 exclude=udev kernel* mkinitrd module-init-tools MAKEDEV


and then did the normal:
# yum check-update
# yum -y update


My VPS was updated from centos4.4 to centos4.5
Rebooted and my sshd was still OK Smile

I hope this helps Wink
Pedro Carvalho
Re: CentOS 4.5 ssh/console fails on openvz. [message #8414 is a reply to message #8412] Fri, 13 July 2007 23:40 Go to previous messageGo to next message
Lxhelp
Messages: 23691
Registered: July 2006
The Champion
Yes. That will indeed do. Please create another thread with this hyperVM howto forum itself, and I will make it sticky.

Thanks.


Quote:


>
>
> I've found an workaround so that the yum don't delete the /dev, and also don't mess another things.
> I've look in forums and this seems to be a recurrent problem when updating centos. (4.2->4.3 , 4.3->4.4 amd so on)
>
> So what i did was after instaling the HIB23 ostemplate, I edited the /etc/yum.conf and added the following line:
>
>
> exclude=udev kernel* mkinitrd module-init-tools MAKEDEV
>
>
> and then did the normal:
>
> # yum check-update
> # yum -y update
>
>
> My VPS was updated from centos4.4 to centos4.5
> Rebooted and my sshd was still OK :)
>
> I hope this helps ;)
> Pedro Carvalho




Re: CentOS 4.5 ssh/console fails on openvz. [message #9260 is a reply to message #8414] Wed, 25 July 2007 07:59 Go to previous messageGo to next message
carvalho is currently offline carvalho  Portugal
Messages: 8
Registered: July 2007
Location: PORTUGAL
Member

I've cerated the a thread called "HOWTO Upgrade a CentOS VPS" [message #9259]
Is it ok?
Sorry for the delay Wink

BR,
Pedro Carvalho
Re: CentOS 4.5 ssh/console fails on openvz. [message #10602 is a reply to message #9260] Sat, 11 August 2007 23:08 Go to previous message
Lxhelp
Messages: 23691
Registered: July 2006
The Champion
The fix is now built into hyperVM. Go to vps home -> fix centos 4.5 dev

Thanks for everyone's input.


On Wed, Jul 25, 2007 at 11:59:46AM -0000, Pedro Carvalho wrote:
>
>
>
> I've cerated the a thread called "HOWTO Upgrade a CentOS VPS" [message #9259]
> Is it ok?
> Sorry for the delay ;)
>
> BR,
> Pedro Carvalho
Previous Topic:HOWTO Upgrade a CentOS VPS
Next Topic:Clustering on hosts with a private network.
Goto Forum:
  


Current Time: Sun May 19 05:55:12 EDT 2013

Total time taken to generate the page: 1.38526 seconds
.:: Contact :: Home :: Privacy ::.

Click here to lend your support to: LxCenter and make a donation at www.pledgie.com !

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software