Debian - Openvz is not reading from /vz partition [message #51940] |
Wed, 25 March 2015 04:25 ![Go to next message Go to next message](/theme/ovz3/images/down.png) |
darkestred
Messages: 3 Registered: March 2015
|
Junior Member |
|
|
Hello. I have openvz running on Debian. I believe i followed all the steps, minus creating a /vz partition right off the bat. I did add this after i installed the modified vz kernel.
My issue is when i go to vzctl create ctid --ostemplate --osname (of course im filling those in). I get an error saying:
Cached OS template /var/lib/vz/template/cache/debian7.tar[.gz|.bz2|.xz] not found
I tried linking this to my /vz directory but did not work. I have:
root@Debian:~# ls /vz/template/cache
debian-7.0-x86_64.tar.gz vz
I am a bit clueless.
I also find myself having to add directories to my /vz partition. I don't think this is how its intended to be but again i apologize for being new.
|
|
|
|
|
|
Re: Debian - Openvz is not reading from /vz partition [message #51944 is a reply to message #51941] |
Wed, 25 March 2015 20:45 ![Go to previous message Go to previous message](/theme/ovz3/images/up.png) |
darkestred
Messages: 3 Registered: March 2015
|
Junior Member |
|
|
curx wrote on Wed, 25 March 2015 04:43Hi,
for Debian based distro the vz directory is located at /var/lib/vz - for compability to (CentOS) OpenVZ use a symbolic link, like:
% ln -s /var/lib/vz /vz
alternative: (if setup a big /vz partition)
copy/move dirs/files from /var/lib/vz to your /vz partion, cleanup /var/lib/vz and mount your partion to /var/lib/vz
Bye,
Thorsten
@Ales thank you. I didn't even think about that since linux is looking in my /var file and i'm trying to follow the guide (which is grey area) to have openvz read from /vz. Is linking the only way to get this to work or was this line perhaps cut and pasted from another distro? or do i have to do what curx suggested?
[Updated on: Thu, 26 March 2015 02:00] Report message to a moderator
|
|
|