Create a mount unit in your template of the Deb VM, which does the mount.  Have 
it WantedBy=multi-user.target.  Enable it.

Add a ConditionPathExists=/var/run/qubes-service/mediamount to the unit.

Power off the template and the Deb VM.

Thru Qubes Manager, add a Qubes service to the DebVM, naming it mediamount.

Power on the template.

Bam, now that thing mounts only in the Deb VM.

I have an Ansible play for this.  Will publish it soon.

On February 18, 2017 9:05:57 AM PST, "'.' via qubes-users" 
<qubes-users@googlegroups.com> wrote:
>I have been trying to get a "proper" music setup working on my Qubes
>(3.2) machine and am having issues. On a Fed24VM I can't seem to get
>mp3 support (tried installing gstreamer no go) and on Deb9 I can
>connect to my file server via the filemanager but can't find where it
>is mounting (where as I can just type "mount" in Fed and the last entry
>is usuall the mount point).
>
>I love VLC for videos, but despise it for music (compared to what I
>want in a music player). I was able to run foobar2k with wine before
>(which apparently took care of MP3 support issue in Fed) but that is an
>unweildy option and I think Quod Libet player will suffice (which I
>have installed on both Deb/Fed VMs no prob).
>
>I would prefer to use a debVM for my music but could use some
>suggestions on how to include a line to mount it to a point i can find.
>I have tried mount -t smb //fileserver/directory
>/media/testmountdirectory and a few variations (like CIFS) but nothing.
>I don't have a password on set on the server at the moment and when I
>mount via the file manager I just put in smb://fileserver/directory it
>prompts me to connect and I'm in.
>
>How can I set a Deb "AudioVM" to automatically mount the
>music_directory so it can be accessible to something like Quod Libet?
>
>-- 
>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/vS162_w02q8XeVvlJYqXCAPP0iOD1oRX3Pr8Bw_YVyTlMqv60sDcBeRbDle1W0m02n_GT2k7oyLC1cL9GBOQZMbG7qaHPgQOqv6odmYrEUw%3D%40protonmail.ch.
>For more options, visit https://groups.google.com/d/optout.

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

-- 
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/55D5F7FA-B2FC-4403-99B1-535C7BD4DE9E%40rudd-o.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to