def METHOD_NAME(vm, kernel_params, test):
    """
    Update boot option in the guest and then reboot guest
    :params vm: vm object
    :params cmd: a command needs to be ran
    :params test: test object
    """
    try:
        session = vm.wait_for_login()
        if not utils_package.package_install("grubby", session=session):
            test.error("Failed to install grubby package.")
        cmd = "grubby --update-kernel=`grubby --default-kernel` --args='%s'" % kernel_params
        logging.info(cmd)
        status, output = session.cmd_status_output(cmd)
        if status != 0:
            logging.error(output)
            test.error("Failed to modify guest kernel option.")
        logging.info("Rebooting guest ...")
        vm.reboot()
    except Exception as details:
        test.fail("Unable to get VM session: %s" % details)
    finally:
        if session:
            session.close()