Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/tmp directory is cleaned upon restart? #535

Closed
tknerr opened this issue Feb 16, 2016 · 4 comments
Closed

/tmp directory is cleaned upon restart? #535

tknerr opened this issue Feb 16, 2016 · 4 comments

Comments

@tknerr
Copy link

tknerr commented Feb 16, 2016

I'm using the stock "bento/ubuntu-14.04" box, wondering why the /tmp directory is wiped out everytime I reload the VM.

Is this a feature of the bento boxes, or a plain Vagrant thing I just never realized until now?

@cheeseplus
Copy link
Contributor

When you say reload, do you mean restart?

Cause /tmp is cleared on every reboot, that's just a Linux thing.

@tknerr
Copy link
Author

tknerr commented Feb 16, 2016

Yes, I did a 'vagrant reload' which means restart. Trying to reproduce with
a minimal Vagrantfile and 'VAGRANT_NO_PLUGINS=1' env var...
Am 16.02.2016 6:12 nachm. schrieb "Seth Thomas" notifications@github.com:

When you say reload, do you mean restart?


Reply to this email directly or view it on GitHub
#535 (comment).

@tknerr
Copy link
Author

tknerr commented Feb 16, 2016

Minimal repro case:

$ vagrant init bento/ubuntu-14.04 --minimal
$ vagrant up
$ vagrant ssh -c "echo bla > /tmp/bla.txt"
$ vagrant ssh -c "ls -la /tmp"
$ vagrant reload
$ vagrant ssh -c "ls -la /tmp"         # <--- it's empty now

@tknerr
Copy link
Author

tknerr commented Feb 16, 2016

happens with "hashicorp/precise64" too -- so must be a vagrant feature

@tknerr tknerr closed this as completed Feb 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants