Guest User

Untitled

a guest
Aug 2nd, 2012
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. in nova/virt/libvirt/utils.py
  2.  
  3. def create_cow_image(backing_file, path):
  4. """Create COW image
  5.  
  6. Creates a COW image with the given backing file
  7.  
  8. :param backing_file: Existing image on which to base the COW image
  9. :param path: Desired location of the COW image
  10. """
  11. execute('qemu-img', 'create', '-f', 'qcow2', '-o',
  12. 'backing_file=%s' % backing_file, path)
Advertisement
Add Comment
Please, Sign In to add comment