# qcow2_snapshot_create

Create a snapshot of a qcow2 disk image.

```rhai
qcow2_snapshot_create(path, name) -> ()
```

## Parameters

- `path` (string): Path to the qcow2 image
- `name` (string): Name for the snapshot

## Returns

Returns nothing on success, throws error on failure.

## Examples

```rhai
// Create a snapshot before making changes
qcow2_snapshot_create("/vms/disk1.qcow2", "before-update");

// Create timestamped snapshots
qcow2_snapshot_create("/vms/disk1.qcow2", "backup-20240101");
```

## Notes

- Internal snapshot stored within the qcow2 file
- Snapshot names must be unique within the image
- Use `qcow2_snapshot_list()` to view snapshots
- Snapshots preserve the entire disk state at creation time
