bootstrap-vz/providers/virtualbox/volume.py
Anders Ingemann 0eb5eecfc2 Place everything in info.workspace
instead of spreading files all around the disk
2013-10-27 18:11:13 +01:00

11 lines
313 B
Python

from common.fs.loopbackvolume import LoopbackVolume
from common.tools import log_check_call
class VirtualBoxVolume(LoopbackVolume):
extension = 'vdi'
def _create(self, e):
self.image_path = e.image_path
log_check_call(['/usr/bin/qemu-img', 'create', '-f', 'vdi', self.image_path, str(self.size) + 'M'])