Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- ## Load VM variables
- source "/etc/libvirt/hooks/qemu.d/Windows-11/vm-vars.conf"
- ## Return CPU cores as per set variable
- systemctl set-property --runtime -- user.slice AllowedCPUs=$SYS_TOTAL_CPUS
- systemctl set-property --runtime -- system.slice AllowedCPUs=$SYS_TOTAL_CPUS
- systemctl set-property --runtime -- init.scope AllowedCPUs=$SYS_TOTAL_CPUS
- sleep 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement