/var/tmp is too small for upgrade image

Hi all,

I’m running the VMware image of VyOS.

I have previously updated with an ‘add system image xxx’ and had no issues but this time, I received an out of space message:

vyos@vyos:/$ add system image xxx
Trying to fetch ISO file from xxx…
The file is 467.000 MiB.
Failed to download https://s3.amazonaws.com/s3-us.vyos.io/rolling/current/vyos-1.4-rolling-202201140317-amd64.iso.
OSError: Not enough disk space available in “/var/tmp/install-image.16297”.
Failed to download the ISO file.

I deleted old images etc. but the problem remained.
Looking further, the target folder is clearly too small for this 467M download:

vyos@vyos:/$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 221M 0 221M 0% /dev
tmpfs 48M 2.3M 45M 5% /run
/dev/sda1 9.8G 1.5G 7.8G 16% /usr/lib/live/mount/persistence
/dev/loop0 392M 392M 0 100% /usr/lib/live/mount/rootfs/1.4-rolling-202112041824-.squashfs
tmpfs 236M 0 236M 0% /usr/lib/live/mount/overlay
overlay 9.8G 1.5G 7.8G 16% /
tmpfs 236M 84K 236M 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 236M 28K 236M 1% /tmp
tmpfs 236M 200K 235M 1% /var/tmp
none 236M 0 236M 0% /etc/cni/net.d
none 236M 836K 235M 1% /opt/vyatta/config
tmpfs 48M 0 48M 0% /run/user/1002

Is there an easy way to extend this filesystem or have I overlooked something here?


Hi @somatica .
You can try this commands:

sudo mount -o remount,size=1G /var/tmp

How much RAM is allocated to your device ?
Alternatively, you can use the following command to download the file and then run add system image command.

$ sudo curl -O https://s3.amazonaws.com/s3-us.vyos.io/rolling/current/vyos-1.4-rolling-202202140317-amd64.iso
$ add system image vyos-1.4-rolling-202202140317-amd64.iso

Hi all,

there were some 2-4 rolling images where the /var/tmp partition was accidently shrinked which triggered this bug. My fault - sorry!

@somatica any of the above mentioned methods will help you upgrade.