OpenVZ Forum


Home » General » Support » Changing the os-template of an existing VE
Changing the os-template of an existing VE [message #37843] Tue, 27 October 2009 17:29 Go to next message
vertigo is currently offline  vertigo
Messages: 1
Registered: October 2009
Junior Member
I have migrated a VE to a new HN, but face the following problem;
On the original HN i used an amd64 template for the VE, on the new i need to use a 32-bit 386 template (debian-5.0)

Is is possible to switch OS template, and thus the binary files of the VE in the new location?

Thanks
Re: Changing the os-template of an existing VE [message #37900 is a reply to message #37843] Fri, 30 October 2009 16:13 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hi,

I'm afraid that I don't know whether the problem has a solution in general situation: if we decide to change each of the packages one by one, we have to keep in mind that the packages may contain different files for different architectures, there may be different settings/scripts for different architectures, some binaries may not belong to any package etc.
Of course, you may try to create a VE based on the proper template and then just sync somehow two VEs but I'm not sure that everything will work.
Re: Changing the os-template of an existing VE [message #37923 is a reply to message #37900] Mon, 02 November 2009 18:04 Go to previous message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

Hi,

a solution can be:

setup your ctid with the new arch from a precreated os template, and store your current packages selection of your old ct and move this selection list to your new ct.

for Debian
# dpkg --get-selections > installed-debpkg.list

transfer it to the new ct, import the selections
# dpkg --set-selections < installed-debpkg.list

test to install all "same applications"
# apt-get -s dselect-upgrade

doit
# apt-get -u dselect-upgrade

and install/configure your system, e.g. copy config files

Hope this helps.

Bye,
Thorsten
Previous Topic: My posts to the forum going to /dev/null
Next Topic: [3662]ERR: 24
Goto Forum:
  


Current Time: Sun Jul 27 22:59:00 GMT 2025

Total time taken to generate the page: 0.47950 seconds