From: Eric Price Date: Fri, 9 May 2008 21:11:46 +0000 (-0400) Subject: Set the default vm type X-Git-Tag: sipb-xen-www/3.4~13 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/commitdiff_plain/08d8cfbd95b86fbdbd05f228b1541daa12f03332?hp=33fec8ab74bb5349c8d8dd6e1c3f13498e262781 Set the default vm type svn path=/trunk/packages/sipb-xen-www/; revision=515 --- diff --git a/code/main.py b/code/main.py index 24fe062..409433d 100755 --- a/code/main.py +++ b/code/main.py @@ -105,8 +105,9 @@ class Defaults: cdrom = '' autoinstall = '' name = '' + type = 'linux-hvm' + def __init__(self, max_memory=None, max_disk=None, **kws): - self.type = Type.get('linux-hvm') if max_memory is not None: self.memory = min(self.memory, max_memory) if max_disk is not None: diff --git a/code/templates/functions.tmpl b/code/templates/functions.tmpl index e1ae309..635f5db 100644 --- a/code/templates/functions.tmpl +++ b/code/templates/functions.tmpl @@ -36,7 +36,7 @@ $databaseList(sorted($sipb_xen_database.Autoinstall.select(), key=lambda x: x.de #for $vmtype in (('linux-hvm', 'HVM'), ('linux', 'ParaVM'), ) #end for