hyperlight-dev / hyperlight-dev/hyperlight

Implement checks on VM limits for WHP / MSHV

Đang mở
#169 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
lifecycle/confirmed
Ngôn ngữ chính
Rust
Star
4.7k
Fork
208
Merge trung bình
1 ngày 7 giờ
Pull request đã merge (30 ngày)
47

Mô tả

HyperV has some limits on the number of VMs that can be created on Windows (WHP) and Linux (MSHV).

On Windows in order to create more than 1 VM per host process we need to use a Surrogate Process Manager to spawn Surrogate processes through which we map memory to a VM, there is a limit (512) in terms of the number of VMs we can create from a single host process. We need to ensure that we can return an appropriate error message if a Host tries to exceed this limit.

Windows also has an upper limit in terms of the total number of VMs that can be created per Host machine, its not clear exactly what this number is (we observed 4030 on one machine but this may be dependent on the resources available on the host), it may be possible to monitor this number through a perfmon counter.

On Mariner Linux there is no per process limit or need for a surrogate process manager, however there is a limit in the total number of VMs that can be created per host (we observed around 2030) , again we should return a suitable error message when we breach this limit so that any Hyperlight Host understands the limitation.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.