Skip to content

mrc-ide/packit-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Migration steps

  1. Visit https://packit-dev.dide.ic.ac.uk/ and take not of all the instances you want to migrate.

  2. Check the group and permission structure of each instance. We don't migrate those so they will need to be recreated.

  3. Export all the instances into separate tarballs using the following command (once per instance):

    ssh root@packit-dev.dide.ic.ac.uk tar -C /var/lib/outpack/reside-dev -Jc .outpack > reside-dev.tar.xz
    
  4. Destroy and re-create the VM

    1. Remote desktop onto the host machine (wpia-reside1)
    2. Open command prompt
    3. Change directory to D:\reside-hyperv-scripts\packit-dev
    4. Run vagrant destroy
    5. Run vagrant up
    6. Leave the Windows host
  5. Upgrade Ubuntu from 22.04 to 24.04

    1. SSH into the new VM ssh vagrant@wpia-packit-dev.dide.ic.ac.uk
    2. Run sudo apt-get dist-upgrade
    3. Reboot the VM
    4. Edit /etc/update-manager/release-upgrades and set Prompt=lts
    5. Run sudo do-release-upgrade, say yes to everything except about overwriting the sudoers file
    6. Let the upgrader restart when it is done
  6. Run the initial provisioning on the machine

    uv run pyinfra src/infra/inventory.py infra.run --limit wpia-packit-dev.dide.ic.ac.uk
    
  7. Restore your instance data:

    cat reside-dev.tar.xz | ssh vagrant@packit-dev.dide.ic.ac.uk docker run --rm -i -v packit-outpack-reside-dev:/outpack alpine tar -C /outpack -Jx
    
  8. Configure and start packit

    ssh vagrant@wpia-packit-dev.dide.ic.ac.uk
    cd packit-config
    packit configure packit-dev
    packit start
    

    First deployement may take a while to get certificates from Let's Encrypt. You can monitor progress with docker logs -f packit-acme-buddy.

  9. Resync packets using the Packit admin UI

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •