Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upFeature Request - Qubes R3.x - custom default_user value should not break qubes integration (gui, pulse audio) #2372
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Oct 11, 2016
Member
Changing default user in standard templates was never supported (it's only for HVM, and especially Windows), so the bug here is: "changing default_user property is not blocked".
There is much more places than this one where "user" value is hardcoded.
Feature request for supporting different user is very unlikely to be implemented (at least by core team).
|
Changing default user in standard templates was never supported (it's only for HVM, and especially Windows), so the bug here is: "changing default_user property is not blocked". |
yilmi
changed the title from
Qubes R3.x - Pulseaudio broken when using custom default_user
to
Feature Request - Qubes R3.x - Pulseaudio broken when using custom default_user
Oct 11, 2016
yilmi
changed the title from
Feature Request - Qubes R3.x - Pulseaudio broken when using custom default_user
to
Feature Request - Qubes R3.x - custom default_user value should not break qubes integration (gui, pulse audio)
Oct 11, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
yilmi
commented
Oct 11, 2016
|
Changed the description to "Feature request" |
andrewdavidwong
added
enhancement
help wanted
P: minor
labels
Oct 11, 2016
andrewdavidwong
added this to the Far in the future milestone
Oct 11, 2016
andrewdavidwong
added
C: other
C: templates
and removed
C: other
labels
Oct 11, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
yilmi
Nov 9, 2017
Hi @marmarek,
I would like to fix the issue reported on the qubes-run-xorg.sh script. I understand this is not the only place where we have a hardcoded username but would to start with this.
I was thinking about using the xenstore to push the default_user value so it can be accessed from the VM. Then retrieve to pass it as an argument to the -l switch of the su in the qubes-run-xorg.sh
Would you be ok with this approach?
yilmi
commented
Nov 9, 2017
|
Hi @marmarek, I would like to fix the issue reported on the |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Nov 9, 2017
Member
First of all, use QubesDB instead of xenstore (to ease migration to other hypervisors). It's very similar, simply use qubesdb-* tools instead of xenstore-*.
Do you think the same template could be used with different user names in different VMs? If not, maybe it should be rather configuration inside the VM, later communicated to dom0, instead requiring configuration in both places always - you always need to configure template side, at least to create that custom user.
|
First of all, use QubesDB instead of xenstore (to ease migration to other hypervisors). It's very similar, simply use |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
yilmi
Nov 13, 2017
Thanks for the feedback, I will use qubesdb-* instead.
At the moment, one template VM can't have 2 AppVMs with different usernames. The default_user is ignored when I try to set it directly on the AppVM. The value can only be changed through the TemplateVM and will affect AppVMs based on it.
I'll try to prepare a fix that you can review with more detail.
yilmi
commented
Nov 13, 2017
•
|
Thanks for the feedback, I will use At the moment, one template VM can't have 2 AppVMs with different usernames. The I'll try to prepare a fix that you can review with more detail. |
added a commit
to yilmi/qubes-core-admin
that referenced
this issue
Feb 1, 2018
This was referenced Feb 1, 2018
added a commit
to marmarek/qubes-core-admin
that referenced
this issue
Feb 20, 2018
qubesos-bot
referenced this issue
in QubesOS/updates-status
Feb 20, 2018
Closed
core-admin v4.0.23 (r4.0) #424
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
It's done. |
yilmi commentedOct 10, 2016
Qubes OS version :
R3.xAffected TemplateVMs :
found on fedora-23 and debian-8 but could be reproduced on any template using qubes-gui-agent-linux
Expected behavior:
When setting a custom
default_uservalue for a TemplateVM / AppVM Qubes, pulse audio sink is working properlyActual behavior:
If we use a custom
default_uservalue for a TemplateVM / AppVM, pulse audio sink is brokenSteps to reproduce the behavior:
From
dom0:qvm-prefs -s yourvmname default_user yourcustomusernameFrom
yourvmname:Run any app using pulseaudio, it should not work
General notes:
Qubes GUI agent service is executing
/usr/bin/qubes-guiwhich itself is executingqubes-run-xorg.sh.qubes-run-xorg.shprepare qubes configuration args for Xorg and start it :exec su -l user -c "/usr/bin/xinit $XSESSION -- $XORG :0 -nolisten tcp vt07 -wr -config xorg-qubes.conf > ~/.xsession-errors 2>&1"The problem is that X is always started as default qubes vm user, (ie.
user). Pulseaudio is also running as the user appearing inqubes-run-xorg.shbecause it is started through xdg autostartI didn't spent a lot of time on this topic but I suppose that
qubes-guicould readdefault_userfrom somewhere and pass it as an arg toqubes-run-xorg.shRelated issues: