Create Virtual Disk from Command Line Terminal

  1. Knowledge Base
  2. Operating System
  3. Systems Administration
  4. Linux
  5. Create Virtual Disk from Command Line Terminal

Create a qcow2 Image

qemu-img create -f qcow2 /path/to/new/image_name.qcow2 500G

Create a RAW Image

qemu-img create -f raw /var/lib/libvirt/images/disk1.img 10G

Re-Sizing a Disk Image

Convert between image formats.

Leave a Reply

Your email address will not be published. Required fields are marked *