VM boot VZ open in another folder.

reloaded

Member
Aug 25, 2009
69
0
6
Good morning everyone.

I have a great need that I hope someone help me know.

I have all my VPS in / var / lib / vz / private (are containers VZ)

But necessary causes, I need a container VMID 116, is in another separate directory other than / var / lib / vz / private, such as / backup

I have already mounted disks and any preparation, I've tried but I was unable, I edited the 116.conf changing the boot path, and then reset VZ / etc / init.d / vz restart but I did not start in VPS the specified directory.

For reasons beyond the VPS I can not put in the same directory as the rest.

As I can do this? It is very important to me.

Thank you very much,
 
I haven't tested this but shouldn't you be able to change 116.conf and edit both these lines:

VE_ROOT="/var/lib/vz/root/$VEID"
VE_PRIVATE="/var/lib/vz/private/$VEID"

to

VE_ROOT="/backup/root/$VEID"
VE_PRIVATE="/backup/private/$VEID"

and make sure you create the two folders

/backup/root
/backup/private

Then you will need to copy the /var/lib/vz/private/116 vps into /backup/private/116

That should work yeah?
 
That's what I was doing, but without / / private or / / root

Now everything works fine, thank you very much