Ignore:
Timestamp:
Jul 10, 2008, 4:19:46 PM (16 years ago)
Author:
quentin
Message:

Boot VMs as HVM when there is a boot CD, regardless of machine type

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-database/client/etc/xen/sipb-database

    r490 r671  
    1919machine = models.Machine.get_by(name=machine_name)
    2020check(machine is not None)
    21 machine_type = models.Type.get_by(type_id=machine.type_id)
     21hvm = machine.type.hvm
     22if 'cdrom_image' in locals():
     23    hvm = True
    2224
    2325memory = machine.memory
     
    3335viftype = ""
    3436
    35 if machine_type.hvm:
     37if hvm:
    3638    ioemu = "ioemu:"
    3739    viftype = "type=ioemu, "
     
    4850    builder = 'linux'
    4951
    50 pae = machine_type.pae
    51 acpi = machine_type.acpi
    52 apic = machine_type.apic
     52pae = machine.type.pae
     53acpi = machine.type.acpi
     54apic = machine.type.apic
    5355
    5456vif = []
Note: See TracChangeset for help on using the changeset viewer.