Good afternoon everyone,
I am currently using the nice Fedora 30 Vagrant boxes[1] to host some
local dev environment (doing builds) and stumbled upon the fact that the
machines do not provide any swap partition/space (cf attached session
log). My build inside it is thus getting killed when running out of RAM.
I have not found my answer on the list but from some of the searches
I've done[2], it looks like this is a balance between the time spent by
the Fedora cloud team and the users (as to who should do the customization).
Was that the rationale behind this decision to not have swap space into
the images (that users would configure that themselves)?
Thanks for your feedback,
Vincent
[1] attached is my Vagrantfile
[2]
https://lists.fedoraproject.org/archives/list/cloud@xxxxxxxxxxxxxxxxxxxxxxx/message/ALINLNAL7UQHXZ23XOUXVRAZ2OJJ6BXW/
--
www.iot.bzh
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
####################
# Images section
####################
# Canonical images from Redhat
f30_cloud_vbox_name = "f30-cloud-virtualbox"
f30_cloud_vbox_url = "https://download.fedoraproject.org/pub/fedora/linux/releases"\
"/30/Cloud/x86_64/images/Fedora-Cloud-Base-Vagrant-30-1"\
".2.x86_64.vagrant-virtualbox.box"
config.vm.define "f30-vagrant" do |machine|
machine.vm.box = f30_cloud_vbox_name
machine.vm.box_url = f30_cloud_vbox_url
machine.vm.provision "shell", inline: "echo 'Machine ready.'"
# Create the "machine" box
machine.vm.host_name = "f30-vagrant"
# Networking
machine.vm.network "public_network", bridge: "wlp0s20f3"
machine.vm.provider "virtualbox" do |domain|
# Season to taste
domain.cpus = 4
domain.memory = 8192
end
end
end
$ vagrant ssh f30-vagrant
Last login: Mon Feb 10 13:46:35 2020 from 10.0.2.2
[vagrant@f30-vagrant ~]$ cat /etc/fstab
#
# /etc/fstab
# Created by anaconda on Fri Apr 26 02:02:31 2019
#
# Accessible filesystems, by reference, are maintained under '/dev/disk/'.
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.
#
# After editing this file, run 'systemctl daemon-reload' to update systemd
# units generated from this file.
#
UUID=7e3d6ae2-dd83-463f-a52e-446c1e192686 / ext4 defaults 1 1
[vagrant@f30-vagrant ~]$ free -m
total used free shared buff/cache available
Mem: 7974 117 7420 0 435 7625
Swap: 0 0 0
_______________________________________________
cloud mailing list -- cloud@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to cloud-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/cloud@xxxxxxxxxxxxxxxxxxxxxxx