OpenVZ Forum


Home » Mailing lists » Users » Reapplying an OS template
Reapplying an OS template [message #23566] Tue, 20 November 2007 12:22 Go to next message
shuveb is currently offline  shuveb
Messages: 5
Registered: February 2007
Junior Member
From: openvz.org
Hi,

I already have a VE with let us say a Debian template. I have applied
various settings to it. Now suppose I want to change the OS template
alone to Gentoo or to something else without losing my other settings?
Can this be done?

TIA,
-- 
Shuveb Hussain
Re: Reapplying an OS template [message #23568 is a reply to message #23566] Tue, 20 November 2007 12:48 Go to previous messageGo to next message
Dariush Pietrzak is currently offline  Dariush Pietrzak
Messages: 40
Registered: November 2007
Member
From: openvz.org
> I already have a VE with let us say a Debian template. I have applied
> various settings to it. Now suppose I want to change the OS template
> alone to Gentoo or to something else without losing my other settings?
> Can this be done?
 That would be a fairly deep magic if it would be possible,

technically you can do it this way: 
 unpack a template, then run

 diff -ruN /var/lib/vz/template/cache/unpacked-template
 /var/lib/vz/private/ve-with-your-changes > my-changes.diff

and then apply the diff to your re-created template, but this would only
work for very simple things, and things that are compatible between
different templates ( for examples, say you created /root/Dear.Diary, and
logged some personal notes there, then this 'change' would still apply to
your new system, but then, let's say you installed some binary apps, then
the diff prepared this way, wouldn't work that well anymore )

-- 
Key fingerprint = 40D0 9FFB 9939 7320 8294  05E0 BCC7 02C4 75CC 50D9
 Total Existance Failure
Re: Reapplying an OS template [message #23571 is a reply to message #23568] Tue, 20 November 2007 13:06 Go to previous message
shuveb is currently offline  shuveb
Messages: 5
Registered: February 2007
Junior Member
From: openvz.org
Hi,

On Nov 20, 2007 6:18 PM, Dariush Pietrzak <ml-openvz-eyck@ddiary.eu> wrote:
> > I already have a VE with let us say a Debian template. I have applied
> > various settings to it. Now suppose I want to change the OS template
> > alone to Gentoo or to something else without losing my other settings?
> > Can this be done?
>  That would be a fairly deep magic if it would be possible,

I think my explanation wasn't good enough. The changes I meant were
things like quota, cpulimit, cpuunits, etc all pertaining to OpenVZ. I
don't mind losing changes in the private area. I guess all those
changes I make will be safe in the OpenVZ private config file.

-- 
Shuveb Hussain.
Previous Topic: PATCH for small cron prob. in /etc/init.d/vz
Next Topic: Memory Error in VE starting TurboGears Project
Goto Forum:
  


Current Time: Sat Dec 15 01:51:54 GMT 2018