Re: [qubes-users] How do you automount /dev/xvdi in AppVMs?
On Sat, Dec 09, 2017 at 09:25:58AM -0800, qbertq...@gmail.com wrote: > On Saturday, December 9, 2017 at 10:22:02 AM UTC-7, qber...@gmail.com wrote: > > Unfortunately, running the mount from rc.local doesn't seem to work > > (nothing gets mounted and I don't know why). > > > > I'm using a persistent attach for an AppVM. > > > > After adding "sudo mount /dev/xvdi /mnt/removable" to /rw/config/rc.local, > > I shut down the AppVM, and then start Terminal. After the AppVM starts up, > > I see that the mount didn't happen. > > > > Any tips on diagnosing this? I didn't see the word "mount" in journalctl. > > Not sure where else to look or what to look for. > > User error! I forgot to make /rw/config/rc.local executable... > > The mount in rc.local works now. > Crossed with my last mail. Glad you got it sorted. -- You received this message because you are subscribed to the Google Groups "qubes-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to qubes-users+unsubscr...@googlegroups.com. To post to this group, send email to qubes-users@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-users/20171209174903.i3tqs5647cic574k%40thirdeyesecurity.org. For more options, visit https://groups.google.com/d/optout.
Re: [qubes-users] How do you automount /dev/xvdi in AppVMs?
On Sat, Dec 09, 2017 at 09:22:02AM -0800, qbertq...@gmail.com wrote: > On Saturday, December 9, 2017 at 8:47:19 AM UTC-7, Unman wrote: > > Yes, you can run the mount from rc.local. > > Obviously you'll need to ensure that the device is attached first, so > > if you're using the qrexec service I suggested, make sure that's called > > first and completes before you attempt the mount. > > Unfortunately, running the mount from rc.local doesn't seem to work (nothing > gets mounted and I don't know why). > > I'm using a persistent attach for an AppVM. > > After adding "sudo mount /dev/xvdi /mnt/removable" to /rw/config/rc.local, I > shut down the AppVM, and then start Terminal. After the AppVM starts up, I > see that the mount didn't happen. > > Any tips on diagnosing this? I didn't see the word "mount" in journalctl. Not > sure where else to look or what to look for. > > > Just for completeness, I'll point out that you can use bind-dirs to make > > any file persistent within a qube - have a look at > > www.qubes-os.org/doc/bind-dirs/ > > I'm not sure how this would work with /etc/fstab - I cant check the > > service order at the moment - but it's something you might not be aware > > of. At worst you'd need an extra 'mount -a' call after bind-dirs. > > This is an interesting idea. I didn't know you could persist custom things. I > guess the worry here is if /etc/fstab is an autogenerated file. > > Personally, I'd like to keep things simple and get the rc.local mount > working, but I'll keep bind-dirs in mind for other things. > Did you remember to 'chmod +x' the rc.local file? I am assuming that you are able to manually mount the device Also, I should check which Qubes version you are using. -- You received this message because you are subscribed to the Google Groups "qubes-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to qubes-users+unsubscr...@googlegroups.com. To post to this group, send email to qubes-users@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-users/20171209174737.q723nfgi5ltgt6yk%40thirdeyesecurity.org. For more options, visit https://groups.google.com/d/optout.
Re: [qubes-users] How do you automount /dev/xvdi in AppVMs?
On Saturday, December 9, 2017 at 10:22:02 AM UTC-7, qber...@gmail.com wrote: > Unfortunately, running the mount from rc.local doesn't seem to work (nothing > gets mounted and I don't know why). > > I'm using a persistent attach for an AppVM. > > After adding "sudo mount /dev/xvdi /mnt/removable" to /rw/config/rc.local, I > shut down the AppVM, and then start Terminal. After the AppVM starts up, I > see that the mount didn't happen. > > Any tips on diagnosing this? I didn't see the word "mount" in journalctl. Not > sure where else to look or what to look for. User error! I forgot to make /rw/config/rc.local executable... The mount in rc.local works now. -- You received this message because you are subscribed to the Google Groups "qubes-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to qubes-users+unsubscr...@googlegroups.com. To post to this group, send email to qubes-users@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-users/7d69c2de-a73e-42d7-a88b-90e102917b64%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [qubes-users] How do you automount /dev/xvdi in AppVMs?
On Saturday, December 9, 2017 at 8:47:19 AM UTC-7, Unman wrote: > Yes, you can run the mount from rc.local. > Obviously you'll need to ensure that the device is attached first, so > if you're using the qrexec service I suggested, make sure that's called > first and completes before you attempt the mount. Unfortunately, running the mount from rc.local doesn't seem to work (nothing gets mounted and I don't know why). I'm using a persistent attach for an AppVM. After adding "sudo mount /dev/xvdi /mnt/removable" to /rw/config/rc.local, I shut down the AppVM, and then start Terminal. After the AppVM starts up, I see that the mount didn't happen. Any tips on diagnosing this? I didn't see the word "mount" in journalctl. Not sure where else to look or what to look for. > Just for completeness, I'll point out that you can use bind-dirs to make > any file persistent within a qube - have a look at > www.qubes-os.org/doc/bind-dirs/ > I'm not sure how this would work with /etc/fstab - I cant check the > service order at the moment - but it's something you might not be aware > of. At worst you'd need an extra 'mount -a' call after bind-dirs. This is an interesting idea. I didn't know you could persist custom things. I guess the worry here is if /etc/fstab is an autogenerated file. Personally, I'd like to keep things simple and get the rc.local mount working, but I'll keep bind-dirs in mind for other things. -- You received this message because you are subscribed to the Google Groups "qubes-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to qubes-users+unsubscr...@googlegroups.com. To post to this group, send email to qubes-users@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-users/529422b7-3dd7-4f6e-9d9e-df4f2721c4ed%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [qubes-users] How do you automount /dev/xvdi in AppVMs?
On Fri, Dec 08, 2017 at 11:57:08PM -0800, qbertq...@gmail.com wrote: > How do you automount /dev/xvdi in AppVMs? > > In a typical OS, this is done by modifying /etc/fstab. With Qubes OS AppVMs, > /etc/fstab is not preserved between reboots. > > Should I modify the TemplateVM's /etc/fstab? > > Should I add "mount /dev/xvdi /mnt/removable" to the AppVM's > /rw/config/rc.local? > Yes, you can run the mount from rc.local. Obviously you'll need to ensure that the device is attached first, so if you're using the qrexec service I suggested, make sure that's called first and completes before you attempt the mount. Just for completeness, I'll point out that you can use bind-dirs to make any file persistent within a qube - have a look at www.qubes-os.org/doc/bind-dirs/ I'm not sure how this would work with /etc/fstab - I cant check the service order at the moment - but it's something you might not be aware of. At worst you'd need an extra 'mount -a' call after bind-dirs. unman -- You received this message because you are subscribed to the Google Groups "qubes-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to qubes-users+unsubscr...@googlegroups.com. To post to this group, send email to qubes-users@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-users/20171209154712.vqdxjorew4j3v35g%40thirdeyesecurity.org. For more options, visit https://groups.google.com/d/optout.
[qubes-users] How do you automount /dev/xvdi in AppVMs?
How do you automount /dev/xvdi in AppVMs? In a typical OS, this is done by modifying /etc/fstab. With Qubes OS AppVMs, /etc/fstab is not preserved between reboots. Should I modify the TemplateVM's /etc/fstab? Should I add "mount /dev/xvdi /mnt/removable" to the AppVM's /rw/config/rc.local? -- You received this message because you are subscribed to the Google Groups "qubes-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to qubes-users+unsubscr...@googlegroups.com. To post to this group, send email to qubes-users@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-users/d0ae0ebf-ba41-44ea-af0c-e793dc7aa048%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.