OpenVZ/Virtuozzo - SOLVED [message #33528] |
Mon, 20 October 2008 09:34 |
|
wilf
Messages: 30 Registered: January 2007 Location: UK
|
Member |
|
|
As luck would have it, I have a prospective customer who is already running virtuozzo. I use OpenVZ and I'd like to ship up an OpenVZ instance to my customer to be run under Virtuozzo.
I know how I'd do it with OpenVZ, but haven't a clue with Virtuozzo.
My base instance is Gentoo, as are my ve's. I recognise I'll have to ship my portage tree aswell, but my questions are:-
Will Virtuozzo be happy with an OpenVz image I have bz2 tarred up and scp'ed over, once un-archived .
Is there anything special I/the customer will have to do to get up and running?
I have had a quick shufti to see if this question has already been asked, if it has then please point me at the thread.
Best regards, Paul.
[Updated on: Fri, 24 October 2008 11:48] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
Re: OpnenVZ/Virtuozzo [message #33599 is a reply to message #33590] |
Fri, 24 October 2008 11:27 |
khorenko
Messages: 533 Registered: January 2006 Location: Moscow, Russia
|
Senior Member |
|
|
Well, Paul, locutius,
i'll try to answer to this topic.
First of all, locutius, you are not completely right (although almost right).
http://wiki.openvz.org/Virtuozzo
Apart from the control panels VZ also contains VZFS and SLM, which seems to me to be important enough to be mentioned.
And mostly because different filesystems in VZ and OVZ it's not enough just tar /vz/private/CTID on OVZ node and untar it on VZ node. This won't work.
At the same time directory structures are rather simple in both VZ and OVZ so admin can easily understand where to put data tar-red on OVZ node.
How to create an OVZ Container to VZ Container in a most simple way (from my point of view):
1) stop OVZ CT and tar /vz/private/CTID directory
(please, also give him CTID.conf - this might be important, for example you could customize there something like IPTABLES)
2) create a VZ Container with required resources (on a VZ node). Template name/version does not matter.
3) on a VZ node go to /vz/private/CTID and remove all data from /vz/private/CTID/root/ for vz3 or /vz/private/CTID/fs/root/ for vz4 directories and put there untar-red data from OVZ node.
Something like this.
Quote: | Does Virtuozzo also have a /etc/vz with a conf dir containing the conf files?
|
vz3 - yes
vz4 - that dir contains links to CTs config files located in /vz/private/CTID/...
Hope this helps!
--
Konstantin
If your problem is solved - please, report it!
It's even more important than reporting the problem itself...
|
|
|
|
|