Article ID: 115553, created on Feb 15, 2013, last review on May 6, 2014

  • Applies to:
  • Virtuozzo containers for Linux 4.7
  • Virtuozzo containers for Linux 4.6
  • Virtuozzo containers for Linux 4.0

Information

Most containers left on the host node after upgrading from Parallels Virtuozzo Containers for Linux 3.0 are left in VZFS3 format:
[root@mypvcserver ~]# ls -al /vz/private/103 
total 28 
drwxr-xr-x 7  root root 4096 Feb 20 2011 . 
drwxr-xr-x 55 root root 4096 Apr 23 11:36 .. 
drwxrwxrwx 2  root root 4096 Aug 31 2007 cow 
drwxr-xr-x 22 root root 4096 Apr 2  20:39 root 
drwxr-xr-x 6  root root 4096 Aug 31 2007 templates 
lrwxrwxrwx 1  root root 7    Jul 13 2007 VERSION -> 005.003 
drwxr-xr-x 2  root root 4096 Feb 7  2011 .vza 
drwxr-xr-x 2  root root 4096 Feb 20 2011 vzagent 

This article explains how to find all containers in VZFS3 format and convert them to VZFS4.

Resolution

  1. Stop the container:
    vzctl stop CTID
  2. Convert the container layout to the newer version:
    vzctl convert CTID
  3. Start the container:
    vzctl start CTID


NOTE: It is possible to perform this action for all old-fashioned containers in a batch:
find /vz/private/ -name VERSION -maxdepth 2 | awk -F'/' '{print $4}' | while read CTID; do vzctl stop $CTID && vzctl convert $CTID && vzctl start $CTID ;done

ATTENTION: The above command will restart all old-fashioned containers without prompting!

36627b12981f68a16405a79233409a5e 2897d76d56d2010f4e3a28f864d69223 d02f9caf3e11b191a38179103495106f e8e50b42231236b82df27684e7ec0beb 35c16f1fded8e42577cb3df16429c57a 0c05f0c76fec3dd785e9feafce1099a9

Email subscription for changes to this article
Save as PDF