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
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!