3
I'm trying to use Vagrant + VirtualBox to build a Yocto based project. The build process is aborting before it starts compiling because it does a sanity check for disk space and inode. It appears that vboxfs
mounts only show as having 1k free inodes (which is Yocto's PANIC threshold)
vagrant@vagrant-ubuntu-trusty-64:/vagrant$ df -ih
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sda1 2.5M 88K 2.5M 4% /
none 975K 2 975K 1% /sys/fs/cgroup
udev 974K 401 973K 1% /dev
tmpfs 975K 322 975K 1% /run
none 975K 1 975K 1% /run/lock
none 975K 1 975K 1% /run/shm
none 975K 2 975K 1% /run/user
vagrant 1000 0 1000 0% /vagrant
I can rsync the shared directory into the VM or checkout the code, but that sort of negates the benefits of Vagrant. Is it possible to tweak the vboxfs
mount settings to make it have more inodes?
Edit
Modifying the config file to change the panic thresholds seems to have worked. There are actually two levels of checking. A "STOP" level and an "ABORT" level. By default "STOP" is set to 100,000 inodes. Changing both STOP and ABORT to 999 inodes allows the build to proceed, but I'm not sure if it will cause other problems down the road.
1...what about to set the Yocto's PANIC threshold to 999? is it possible? – Hastur – 2015-11-12T22:50:34.990
1Hmm, that's worth trying. I'll give it a go in the morning and update. – kyork – 2015-11-13T02:35:18.453
1@Hastur see the edit above. – kyork – 2015-11-13T14:58:12.123
If that solution works down the road it's possible to post as an answer too. If not is possible to try to follow the same reverse logic, if you are not on a Windows host, Is it unrealisable to set up some NFS folders and compile on those? I read speed-up-your-vagrant and this suggestion too
– Hastur – 2015-11-13T16:32:17.620