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
if codepath == 'hvm':
ioemu = "ioemu:"
viftype = "type=ioemu, "
- kernel = 'hvmloader'
+ kernel = '/usr/lib/xen/boot/hvmloader'
builder = 'hvm'
vnc = 1
vncpasswd = 'moocow'