bind-dirs qubes 4.0

123 views
Skip to first unread message

Roy Bernat

unread,
Dec 2, 2018, 10:07:28 AM12/2/18
to qubes-users
Hi


I use this article to create bind-dirs

i created this file 50_user.conf under /rw/config/qubes-bind-dirs.d

with the following

binds+=( '/var/lib/docker' )
binds+=( '/etc/docker' )


for testing i created a folder inside /var/lib/docker called test and after

reboot the folder removed .

what is the mistake ?

10x all
Roy

unman

unread,
Dec 3, 2018, 8:01:12 AM12/3/18
to qubes-users
No mistake - you need to reboot and then create the folder.
If you look in the "How does it work?" section, you'll see this
explained.

Roy Bernat

unread,
Dec 3, 2018, 10:03:47 AM12/3/18
to qubes-users

in the templateVM ? or in machine i created ?

unman

unread,
Dec 3, 2018, 7:07:56 PM12/3/18
to qubes-users
bind-dirs is used in TemplateBasedVMs to make files/folders that would
otherwise come from the template specific to that qube.
So if you put that conf file in the qube, restart it and then make
changes in /var/lib/docker, and you will see that the changes remain
after rebooting the qube.

Roy Bernat

unread,
Dec 7, 2018, 11:44:20 AM12/7/18
to qubes-users
Thank you for your answer .

how can i make persistent in the appvm ?

for example i created a appvm for docker .

i am downloading images and after reboot the images are not exist because

it saved in the /var/lib/docker


Thanks

unman

unread,
Dec 7, 2018, 9:07:31 PM12/7/18
to qubes-users
Create that file in the appvm as you have described.
Reboot the appVM.
That will make /var/lib/docker persistent in the appVM
(Test this by inspecting /rw/bind-dirs and confirming that
var/lib/docker is there.)
THEN download images and store them in /var/lib/docker.
Reboot appVM.
Confirm that images still exist in /var/lib/docker after restart.

Roy Bernat

unread,
Dec 8, 2018, 4:12:08 AM12/8/18
to qubes-users


not working

i checked again in the template vm

50_user.conf

binds+=( '/var/lib/docker' )

in the template vm it is working as you said

in the appvm it is not working and i cant see the folder

in /rw/bind-dirs

thank you foryou help

unman

unread,
Dec 8, 2018, 7:22:59 AM12/8/18
to qubes-users
Why are you doing this in the template vm? There is nothing in the
documentation to suggest that you should put the files in the template.

bind-dirs is intended to run in templatebasedVMs to make files that
would otherwise disappear on reboot (because they are derived from the
template) be permanent. It makes no sense to set it in the template -
those files will automatically be permanent across reboots in the
appVM. Remove the nind-dirs files from the template, and set them up in
the apppVM.

Please check that you have followed the instructions exactly and set
configuration in the appVM.

unman


Roy Bernat

unread,
Dec 9, 2018, 5:20:28 AM12/9/18
to qubes-users

working :)

10x

Reply all
Reply to author
Forward
0 new messages