OpenVZ Forum


Home » General » Support » Cannot start a VM when created by custom template (Need HELP to set a up a custom template)
Re: Cannot start a VM when created by custom template [message #52026 is a reply to message #52025] Tue, 28 April 2015 19:29 Go to previous messageGo to previous message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

Hi,

you've tar the ploop disk directory structure not a filesystem, you must mount the ploop to root/dir, tar it=build template.

# mount the root/ploop
vzctl mount 101

# change to ct root
cd /vz/root/101

# build template from filesystem
tar --numeric-owner -czf /vz/template/cache/ubuntu-14.04-x86_64-kurento.tar.gz .

# umount ploop
vzctl umount 101

# create new ct from build template
vzctl create ... --ostemplate ubuntu-14.04-x86_64-kurento ...

Bye,
Thorsten
 
Read Message
Read Message
Read Message
Previous Topic: Rate Limiting 2 Containers
Next Topic: Android-4.0-r1 livecd with openvz kernel
Goto Forum:
  


Current Time: Fri Aug 01 07:17:03 GMT 2025

Total time taken to generate the page: 0.34751 seconds