(i.e. so that it'll throw the exception before it creates the VM)
svn path=/trunk/packages/invirt-web/; revision=1721
return int(min(disksize / 4, memsize * 1.5))
def lvinstall(machine, autoinstall):
- #raise InvalidInput('autoinstall', 'install',
- # "The autoinstaller has been temporarily disabled")
disksize = machine.disks[0].size
memsize = machine.memory
swapsize = getswap(disksize, memsize)
raise CodeError("Invalid cdrom type '%s'" % cdrom)
self.cdrom = cdrom
if autoinstall is not None:
+ #raise InvalidInput('autoinstall', 'install',
+ # "The autoinstaller has been temporarily disabled")
self.autoinstall = Autoinstall.query().get(autoinstall)