# cloudhv_vm_info

Get detailed information about a specific Cloud Hypervisor virtual machine.

```rhai
cloudhv_vm_info(id) -> Map
```

## Parameters

- `id` (string): VM identifier

## Returns

Returns a map containing `spec` and `runtime` information.

## Examples

```rhai
let info = cloudhv_vm_info("myvm");

print("VM: " + info.spec.id);
print("Status: " + info.runtime.status);
print("vCPUs: " + info.spec.vcpus);
print("Memory: " + info.spec.memory_mb + "MB");
print("Disk: " + info.spec.disk_path);

if info.runtime.pid != () {
    print("Running with PID: " + info.runtime.pid);
}

print("Logs: " + info.runtime.log_file);
```

## Info Structure

The returned map contains:
- `spec`: VM specification (see `cloudhv_vm_create` for details)
- `runtime`: VM runtime state
  - `pid`: Process ID if running, or unit if stopped
  - `status`: Current status
  - `log_file`: Path to VM logs

## Notes

- Throws error if VM does not exist
- Use to check VM state before starting/stopping
- Log file path is useful for debugging
