Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
libvirt
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Libvirt Packaging Team
libvirt
Commits
19bd4279
Commit
19bd4279
authored
15 years ago
by
Guido Günther
Browse files
Options
Downloads
Patches
Plain Diff
Run qemu instances as qemu-libvirt instead of root by default
parent
65d37556
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
debian/libvirt-bin.postinst
+19
-0
19 additions, 0 deletions
debian/libvirt-bin.postinst
debian/rules
+2
-0
2 additions, 0 deletions
debian/rules
with
21 additions
and
0 deletions
debian/libvirt-bin.postinst
+
19
−
0
View file @
19bd4279
...
...
@@ -24,6 +24,25 @@ case "$1" in
addgroup
--system
libvirt
fi
# user and group libvirt runs qemu/kvm instances with
if
!
getent group libvirt-qemu
>
/dev/null
;
then
addgroup
--system
libvirt-qemu
fi
if
!
getent passwd libvirt-qemu
>
/dev/null
;
then
adduser
--system
\
--ingroup
libvirt-qemu
\
--quiet
\
--disabled-login
\
--disabled-password
\
--home
/var/lib/libvirt
\
--no-create-home
\
-gecos
"Libvirt Qemu"
\
libvirt-qemu
if
getent group kvm
>
/dev/null
;
then
adduser libvirt-qemu kvm
fi
fi
# libvirt from 0.6.0 on is safe to restart with running vms:
if
[
-n
"
$2
"
]
&&
dpkg
--compare-versions
"
$2
"
ge 0.6.0
;
then
if
[
-x
"
`
which invoke-rc.d 2>/dev/null
`
"
]
;
then
...
...
This diff is collapsed.
Click to expand it.
debian/rules
+
2
−
0
View file @
19bd4279
...
...
@@ -24,6 +24,8 @@ include /usr/share/cdbs/1/rules/patchsys-quilt.mk
DEB_CONFIGURE_EXTRA_FLAGS := \
--disable-rpath \
--with-qemu \
--with-qemu-user=libvirt-qemu \
--with-qemu-group=libvirt-qemu \
--with-openvz \
--with-avahi \
--with-sasl \
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment