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

Disable all the unnecessary services in Dom0 #95

Closed
marmarek opened this Issue Mar 8, 2015 · 15 comments

Comments

Projects
None yet
2 participants
@marmarek
Member

marmarek commented Mar 8, 2015

Reported by joanna on 14 Mar 2011 16:35 UTC
The installer should ensure only the absolutely necessary services run in Dom0. This is mostly to optimize the startup time and save on resources.

This is the proposed list of essential services that should be left:
NetworkManager 0:off 1:off 2:on 3:on 4:on 5:on 6:off
haldaemon 0:off 1:off 2:on 3:on 4:on 5:on 6:off
iptables 0:off 1:off 2:on 3:on 4:on 5:on 6:off
messagebus 0:off 1:off 2:on 3:on 4:on 5:on 6:off
qubes_core 0:off 1:off 2:on 3:on 4:on 5:on 6:off
qubes_netvm 0:off 1:off 2:on 3:on 4:on 5:on 6:off
qubes_setupdvm 0:off 1:off 2:on 3:on 4:on 5:on 6:off
rsyslog 0:off 1:off 2:on 3:on 4:on 5:on 6:off
xenconsoled 0:off 1:off 2:on 3:on 4:on 5:on 6:off
xend 0:off 1:off 2:on 3:on 4:on 5:on 6:off
xenstored 0:off 1:off 2:on 3:on 4:on 5:on 6:off

Migrated-From: https://wiki.qubes-os.org/ticket/95

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Mar 8, 2015

Member

Modified by joanna on 14 Mar 2011 21:31 UTC

Member

marmarek commented Mar 8, 2015

Modified by joanna on 14 Mar 2011 21:31 UTC

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Mar 8, 2015

Member

Comment by joanna on 15 Mar 2011 00:11 UTC
Perhaps we can also enable irqbalance.

Member

marmarek commented Mar 8, 2015

Comment by joanna on 15 Mar 2011 00:11 UTC
Perhaps we can also enable irqbalance.

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Mar 8, 2015

Member

Comment by joanna on 1 Apr 2011 23:27 UTC
I think the idea was to move all the chkconfig * off from qubes-core-dom0.rpm to the first boot, right?

Member

marmarek commented Mar 8, 2015

Comment by joanna on 1 Apr 2011 23:27 UTC
I think the idea was to move all the chkconfig * off from qubes-core-dom0.rpm to the first boot, right?

@marmarek marmarek added bug and removed enhancement labels Mar 8, 2015

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Mar 8, 2015

Member

Modified by joanna on 1 Apr 2011 23:27 UTC

Member

marmarek commented Mar 8, 2015

Modified by joanna on 1 Apr 2011 23:27 UTC

@marmarek marmarek added P: major and removed P: minor labels Mar 8, 2015

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Mar 8, 2015

Member

Modified by joanna on 2 Apr 2011 22:30 UTC

Member

marmarek commented Mar 8, 2015

Modified by joanna on 2 Apr 2011 22:30 UTC

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Mar 8, 2015

Member

Comment by joanna on 3 Apr 2011 11:48 UTC
Would be better to do this in doPostAction, specifically in installclass.postAction.

Member

marmarek commented Mar 8, 2015

Comment by joanna on 3 Apr 2011 11:48 UTC
Would be better to do this in doPostAction, specifically in installclass.postAction.

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Mar 8, 2015

Member

Comment by joanna on 3 Apr 2011 15:15 UTC
Actually we don't want NetworkManager and iptables in Dom0 either.

Member

marmarek commented Mar 8, 2015

Comment by joanna on 3 Apr 2011 15:15 UTC
Actually we don't want NetworkManager and iptables in Dom0 either.

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Mar 8, 2015

Member

Modified by joanna on 3 Apr 2011 15:16 UTC

Member

marmarek commented Mar 8, 2015

Modified by joanna on 3 Apr 2011 15:16 UTC

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Mar 8, 2015

Member

Comment by joanna on 3 Apr 2011 15:16 UTC
Actually we want to do this in firstboot...

Member

marmarek commented Mar 8, 2015

Comment by joanna on 3 Apr 2011 15:16 UTC
Actually we want to do this in firstboot...

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Mar 8, 2015

Member

Comment by joanna on 3 Apr 2011 23:08 UTC
qubes-core-dom0 is not trying to disable/enable any 3rd party services anymore:

http://git.qubes-os.org/?p=joanna/core.git;a=commitdiff;h=2f278b8647cf3fca0bce311490d3f25733935ba7

Member

marmarek commented Mar 8, 2015

Comment by joanna on 3 Apr 2011 23:08 UTC
qubes-core-dom0 is not trying to disable/enable any 3rd party services anymore:

http://git.qubes-os.org/?p=joanna/core.git;a=commitdiff;h=2f278b8647cf3fca0bce311490d3f25733935ba7

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Mar 8, 2015

Member

Modified by smoku on 4 Apr 2011 13:56 UTC

Member

marmarek commented Mar 8, 2015

Modified by smoku on 4 Apr 2011 13:56 UTC

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Mar 8, 2015

Member

Comment by smoku on 4 Apr 2011 16:31 UTC
We cannot do this in firstboot.

The RC script runs services via simple loop:

for i in /etc/rc$runlevel.d/S*; do ...

and fiddling with Sxx* links in this loop won't change the already created i-list.
Changes will be effective after next boot only.

But it's easy enough to be done from Anaconda postAction. Just remove some files in /etc/rc*.d

Or we can revert to qubes-core-dom0 package doing this. Its %post-installation scripts are launched in installation chroot and may modify the installed system.

Member

marmarek commented Mar 8, 2015

Comment by smoku on 4 Apr 2011 16:31 UTC
We cannot do this in firstboot.

The RC script runs services via simple loop:

for i in /etc/rc$runlevel.d/S*; do ...

and fiddling with Sxx* links in this loop won't change the already created i-list.
Changes will be effective after next boot only.

But it's easy enough to be done from Anaconda postAction. Just remove some files in /etc/rc*.d

Or we can revert to qubes-core-dom0 package doing this. Its %post-installation scripts are launched in installation chroot and may modify the installed system.

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Mar 8, 2015

Member

Comment by joanna on 4 Apr 2011 16:33 UTC
Ok, I will try adding this to the postAction hook in qubes.py class.

Member

marmarek commented Mar 8, 2015

Comment by joanna on 4 Apr 2011 16:33 UTC
Ok, I will try adding this to the postAction hook in qubes.py class.

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Mar 8, 2015

Member

Modified by joanna on 4 Apr 2011 16:33 UTC

Member

marmarek commented Mar 8, 2015

Modified by joanna on 4 Apr 2011 16:33 UTC

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Mar 8, 2015

Member

Comment by joanna on 5 Apr 2011 21:16 UTC
Done (in anaconda postAction):

http://git.qubes-os.org/?p=joanna/installer.git;a=commitdiff;h=a9795ae4a6b3da6697902c1ff1fb3181b7ec4864

Member

marmarek commented Mar 8, 2015

Comment by joanna on 5 Apr 2011 21:16 UTC
Done (in anaconda postAction):

http://git.qubes-os.org/?p=joanna/installer.git;a=commitdiff;h=a9795ae4a6b3da6697902c1ff1fb3181b7ec4864

@marmarek marmarek closed this Mar 8, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment