OpenVZ Forum


Home » General » Support » install into existing directory?
Re: create ct on top of local lvm lv [message #43342 is a reply to message #43339] Fri, 26 August 2011 16:04 Go to previous messageGo to previous message
williamt is currently offline  williamt
Messages: 5
Registered: April 2011
Junior Member
TheStig wrote on Fri, 26 August 2011 05:28
actually that works without any problems here (using debian5 with 2.6.26-2-openvz-amd64 kernel). just recently moved an old server to an openvz-container for which i mounted a newly created lvm to /vz/private/#ID ...


Your saying if you create and mount your new lvm partition under say /vz/private/10
You can then do a vzctl create 10 --ostemplate yourtemplate
and it works fine??

This is what I get:
# lvcreate -L8G -n 6 rootvg
# mkfs.ext4 /dev/rootvg/6
# mkdir /vz/private/6
# mount /dev/rootvg/6 /vz/private/6
# vzctl create 6 --ostemplate scientific-6-x86_64
Private area already exists in /vz/private/6
Creation of container private area failed

OR

# vzctl create 6 --ostemplate scientific-6-x86_64 --private /vz/private/6 --root /vz/private/6
Private area already exists in /vz/private/6
Creation of container private area failed



Using:
# uname -a
Linux custvm0.sonic.net 2.6.32-042stab029.1 #1 SMP Sun Aug 7 19:35:21 MSD 2011 x86_64 x86_64 x86_64 GNU/Linux
# cat /etc/redhat-release
Scientific Linux release 6.0 (Carbon)
# rpm -qa |grep vzctl
vzctl-lib-3.0.28.3-1.x86_64
vzctl-3.0.28.3-1.x86_64
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: RHEL6-Kernel for Ubuntu
Next Topic: can not create VEs
Goto Forum:
  


Current Time: Sun Aug 03 04:11:10 GMT 2025

Total time taken to generate the page: 1.02376 seconds