This document describes XRM, an event-based resource management framework for XCP. XRM uses a feedback control loop model to automatically allocate resources across VMs and physical machines to meet application goals while maximizing utilization and performance. It addresses challenges in coordinating resource management across multiple layers and efficiently combining scaling primitives. XRM is implemented in Python on XCP and allows pluggable algorithms to handle different events and take actions like migrating VMs or powering off machines. Preliminary results show XRM using different allocation algorithms on a testbed with 5 hosts and random workload requests.