mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 15:36:27 +00:00
12 lines
366 B
Python
12 lines
366 B
Python
![]() |
from common.fs.loopbackvolume import LoopbackVolume
|
||
|
from common.tools import log_check_call
|
||
|
|
||
|
|
||
|
class VirtualBoxVolume(LoopbackVolume):
|
||
|
|
||
|
def create(self, image_path):
|
||
|
super(VirtualBoxVolume, self).create(self)
|
||
|
self.image_path = image_path
|
||
|
log_check_call(['/usr/bin/qemu-img', 'create', '-f', 'vdi', self.image_path, str(self.size) + 'M'])
|
||
|
self.created = True
|