western willow ventures inc.

eye on the net
  • Services offered
  • Contact
  • Art
  • Fun
  • ARDi
  • Terms of Service
  • Privacy
  • Home

Search

Navigation

  • Login
  • Album photos
  • Contact form
  • Feed aggregator
Home

grow disk image

Rescue an ailing VM running out of diskspace.

Tue, 2012-05-08 18:23 |  Franco

This is a viable approach - Start by stopping/ shutting down the VM:

Now we need to grow the qcow2 disk. First, change to the folder with your VM images

cd /var/lib/libvirt

Next convert you image to raw (Takes a while)

sudo qemu-img convert -f qcow2 /var/lib/libvirt/images/sparcs_wx.img -O raw ~/mydisk.raw

I then expanded the disk to be 20GB (takes a second)

sudo dd if=/dev/zero of=mydisk.raw bs=1M count=0 seek=20480

Read more
Franco's blog |  Login to post comments |  459 reads |  Tags: diskspace, grow disk image, kvm, ubuntu, virtual machine

Popular content

All time:

  • Recursive search for files with specific content using GREP
  • Contact
  • Web
  • Uber Admin Tip: Instant SOCKS proxy.
  • Creating a bluetooth serial port on Ubuntu

Recent blog posts

  • Easy exporting of Drupal 7 custom fields for use in module code.
  • Midnight Commander on OS-X
  • Get lists of NIDs from DB filtering by fields without having to do joins - Hello "Entity Field Query"
  • Setting the maximum upload size or php memory for Drupal 7
  • Charts and Graphs in Drupal 7
  • Restore a LVM image to LVM direct from gzip to LVM with a progress bar
  • Check if port XXX is listening on your server
  • Fix slow SSH response on your Ubuntu Server
  • Things i like to do to Ubuntu to make it rock.
  • Find and eliminate rogue or ghost KVM Virtual machines under Cloudmin
more

© 2010 Western Willow Ventures Inc.

Designed by Heidi Selzler.