Skip to main content

gns3util image create

Create a QEMU disk image

Synopsis

Create a QEMU disk image with specified format and size
gns3util image create [image-path] [flags]

Examples

gns3util -s https://controller:3080 image create /path/to/image --format qcow2 --size 10240

Options

  -a, --adapter-type string     Adapter type (idle, lsilogic, ...)
      --cluster-size int        Cluster size
  -f, --format string           Image format (qcow2, raw, ...)
  -h, --help                    help for create
  -l, --lazy_refcounts string   lazy_refcounts (on/off)
  -p, --preallocation string    Preallocation (off, metadata, falloc, full)
  -r, --refcount-bits int       Refcount bits
  -z, --size int                Image size in MB
  -t, --static string           static (on/off)
  -u, --subformat string        Subformat
  -j, --use-json string         Provide a raw JSON string to send instead of flags
  -g, --zeroed-grain string     zeroed-grain (on/off)

Options inherited from parent commands

  -c, --cluster string    Cluster name from keyfile. Mutually exclusive with --server
  -i, --insecure          Ignore unsigned SSL-Certificates. Can be set via GNS3_INSECURE
  -k, --key-file string   Path to authentication keyfile. Can be set via GNS3_KEY_FILE or config.toml
  -o, --output string     Output format: [json, json-colorless, collapsed, yaml, toml, table, table-ascii]. Can be set via GNS3_OUTPUT (default "table")
  -s, --server string     GNS3v3 Server URL. Can be set via GNS3_SERVER or config.toml

SEE ALSO

Auto generated by spf13/cobra on 24-Mar-2026