Results 1 to 6 of 6

Thread: user of qemu-system-x86 (libvirt)

  1. #1
    Join Date
    Dec 2020
    Location
    Denmark
    Posts
    44

    Default user of qemu-system-x86 (libvirt)

    On openSUSE the user "qemu" is the default user of the process "qemu-system-x86" when using libvirt, on Debian it's "libvirt-qemu".

    I can change it in qemu.conf e.g. "user = root".

    But where is this default "qemu" or "libvirt-qemu" specified, it's not in qemu.conf or any other. Been searching everything in /etc/*

  2. #2
    Join Date
    Dec 2020
    Location
    Denmark
    Posts
    44

    Default Re: user of qemu-system-x86 (libvirt)

    I need to look it up by script, even on a computer where a qemu-system-x86 process hasn't been started yet (otherwise I could easily use e.g. ps)

  3. #3
    Join Date
    Jun 2008
    Location
    East of Podunk
    Posts
    33,253
    Blog Entries
    15

    Default Re: user of qemu-system-x86 (libvirt)

    Quote Originally Posted by MrBW View Post
    On openSUSE the user "qemu" is the default user of the process "qemu-system-x86" when using libvirt, on Debian it's "libvirt-qemu".

    I can change it in qemu.conf e.g. "user = root".

    But where is this default "qemu" or "libvirt-qemu" specified, it's not in qemu.conf or any other. Been searching everything in /etc/*
    Hi
    On Leap it gets created on qemu install as it's not split out like in Tumbleweed (system-user-qemu), but it will be in groups and passwd files in /etc two groups kvm and qemu and user qemu;

    Code:
    egrep -d skip "qemu|kvm" /etc/*
    See line 1578;
    https://build.opensuse.org/package/v....spec?expand=1
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  4. #4
    Join Date
    Dec 2020
    Location
    Denmark
    Posts
    44

    Default Re: user of qemu-system-x86 (libvirt)

    I'm not talking about the "qemu" user and "kvm" group itself, I know it's created in the user-, group- and password-files that's not the issue.

    How does libvirt know which user to use when creating a new "qemu-system-x86" process. It must look up that information somewhere, or is it really hard-coded?

  5. #5
    Join Date
    Jun 2008
    Location
    East of Podunk
    Posts
    33,253
    Blog Entries
    15

    Default Re: user of qemu-system-x86 (libvirt)

    Quote Originally Posted by MrBW View Post
    I'm not talking about the "qemu" user and "kvm" group itself, I know it's created in the user-, group- and password-files that's not the issue.

    How does libvirt know which user to use when creating a new "qemu-system-x86" process. It must look up that information somewhere, or is it really hard-coded?
    Hi
    File permissions, owner and group on the binary.
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  6. #6
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    13,295
    Blog Entries
    2

    Default Re: user of qemu-system-x86 (libvirt)

    Quote Originally Posted by MrBW View Post
    I'm not talking about the "qemu" user and "kvm" group itself, I know it's created in the user-, group- and password-files that's not the issue.

    How does libvirt know which user to use when creating a new "qemu-system-x86" process. It must look up that information somewhere, or is it really hard-coded?
    I'm guessing you're confused believing that each Guest's internal system processes with the processes used for VM management.
    The processes used for managing VMs are external to the VMs themselves, and are owned by the HostOS.
    If you're trying to execute something within a VM on bootup, that's entirely different than managing VMs.

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •