OpenVZ Forum - RDF feed
type: channel
items: Debian - Openvz is not reading from /vz partition
items: Re: Debian - Openvz is not reading from /vz partition

Debian - Openvz is not reading from /vz partition
type: item
description: 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.
creator: darkestred
date: 2015-03-25T04:25:51-00:00

Re: Debian - Openvz is not reading from /vz partition
type: item
description: Hi, 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
creator: curx
date: 2015-03-25T04:43:06-00:00

Re: Debian - Openvz is not reading from /vz partition
type: item
description: Looking at: Cached OS template /var/lib/vz/template/cache/debian7.tar[.gz|.bz2|.xz] not found and the template name you have: debian-7.0-x86_64.tar.gz tells me that you're using wrong command switches. In other words, you've made a typo when specifying what template to use, note the difference in names. Also: root@Debian:~# ls /vz/template/cache debian-7.0-x86_64.tar.gz vz the 'vz' part at the end tells me that you've probably once made some error when linking the directories, but that's probably not affecting anything. Your vztl is looking for templates in /var/lib/vz/template/cache anyway.
creator: Ales
date: 2015-03-25T14:55:11-00:00

Re: Debian - Openvz is not reading from /vz partition
type: item
description: I cannot recall but i might have made a vz directory by mistake in the /cache folder. I will mess around with this when i get home. Thank you for the replies and help.
creator: darkestred
date: 2015-03-25T18:16:58-00:00

Re: Debian - Openvz is not reading from /vz partition
type: item
description: curx wrote on Wed, 25 March 2015 04:43 Hi, 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?
creator: darkestred
date: 2015-03-25T20:45:57-00:00