tart run fedora-vm1 &
tart run fedora-vm2 &For each VM:
- Complete the initial setup (create user account)
- Enable SSH access
- Note the username you created (default is usually 'admin' or 'fedora')
Edit both setup_vms_for_test.sh and run_sync_test.sh:
- Change
VM_USER="admin"to match your actual username
./setup_vms_for_test.shThis will:
- Install unison and required packages
- Copy RPM_sync.py to both VMs
- Verify system type (dnf vs rpm-ostree)
./run_sync_test.shThis will:
- Install different packages on each VM (git on VM1, wget/curl on VM2)
- Test syncing from VM1 to VM2
- Test syncing from VM2 to VM1
- Show package status before/after each sync
- Both VMs should end up with the same set of packages
- The sync should work bidirectionally
- You should see Unison synchronizing the package lists
You can also test manually by SSH'ing into the VMs:
# SSH into VM1 (replace with your actual VM IP and username)
ssh [VM_USER]@[VM1_IP]
# Run the sync script (replace with your VM2 IP)
python3 RPM_sync.py -r [VM2_IP]- If SSH doesn't work, ensure you've enabled SSH in the VM's GUI
- If Unison fails, check that both VMs have unison installed
- If package installation fails, check sudo permissions
- VM IPs might be different - check with
tart ip fedora-vm1