def METHOD_NAME():
    """
    Generate container xml
    """
    vmxml = vm_xml.VMXML(dom_type)
    vmxml.vm_name = vm_name
    vmxml.max_mem = max_mem
    vmxml.current_mem = cur_mem
    vmxml.vcpu = vcpu
    osxml = vmxml.os
    osxml.type = os_type
    osxml.arch = os_arch
    osxml.init = os_init
    vmxml.os = osxml
    # Generate emulator
    emulator = Emulator()
    emulator.path = emulator_path
    # Generate console
    console = Console()
    # Add emulator and console in devices
    devices = vm_xml.VMXMLDevices()
    devices.append(emulator)
    devices.append(console)
    logging.debug("device is %s", devices)
    vmxml.set_devices(devices)
    return vmxml