diff options
author | Cole Robinson <crobinso@redhat.com> | 2020-01-14 13:07:38 -0500 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2020-01-14 13:10:03 -0500 |
commit | e4f68764b0ab867ae2fec0b54291c2756207f8c9 (patch) | |
tree | ef1d842ead52969ef0ba84e9ee3ab8d24dc2e001 /virt-install | |
parent | 9b7c819c64b8a7bf3d0b0c55d9d722b3e16c3175 (diff) | |
download | virt-manager-e4f68764b0ab867ae2fec0b54291c2756207f8c9.tar.gz |
virt-install: Set default memory to appease lxc:///
AFAICT the driver doesn't really do anything with it, but libvirt
XML requires it. So just default to --memory 64
Fixes: #73
Signed-off-by: Cole Robinson <crobinso@redhat.com>
Diffstat (limited to 'virt-install')
-rwxr-xr-x | virt-install | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/virt-install b/virt-install index e5fbe050..05d3aaef 100755 --- a/virt-install +++ b/virt-install @@ -454,6 +454,11 @@ def set_cli_defaults(options, guest): guest.name = default_name if guest.os.is_container(): + if not memory_specified(guest): + # LXC doesn't even do anything with memory settings, but libvirt + # XML requires it anyways. Fill in 64 MiB + log.debug("Setting container default --memory 64") + guest.currentMemory = 64 // 1024 return if (options.unattended and |