Article ID: 8108, created on Feb 23, 2010, last review on May 8, 2014

  • Applies to:
  • Virtuozzo containers for Windows 4.5
  • Virtuozzo containers for Windows 4.0


1. Create a sample container or use an existing one to get the "conf" file.

2. Copy the "conf" file and rename it to the ID of the restoring container.

3. Update the container disk GUID information as shown below:
vzdskctl mount_shared D:\vz\private\CTID\root.efd

   You will be returned a new GUID. Paste it to CTID.conf as a new GUID value -- simply replace it with the current one.

4. Set a new container diskspace. It is necessary to avoid disk resizing, so use a value higher than the current root.efd file size:
vzctl set CTID --diskspace size_in_kb

5. Mount the container using the vzctl mount CT_ID command and navigate to HKEY_LOCAL_MACHINE\vzCTID\MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName; obtain the computer hostname from this registry hive.

6. Update the container hostname using CLI:
vzctl set CTID --hostname HOSTNAME

7. While the container is mounted, also retrieve its network parameters:
    - Key HKEY_LOCAL_MACHINE\vzCTID\MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\NETWORK_GUID
    - IPAddress and NameServer under key HKEY_LOCAL_MACHINE\vzCTID\MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\NETWORK_GUID

8. Unmount the container.

9. Open CTID.conf in Notepad and update the following values obtained in step 7:
   - NetIf0.AdapterGuid="NETWORK_GUID"
   - NetIf0.DNSservers="NAME_SERVERS"
   - NetIf0.IP="IP_ADDRESS"

10. Start the container.

28d0f7cc091e3b9304fa556c03f9a940 d02f9caf3e11b191a38179103495106f 965b49118115a610e93635d21c5694a8 d09cb2230ee0cfa720ed0f2a3cc39452 2897d76d56d2010f4e3a28f864d69223

Email subscription for changes to this article
Save as PDF