X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-database.git/blobdiff_plain/5e33702b8b753bbfc39c2372fb0ca162369670b7..7f28be2669ae1670b11e1025ede6a0aa2413886a:/client/etc/xen/sipb-database?ds=sidebyside diff --git a/client/etc/xen/sipb-database b/client/etc/xen/sipb-database index d6c8b3c..70eed41 100644 --- a/client/etc/xen/sipb-database +++ b/client/etc/xen/sipb-database @@ -16,9 +16,9 @@ def check(b): import sys sys.exit(1) -machine = models.Machine.get_by(name=machine_name) +machine = models.Machine.query().filter_by(name=machine_name).one() check(machine is not None) -machine_type = models.Type.get_by(type_id=machine.type_id) +machine_type = models.Type.query().filter_by(type_id=machine.type_id).one() memory = machine.memory maxmem = memory @@ -72,7 +72,7 @@ elif 'cdrom_image' in locals(): if codepath == 'hvm': ioemu = "ioemu:" viftype = "type=ioemu, " - kernel = 'hvmloader' + kernel = '/usr/lib/xen/boot/hvmloader' builder = 'hvm' vnc = 1 vncpasswd = 'moocow'