Depending on the size of the KVM configuration, for up to a 42-port solution, most KVM switches typically occupy 1U of rack space. Once you upgrade to a 64-port KVM solution, 2U of rack space will likely be required.
For more information visit: https://www.42u.com/kvm-switch-article.htm.