Quantcast
Channel: Ubuntu Forums - Virtualisation
Viewing all articles
Browse latest Browse all 4211

How to create a lxd VM with a fixed amount of memory?

$
0
0
When creating a virtual machine with LXC, all I get is a VM with 1GB memory.

For example
Code:

lxc launch images:centos/7/cloud vm1 --vm
Code:

$ lxc exec vm1 -- sh -c 'free -m'
              total        used        free      shared  buff/cache  available
Mem:            987          68        820          6          97        796
Swap:            0          0          0

I have specific applications that look for the available memory on the host for shirt sizing reasons, and so these applications fail to launch or install. How to set a specific amount of memory to be presented to the VM OS?

Viewing all articles
Browse latest Browse all 4211

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>