Skip to content

Instantly share code, notes, and snippets.

View cofob's full-sized avatar
🏳️‍🌈

Egor Ternovoi cofob

🏳️‍🌈
View GitHub Profile
@cofob
cofob / migrate.py
Last active March 29, 2024 15:54 — forked from chirauki/migrate.py
KVM migration script
#! /usr/bin/env nix-shell
#! nix-shell -i python3 -p python3Packages.libvirt python3Packages.paramiko python3Packages.urllib3
import logging
import argparse
import libvirt
import sys
import os
import subprocess
import paramiko
import xml.etree.ElementTree as ET