OpenVZ Forum


Home » General » Support » *SOLVED* changing ostemplate on the fly
*SOLVED* changing ostemplate on the fly [message #6823] Sun, 24 September 2006 13:09 Go to next message
victorskl is currently offline  victorskl
Messages: 28
Registered: September 2006
Junior Member
Dear all,

can we change ostemplate on the fly?
let's say VPS101 created with centos-minimal, then wanted to change to fedora-core-4, can we just simple do,

#vzctl set 101 --ostemplate fedora-core-4


or any other way??

Thanks,


http://static.openvz.org/userbars/openvz-user.png

[Updated on: Fri, 29 September 2006 07:11] by Moderator

Report message to a moderator

Re: changing ostemplate on the fly [message #6825 is a reply to message #6823] Sun, 24 September 2006 14:28 Go to previous messageGo to next message
HaroldB is currently offline  HaroldB
Messages: 61
Registered: June 2006
Member
Hi, it is not that simple. Think of it this way.... can you easily convert Windows XP service pack 2 to Windows 98SE? Windows 2003 -> Windows ME? Changing any OS to any other OS, even though both may use the linux kernel is not trivial and cannot be accomplished in any single command. There are some distro conversion procedures from Redhat 9 to Fedora, however those procedures are pre-planned and well thought out using RPM depedency chains. In short, there is no way to do what you are asking..

H
Re: changing ostemplate on the fly [message #6870 is a reply to message #6823] Tue, 26 September 2006 09:03 Go to previous message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
What do you expect from such operation?

If you hope that files, services, files layout, tools, etc... in VE will be updated in accordance with new template, then of course it isn't so easy - HaroldB is right.

# vzctl set 101 --ostemplate fedora-core-4 --save

command will only make vzctl to run scripts (/etc/vz/dists/<TEMPL>-add_ip, -del_ip, -set_dns, ...) specific to new template.
Previous Topic: vzyum: _rpmmodule.so: cannot handle TLS data
Next Topic: *SOLVED* How does OpenVZ pick traceroutes?
Goto Forum:
  


Current Time: Wed Oct 16 03:58:50 GMT 2024

Total time taken to generate the page: 0.05079 seconds