Home > Openvz and Virtuozzo > Renaming Virtuozzo Container CTID

Renaming Virtuozzo Container CTID

 

 

SITUATION: I wan’t to rename a virtuozzo container CTID from CTID 14383000 to 14383.

 

SOLUTION: Use the ‘vzmlocal‘ command to rename the container’s CTID.

 

Eg:

 

[root@node ~]# /usr/sbin/vzlist -a |grep 192.168.17.62
14383000 68 running 192.168.17.62 testvps.com
[root@node ~]# 
[root@node ~]# /usr/sbin/vzmlocal 14383000:14383
vzctl_conf_get_param(VZ_TOOLS_BCID) return 5
vzctl_conf_get_param(VZ_TOOLS_IOLIMIT) return 1048576
Moving/copying CT#14383000 -> CT#14383, [], [] ...
Moving private area '/vz/private/14383000'->'/vz/private/14383'
done
Copying/modifying config scripts of CT#14383000 ...
OfflineManagement CT#14383000 ...
done
OfflineManagement CT#14383 ...
done
Successfully completed
[root@node ~]# /usr/sbin/vzctl start 14383
[root@node ~]# /usr/sbin/vzlist -a |grep 192.168.17.62
14383 68 running 192.168.17.62 testvps.com
[root@node ~]# 

 

 

Advertisements
Categories: Openvz and Virtuozzo
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: