OpenVZ Forum


Home » Mailing lists » Users » Migration error: VPS config file does not exist
Migration error: VPS config file does not exist [message #22512] Tue, 30 October 2007 06:02 Go to next message
Ian jonhson is currently offline  Ian jonhson
Messages: 11
Registered: October 2007
Junior Member
Hi,

I met a problem when I migrated a VE client from one host to another.
The two hosts are installed Debian 4 and OpenVZ. In one of the host, I
have installed successfully the VE client.
Then, I copied the directories and files in /vz/private/ to another
host. For example, I tared all
the file in /vz/private/101/ of host 1.

# tar cf 101.tgz  101
# ls 101.tgz
101.tgz

Copy the tgz file to another host,

# cd /vz/private/
# tar xzvf 101.tgz

Then I created a directory with the same name in /vz/root/

# cd /vz/root/
# mkdir 101

Ok, all are ready and I started the VE with the id, 101:

# vzctl start 101
VPS config file does not exist

I don't what is wrong with it. Maybe some configuration files are not
ready for this migration.
Could anybody give me some advices?

Thanks in advance.

Ian
AW: Migration error: VPS config file does not exist [message #22514 is a reply to message #22512] Tue, 30 October 2007 06:30 Go to previous messageGo to next message
Dietmar Maurer is currently offline  Dietmar Maurer
Messages: 52
Registered: March 2007
Member
You also need to copy the config file: /etc/vz/conf/110.conf

(You can also use vzmigrate script to copy a vps)

- Dietmar

> -----Ursprüngliche Nachricht-----
> Von: users-bounces@openvz.org 
> [mailto:users-bounces@openvz.org] Im Auftrag von Ian jonhson
> Gesendet: Dienstag, 30. Oktober 2007 07:03
> An: users@openvz.org
> Betreff: [Users] Migration error: VPS config file does not exist
> 
> Hi,
> 
> I met a problem when I migrated a VE client from one host to another.
> The two hosts are installed Debian 4 and OpenVZ. In one of 
> the host, I have installed successfully the VE client.
> Then, I copied the directories and files in /vz/private/ to 
> another host. For example, I tared all the file in 
> /vz/private/101/ of host 1.
> 
> # tar cf 101.tgz  101
> # ls 101.tgz
> 101.tgz
> 
> Copy the tgz file to another host,
> 
> # cd /vz/private/
> # tar xzvf 101.tgz
> 
> Then I created a directory with the same name in /vz/root/
> 
> # cd /vz/root/
> # mkdir 101
> 
> Ok, all are ready and I started the VE with the id, 101:
> 
> # vzctl start 101
> VPS config file does not exist
> 
> I don't what is wrong with it. Maybe some configuration files 
> are not ready for this migration.
> Could anybody give me some advices?
> 
> Thanks in advance.
> 
> Ian
Re: Migration error: VPS config file does not exist [message #22515 is a reply to message #22512] Tue, 30 October 2007 08:55 Go to previous messageGo to next message
gblond is currently offline  gblond
Messages: 64
Registered: May 2007
Member
On 30 October 2007 09:02:31 Ian jonhson wrote:
> Hi,
>
> I met a problem when I migrated a VE client from one host to another.

I have to use vzmigrate utility.

> The two hosts are installed Debian 4 and OpenVZ. In one of the host, I
> have installed successfully the VE client.
> Then, I copied the directories and files in /vz/private/ to another
> host. For example, I tared all
> the file in /vz/private/101/ of host 1.
>
> # tar cf 101.tgz  101
> # ls 101.tgz
> 101.tgz
>
> Copy the tgz file to another host,
>
> # cd /vz/private/
> # tar xzvf 101.tgz
>
> Then I created a directory with the same name in /vz/root/
>
> # cd /vz/root/
> # mkdir 101
>
> Ok, all are ready and I started the VE with the id, 101:
>
> # vzctl start 101
> VPS config file does not exist
If you implement migration by hands you must also copy VE conf file 
(/etc/vz/conf/veid.conf, where veid is ID of VE).

>
> I don't what is wrong with it. Maybe some configuration files are not
> ready for this migration.
> Could anybody give me some advices?
>
> Thanks in advance.
>
> Ian
-- 
Thank,
Vitaliy Gusev
Re: Migration error: VPS config file does not exist [message #22597 is a reply to message #22515] Wed, 31 October 2007 11:19 Go to previous message
Ian jonhson is currently offline  Ian jonhson
Messages: 11
Registered: October 2007
Junior Member
Thank you very much

I have migrated successfully the VE.

On 10/30/07, Vitaliy Gusev <vgusev@openvz.org> wrote:
> On 30 October 2007 09:02:31 Ian jonhson wrote:
> > Hi,
> >
> > I met a problem when I migrated a VE client from one host to another.
>
> I have to use vzmigrate utility.
>
> > The two hosts are installed Debian 4 and OpenVZ. In one of the host, I
> > have installed successfully the VE client.
> > Then, I copied the directories and files in /vz/private/ to another
> > host. For example, I tared all
> > the file in /vz/private/101/ of host 1.
> >
> > # tar cf 101.tgz  101
> > # ls 101.tgz
> > 101.tgz
> >
> > Copy the tgz file to another host,
> >
> > # cd /vz/private/
> > # tar xzvf 101.tgz
> >
> > Then I created a directory with the same name in /vz/root/
> >
> > # cd /vz/root/
> > # mkdir 101
> >
> > Ok, all are ready and I started the VE with the id, 101:
> >
> > # vzctl start 101
> > VPS config file does not exist
> If you implement migration by hands you must also copy VE conf file
> (/etc/vz/conf/veid.conf, where veid is ID of VE).
>
> >
> > I don't what is wrong with it. Maybe some configuration files are not
> > ready for this migration.
> > Could anybody give me some advices?
> >
> > Thanks in advance.
> >
> > Ian
> --
> Thank,
> Vitaliy Gusev
>
Previous Topic: Trying to compile ovz028stab0.45 (non-RedHat)
Next Topic: problem run shell script by vzctl exec
Goto Forum:
  


Current Time: Thu May 02 12:27:44 GMT 2024

Total time taken to generate the page: 0.02111 seconds