---
name: "cdist-type__qemu_img"
section: "7"
platform: "linux"
package: "cdist"
version: "7.0.0-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/cdist-type__qemu_img"
---

# cdist-type\_\_qemu\_img(7)

Manage VM disk images

## NAME

cdist-type\_\_qemu\_img - Manage VM disk images

## DESCRIPTION

The qemu-img program is used to create qemu images for qemu and (qemu-)kvm.

## OPTIONAL PARAMETERS

- **state**

  Either "present" or "absent", defaults to "present"

- **size**

  Size of the image in qemu-img compatible units.

  Required if state is "present".

## EXAMPLES

```
# Create a 50G size image
__qemu_img /home/services/kvm/vm/myvmname/system-disk --size 50G
# Remove image
__qemu_img /home/services/kvm/vm/myoldvm/system-disk --state absent
```

## SEE ALSO

[**qemu-img**(1)](/qemu-img/1.md)

## AUTHORS

Nico Schottelius \<*nico-cdist--@--schottelius.org*\>

## COPYING

Copyright (C) 2012-2014 Nico Schottelius. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

## COPYRIGHT

ungleich GmbH 2021
