Skip to main content

Makes VSS snapshot disks bootable in Google Cloud

Project description

SnapManager

A tool for managing VSS-enabled snapshots in Google Cloud Platform. Currently supports restoring VSS snapshots and creating bootable VM instances from them.

Features

  • Restore VSS-enabled snapshots to bootable VM instances
  • Handles all the complexity of making Windows disks bootable
  • Clean and user-friendly command-line interface
  • Detailed progress tracking and error reporting

Prerequisites

  • Python 3.8 or higher
  • Google Cloud SDK
  • Google Cloud Service Account with the following permissions:
    • compute.disks.*
    • compute.instances.*
    • compute.snapshots.*
    • compute.networks.use
    • compute.subnetworks.use

Authentication

SnapManager uses Google Cloud Application Default Credentials for authentication. You can set this up in one of two ways:

  1. Service Account Key File (Recommended for production):

    export GOOGLE_APPLICATION_CREDENTIALS="/path/to/service-account-key.json"
    
  2. User Credentials (Good for development):

    gcloud auth application-default login
    

Installation

pip install snapmanager

Usage

# Show help
snapmanager restore --help

# Restore a VSS snapshot
snapmanager restore \
  --project YOUR_PROJECT_ID \
  --zone ZONE \
  --vpc-network NETWORK_NAME \
  --subnet SUBNET_NAME \
  --snapshot SNAPSHOT_NAME

Command Arguments

  • --project: Google Cloud project ID where the snapshot and new VM will be created
  • --zone: Google Cloud zone where the new VM will be created
  • --vpc-network: VPC network to attach the new VM to
  • --subnet: Subnet within the VPC network for the new VM
  • --snapshot: Name of the VSS-enabled snapshot to restore from

Example

snapmanager restore \
  --project my-project \
  --zone europe-west1-b \
  --vpc-network default \
  --subnet default \
  --snapshot my-windows-vss-snapshot

This will:

  1. Create a new disk from the VSS snapshot
  2. Create a temporary VM to make the disk bootable
  3. Run necessary Windows boot configuration commands
  4. Create a final VM with the bootable disk
  5. Clean up temporary resources

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

snapmanager-0.2.8.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

snapmanager-0.2.8-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

File details

Details for the file snapmanager-0.2.8.tar.gz.

File metadata

  • Download URL: snapmanager-0.2.8.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.0

File hashes

Hashes for snapmanager-0.2.8.tar.gz
Algorithm Hash digest
SHA256 5a13f5822ee0a169a67803e9f9a806d933d610fb80f99cf3744d9284bbe4e9b5
MD5 9366b4489f74ea4b96aa9218d84ef5ab
BLAKE2b-256 38dc27e52d8b57328a5650e28cfb899d31622881e93d9d17ef24a25b3a81c974

See more details on using hashes here.

File details

Details for the file snapmanager-0.2.8-py3-none-any.whl.

File metadata

  • Download URL: snapmanager-0.2.8-py3-none-any.whl
  • Upload date:
  • Size: 18.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.0

File hashes

Hashes for snapmanager-0.2.8-py3-none-any.whl
Algorithm Hash digest
SHA256 e42e71aca33fdc8cb7d16a8ada1211c63bab517ceca2248441ed654c244ed1e6
MD5 e3f813d5751009d99431bb83f8989d27
BLAKE2b-256 d07f4d4061dc9b00cd06ce043fd2172efcf22c64f632a5a730490e975f45d554

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page