New here. New to Qubes. Swap and tmp question on VM's

42 views
Skip to first unread message

perkins...@gmail.com

unread,
Apr 5, 2018, 11:19:55 AM4/5/18
to qubes-users
Hi. I'm new to Qubes, and I have an issue. I am attempting to create a VM template for a software package which needs a larger swap and /tmp space in order to install. Where are those controlled and how can I provision a Fedora VM with larger/non-standard swap and /tmp?

Thanks in advance.

perkins...@gmail.com

unread,
Apr 5, 2018, 11:21:22 AM4/5/18
to qubes-users
On Thursday, April 5, 2018 at 11:19:55 AM UTC-4, perkins...@gmail.com wrote:
> Hi. I'm new to Qubes, and I have an issue. I am attempting to create a VM template for a software package which needs a larger swap and /tmp space in order to install. Where are those controlled and how can I provision a Fedora VM with larger/non-standard swap and /tmp?
>
> Thanks in advance.

Oh. Qubes 3.2. Fedora 26 minimal. Machine is 4 core w 16gram, 160gssd(os), 2tb data drive.

Ivan Mitev

unread,
Apr 5, 2018, 11:53:32 AM4/5/18
to qubes...@googlegroups.com


On 04/05/2018 06:19 PM, perkins...@gmail.com wrote:
> Hi. I'm new to Qubes, and I have an issue. I am attempting to create a VM template for a software package which needs a larger swap and /tmp space in order to install. Where are those controlled and how can I provision a Fedora VM with larger/non-standard swap and /tmp?

fedora's /tmp uses tmpfs ; it's mounted by systemd at boot time.

see `systemctl status tmp.mount` and
`/usr/lib/systemd/system/tmp.mount.d/30_qubes.conf to increase its size

alternatively you can increase the size afterwards with

mount -o remount,size=5G /tmp/

if you need to have a disk based tmp you'll have to mask the systemd
unit (`systemctl mask tmp.mount`) and put a fstab entry for /tmp ; but
maybe it'll break stuff...

no idea about how to increase swap from dom0 on R3.2 ; alternatively you
can add swap with a file inside the vm but it's a bit ugly:

dd if=/dev/zero of=swapfile bs=1M count=1000
mkswap swapfile
swapon swapfile


hope this helps

ivan



>
> Thanks in advance.
>

Stuart Perkins

unread,
Apr 5, 2018, 1:02:48 PM4/5/18
to qubes...@googlegroups.com
Thanks Ivan. I got /tmp increased. Working on swap now. With Qubes
3.2, swap on a VM is xvdc1, so it is a mounted image from the main
system. I just need to figure out what/where that is so I can bump it
up a bit...or take the VM controlled approach you call "ugly". :)
Reply all
Reply to author
Forward
0 new messages