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,
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
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.