Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

QCOW2 virtual size lowering

If you want to shrink the virtual size, you need to use virt-resize


  1. You need to convert the qcow2 image to raw
    qemu-img convert -O raw guest.img guest.raw
  2. Then resize the raw file
    qemu-img resize guest.raw 3G
  3. Then convert it back to qcow2
    qemu-img convert -O qcow2 -o compat=0.10 guest.raw guest.img
  4. Then run the guest and resize your file system

Tags:

Qemu

Openstack

Kvm Virtualization

Qcow2

Related

make netcat listen for multiple UDP packets Is order of network routes important in Linux? SAS / SATA max number of connected disks vs performance Ubuntu upgrade from 14.04 LTS to 16.04 failed - mysql-server-5.7 dependecies fail How to limit memory for a service managed by systemd Unable to run Hyperkube (kubernetes) locally via Docker Do AWS Servers need fail2ban? Is it possible to force TLS 1.2 on an IIS Site How to ensure integrity and security enforcing signed unmodified RPM package? What does 'Log on as a Service' actually mean? Cat, Grep, Redirect Output.... Blank File? How to improve AWS RDS Performance - Heavy read write updates

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy