LxCenter HyperVM & Kloxo Support

Forum



Members   Search      Help    Register    Login    Home
Home » HyperVM Community Support » Knowledge Base » HOWTO Upgrade a CentOS VPS
icon1.gif  HOWTO Upgrade a CentOS VPS [message #9259] Wed, 25 July 2007 07:53 Go to next message
carvalho is currently offline carvalho  Portugal
Messages: 8
Registered: July 2007
Location: PORTUGAL
Member
Many people lost SSH/console access to their VPS after doing a yum update.
I've looked in some forums and this seems to be a recurrent problem when updating CentOS VPS (4.2->4.3 , 4.3->4.4 and so on).
The reason is that inside the openvz VPS you shouldn't upgrade the kernel, udev, headers and some other modules.
I've found an workaround so that yum don't delete the /dev, and also don't mess with another things.

So what I did was after installing 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 Thumbs Up

I hope this helps Wink
Pedro Carvalho

[Updated on: Sun, 12 October 2008 05:59] by Moderator

Report message to a moderator

Re: HOWTO Upgrade a CentOS VPS [message #9271 is a reply to message #9259] Wed, 25 July 2007 09:46 Go to previous messageGo to next message
LxCenter_Danny is currently offline LxCenter_Danny  Netherlands
Messages: 2073
Registered: July 2007
Location: Netherlands
Grandmaster
LxCenter Core Team Member
LxCenter Representative

Is it possible then to create a ostemplate (cache) for it and delete the old one?





LxCenter - System Operations
Re: HOWTO Upgrade a CentOS VPS [message #9310 is a reply to message #9271] Wed, 25 July 2007 14:07 Go to previous messageGo to next message
Lxhelp
Messages: 23691
Registered: July 2006
The Champion
You can convert any vps to an ostemplate. Just go to vps home -> create ostemplate

Thanks.


Re: HOWTO Upgrade a CentOS VPS [message #9318 is a reply to message #9259] Wed, 25 July 2007 14:33 Go to previous messageGo to next message
LxCenter_Danny is currently offline LxCenter_Danny  Netherlands
Messages: 2073
Registered: July 2007
Location: Netherlands
Grandmaster
LxCenter Core Team Member
LxCenter Representative

Ok,

This is what i should do?
* Install new vps with template centos-4-i386-hostinabox23
* Log in to the vps shell
* Add modifications
* Run yum update
* Shutdown vps
* Create OS template from it
* Name it: centos-4-i386-hostinabox23-custom (cant rename whole filename there)

Ok, then i have a centos-4-i386-hostinabox23-custom template.

What happens if a customer is running a Debian VPS and clicks on the Install LxAdmin button?
I know the Debian VPS is destroyed but what template is it using to build the centos+LxAdmin ?






LxCenter - System Operations
Re: HOWTO Upgrade a CentOS VPS [message #9319 is a reply to message #9318] Wed, 25 July 2007 14:35 Go to previous messageGo to next message
Lxhelp
Messages: 23691
Registered: July 2006
The Champion
Quote:


>
> Ok,
>
> This is what i should do?
> * Install new vps with template centos-4-i386-hostinabox23
> * Log in to the vps shell
> * Add modifications
> * Run yum update
> * Shutdown vps
> * Create OS template from it
> * Name it: centos-4-i386-hostinabox23-custom (cant rename whole filename there)



yes. The above steps will suffice. HyperVm will automatically copy the ostemplate from the slave and to the master, and so the new ostemplate will automatically become available to everyone.

Quote:


>
> Ok, then i have a centos-4-i386-hostinabox23-custom template.
>
> What happens if a customer is running a Debian VPS and clicks on the Install LxAdmin button?
> I know the Debian VPS is destroyed but what template is it using to build the centos+LxAdmin ?
>



If you select install-lxadmin option, hyperVM will rebuild the vps with hostinabox23. If you need to use another ostemplate, you have to use the generic rebuild feature.

Thanks.


Re: HOWTO Upgrade a CentOS VPS [message #9320 is a reply to message #9319] Wed, 25 July 2007 14:43 Go to previous messageGo to next message
LxCenter_Danny is currently offline LxCenter_Danny  Netherlands
Messages: 2073
Registered: July 2007
Location: Netherlands
Grandmaster
LxCenter Core Team Member
LxCenter Representative

[quote title=Lxhelp wrote on Wed, 25 July 2007 20:35]
Quote:


If you select install-lxadmin option, hyperVM will rebuild the vps with hostinabox23. If you need to use another ostemplate, you have to use the generic rebuild feature.



Why not let us decide? make it configurable?
OStemplate hostinabox: [....................]
So when install LXAdmin button is used.....

I cant generic rebuild things because yum install vzyum is not working and no answers on the thread.

The best easy fast sollution is to disable the "Show Install LxAdmin button" and if a customer wants LxAdmin then say use the -custom template.




LxCenter - System Operations
Re: HOWTO Upgrade a CentOS VPS [message #9321 is a reply to message #9320] Wed, 25 July 2007 14:48 Go to previous messageGo to next message
Lxhelp
Messages: 23691
Registered: July 2006
The Champion
Quote:


>
>
>
> Why not let us decide? make it configurable?
> OStemplate hostinabox: [....................]
> So when install LXAdmin button is used.....
>
> I cant generic rebuild things because yum install vzyum is not working and no answers on the thread.



Vzyum is a known issue, and we will fix it soon. It happens only on 64 bit, and is happening due to 386/x64 library incompatibility.

You can go to vps home -> rebuild and rebuild with any ostemplate you need.




Quote:


>
> The best easy fast sollution is to disable the "Show Install LxAdmin button" and if a customer wants LxAdmin then say use the -custom template.



I don't understand.


Thanks.


Re: HOWTO Upgrade a CentOS VPS [message #9326 is a reply to message #9259] Wed, 25 July 2007 14:55 Go to previous messageGo to next message
LxCenter_Danny is currently offline LxCenter_Danny  Netherlands
Messages: 2073
Registered: July 2007
Location: Netherlands
Grandmaster
LxCenter Core Team Member
LxCenter Representative

Home > Tab Advanced


Show Install Lxadmin Button [x]


Smile




LxCenter - System Operations
Re: HOWTO Upgrade a CentOS VPS [message #9353 is a reply to message #9326] Wed, 25 July 2007 18:27 Go to previous message
Lxhelp
Messages: 23691
Registered: July 2006
The Champion

So you don't want the 'install lxadmin button' at all, but wants everyone to use the generic rebuild feature? Lxadmin is an integral part of hyperVM, and we cannot really separate them. Especially now many of the Server Management functions are available in hyperVM only if you have lxadmin installed in the vps.

In the future, almost all the server management will be done via lxadmin, and all the buttons will be directly accessible in vps home itself.

Thanks.





Previous Topic:Howto setup your own ssl for hyperVM
Next Topic:CentOS 4.5 ssh/console fails on openvz.
Goto Forum:
  


Current Time: Thu Jun 20 01:37:49 EDT 2013

Total time taken to generate the page: 0.01173 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