Upgrade On Windows

This guide will explain how to upgrade to CloneDeploy 1.3.0 on Windows installations.

I. Upgrade Path

CloneDeploy upgrades are incremental. Only 1.2.x can be directly upgraded to CloneDeploy 1.3.0.

II. Notices

  • The Linux Imaging Environment has changed. If you are using the client iso / usb, you must generate a new one after the upgrade.
  • The WinPE Imaging Environment has changed.  If using WinPE you must create a new boot image using CloneDeployPE Builder 1.2.0
  • The macOS Imaging Environment has changed.  If using that environment you must generate a new NBI using AutoCloneDeployNBI-1.3.3.3

III. Upgrade

This guide assumes a 64-bit version of Windows, if you are using 32-bit, update all occurrences of program files(x86) to program files

    1. Download the CloneDeploy-1.3.0-upgrade.zip
    2. Extract it to your desktop
    3. Stop the IIS Web Service
    4. Open File Explorer and navigate to C:\Program Files (x86)\clonedeploy\web
    5. Rename the C:\Program Files (x86)\clonedeploy\web folder to web.bak
    6. Copy the application, frontend and tftpboot folders from clonedeploy-1.3.0-upgrade to C:\Program Files (x86)\clonedeploy (the tftpboot folder will be merged with the existing, and the other folders will be new)
    7. Open web.bak\web.config with a good text editor
    8. On or around line 8 find the database connection string and write down the password
      On or around line 40 copy the dbencryption key value
    9. Open C:\Program Files (x86)\clonedeploy\application\web.config with a good text editor
    10. On line 37 change xx_marker1_xx to your database password from step 8
      On line 122 change xx_marker2_xx to your encryption key from step 8
    11. Open a cmd prompt as administrator
    12. cd "c:\Program Files (x86)\MariaDB 10.1\bin"
    13. mysqldump.exe clonedeploy -u root -p  > %userprofile%\Desktop\cdbackup.sql -v
    14. Enter your database password when prompted
    15. mysql.exe clonedeploy -u root -p < %userprofile%\Desktop\clonedeploy-1.3.0-upgrade\1.3.0-update.sql -v
    16. Enter your database password when prompted
    17. mysql.exe --user=root --password clonedeploy --execute="update images set image_environment = 'linux' where image_environment='';update images set image_environment = 'linux' where image_environment is null;"
    18. Enter your database password when prompted
    19. icacls "C:\Program Files (x86)\clonedeploy\application" /T /C /grant IIS_IUSRS:(OI)(CI)M
    20. icacls "C:\Program Files (x86)\clonedeploy\frontend" /T /C /grant IIS_IUSRS:(OI)(CI)M
    21. Open IIS Manager
    22. Expand all dropdowns until you see clonedeploy

1-3-up-1

    1. Right click clonedeploy and select manage application then advanced settings

1-3-up-2

    1. Change physical path to C:\Program Files (x86)\clonedeploy\frontend and select ok

1-3-up-3

    1. Right click clonedeploy again.  Select add application

1-3-up-4

    1. Type api for alias and  C:\Program Files (x86)\clonedeploy\application for Physical path

1-3-up-5

    1. Select Ok, Folder structure should now look like this

1-3-up-6

  1. Restart the IIS Service
  2. You may need to clear your browser’s cache to reflect the new web design
  3. Open the WebUI
  4. Select Admin
  5. Find the BaseURL and remove the service/client.asmx piece
  6. Change the Tftp Server Ip to your server ip address
  7. Save the settings
  8. Click Yes to create a new boot menu when prompted
  9. Click Create Boot Files
  10. Done
in Upgrade To 1.3.0
Comments are closed.