Setting Memory for a VM
How to specify the amount of memory on a VM Config
Starting with Orka 2.1.0, it is possible to set the memory of a VM. When creating a VM config, you can now specify the amount of memory.
For the following example, please ensure your environment has already been updated to 2.1.0 and your cli version is at least 2.1.0.
// In your terminal, check your orka version
> orka version
API Version: 2.1.0
CLI Version: 2.1.0
CLI download page: https://orkadocs.macstadium.com/docs/downloads
// Create using CLI input or using --memory flag
orka vm create-config -v memory-example -c 3 -C 3 --memory 6 -y
// Deploy
orka vm deploy -v memory-example -y
![Screen Shot 2022-06-21 at 3.26.45 PM.png 708](https://files.readme.io/a29da7c-Screen_Shot_2022-06-21_at_3.26.45_PM.png)
![Screen Shot 2022-06-21 at 3.29.53 PM.png 1296](https://files.readme.io/b06d88d-Screen_Shot_2022-06-21_at_3.29.53_PM.png)
Note: The deploy screen does not show memory or CPU.
To see that the correct amount of memory was used, open a screenshare. At the top left of the screen, click the Apple icon -> About This Mac, and then you should see the correct amount of memory - 6 GB in this example.
![Screen Shot 2022-06-21 at 3.35.18 PM.png 1048](https://files.readme.io/c27501f-Screen_Shot_2022-06-21_at_3.35.18_PM.png)
You should also see the correct amount of RAM reflected in orka vms
or orka vm list
![Screenshot 2022-06-22 at 15.07.12.png 3714](https://files.readme.io/42c2f0d-Screenshot_2022-06-22_at_15.07.12.png)
Updated about 2 years ago