Group 'libvirtd' does not exist while installing QEMU-KVM












3














I am using Ubuntu 17.04 and linux kernel 4.11.3 on a server. The system operates on x86-64 architecture.



I was using the Ubuntu documentation to install KVM linked here Install KVM.



I have encountered a problem while installing it. I see that the installation of libvirt-bin did not install the group libvirtd in my system.



Edit : I see that the below groups have been created possibly after the installation -



akalita@######:~$ cat /etc/group

kvm:x:120:
libvirt:x:121:#######
libvirt-qemu:x:64055:libvirt-qemu


I still cannot find the group libvirtd.



So when I go on to run the below command as per the documentation -



sudo adduser `id -un` libvirtd


I get the below error :-



adduser: The group `libvirtd' does not exist.


How can I resolve this issue ?










share|improve this question
























  • Per the instructions, did you "relogin so that your user becomes an effective member of the libvirtd group" ?. Recently I had a similar issue on Ubuntu 17.x. For some reason, it did not "
    – PJ Singh
    Jun 30 '17 at 1:12










  • Hi @PJSingh the thing is I cannot see the group libvirtd itself. So I am not able to add my username to that group Does this mean I need to relogin again to see the group appear ?
    – Arnabjyoti Kalita
    Jun 30 '17 at 1:17












  • OK, always worth checking, though. The instructions say, "but not 14.04 LTS", so I presume the instructions work for 9.10 up to 13.10, only. May be there is something different you need to do for releases after 14.04, but I don't have experience with QEMU-KVM; hopefully someone else will provide some insight to your question.
    – PJ Singh
    Jun 30 '17 at 1:23










  • Yes, @PJSingh, I checked and relogged in. The group still does not exist. You are probably right - for releases with and beyond 14.04 - it is likely that instruction is probably not working.
    – Arnabjyoti Kalita
    Jun 30 '17 at 1:29


















3














I am using Ubuntu 17.04 and linux kernel 4.11.3 on a server. The system operates on x86-64 architecture.



I was using the Ubuntu documentation to install KVM linked here Install KVM.



I have encountered a problem while installing it. I see that the installation of libvirt-bin did not install the group libvirtd in my system.



Edit : I see that the below groups have been created possibly after the installation -



akalita@######:~$ cat /etc/group

kvm:x:120:
libvirt:x:121:#######
libvirt-qemu:x:64055:libvirt-qemu


I still cannot find the group libvirtd.



So when I go on to run the below command as per the documentation -



sudo adduser `id -un` libvirtd


I get the below error :-



adduser: The group `libvirtd' does not exist.


How can I resolve this issue ?










share|improve this question
























  • Per the instructions, did you "relogin so that your user becomes an effective member of the libvirtd group" ?. Recently I had a similar issue on Ubuntu 17.x. For some reason, it did not "
    – PJ Singh
    Jun 30 '17 at 1:12










  • Hi @PJSingh the thing is I cannot see the group libvirtd itself. So I am not able to add my username to that group Does this mean I need to relogin again to see the group appear ?
    – Arnabjyoti Kalita
    Jun 30 '17 at 1:17












  • OK, always worth checking, though. The instructions say, "but not 14.04 LTS", so I presume the instructions work for 9.10 up to 13.10, only. May be there is something different you need to do for releases after 14.04, but I don't have experience with QEMU-KVM; hopefully someone else will provide some insight to your question.
    – PJ Singh
    Jun 30 '17 at 1:23










  • Yes, @PJSingh, I checked and relogged in. The group still does not exist. You are probably right - for releases with and beyond 14.04 - it is likely that instruction is probably not working.
    – Arnabjyoti Kalita
    Jun 30 '17 at 1:29
















3












3








3







I am using Ubuntu 17.04 and linux kernel 4.11.3 on a server. The system operates on x86-64 architecture.



I was using the Ubuntu documentation to install KVM linked here Install KVM.



I have encountered a problem while installing it. I see that the installation of libvirt-bin did not install the group libvirtd in my system.



Edit : I see that the below groups have been created possibly after the installation -



akalita@######:~$ cat /etc/group

kvm:x:120:
libvirt:x:121:#######
libvirt-qemu:x:64055:libvirt-qemu


I still cannot find the group libvirtd.



So when I go on to run the below command as per the documentation -



sudo adduser `id -un` libvirtd


I get the below error :-



adduser: The group `libvirtd' does not exist.


How can I resolve this issue ?










share|improve this question















I am using Ubuntu 17.04 and linux kernel 4.11.3 on a server. The system operates on x86-64 architecture.



I was using the Ubuntu documentation to install KVM linked here Install KVM.



I have encountered a problem while installing it. I see that the installation of libvirt-bin did not install the group libvirtd in my system.



Edit : I see that the below groups have been created possibly after the installation -



akalita@######:~$ cat /etc/group

kvm:x:120:
libvirt:x:121:#######
libvirt-qemu:x:64055:libvirt-qemu


I still cannot find the group libvirtd.



So when I go on to run the below command as per the documentation -



sudo adduser `id -un` libvirtd


I get the below error :-



adduser: The group `libvirtd' does not exist.


How can I resolve this issue ?







server permissions virtualization kvm






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jun 30 '17 at 1:59

























asked Jun 30 '17 at 0:56









Arnabjyoti Kalita

13316




13316












  • Per the instructions, did you "relogin so that your user becomes an effective member of the libvirtd group" ?. Recently I had a similar issue on Ubuntu 17.x. For some reason, it did not "
    – PJ Singh
    Jun 30 '17 at 1:12










  • Hi @PJSingh the thing is I cannot see the group libvirtd itself. So I am not able to add my username to that group Does this mean I need to relogin again to see the group appear ?
    – Arnabjyoti Kalita
    Jun 30 '17 at 1:17












  • OK, always worth checking, though. The instructions say, "but not 14.04 LTS", so I presume the instructions work for 9.10 up to 13.10, only. May be there is something different you need to do for releases after 14.04, but I don't have experience with QEMU-KVM; hopefully someone else will provide some insight to your question.
    – PJ Singh
    Jun 30 '17 at 1:23










  • Yes, @PJSingh, I checked and relogged in. The group still does not exist. You are probably right - for releases with and beyond 14.04 - it is likely that instruction is probably not working.
    – Arnabjyoti Kalita
    Jun 30 '17 at 1:29




















  • Per the instructions, did you "relogin so that your user becomes an effective member of the libvirtd group" ?. Recently I had a similar issue on Ubuntu 17.x. For some reason, it did not "
    – PJ Singh
    Jun 30 '17 at 1:12










  • Hi @PJSingh the thing is I cannot see the group libvirtd itself. So I am not able to add my username to that group Does this mean I need to relogin again to see the group appear ?
    – Arnabjyoti Kalita
    Jun 30 '17 at 1:17












  • OK, always worth checking, though. The instructions say, "but not 14.04 LTS", so I presume the instructions work for 9.10 up to 13.10, only. May be there is something different you need to do for releases after 14.04, but I don't have experience with QEMU-KVM; hopefully someone else will provide some insight to your question.
    – PJ Singh
    Jun 30 '17 at 1:23










  • Yes, @PJSingh, I checked and relogged in. The group still does not exist. You are probably right - for releases with and beyond 14.04 - it is likely that instruction is probably not working.
    – Arnabjyoti Kalita
    Jun 30 '17 at 1:29


















Per the instructions, did you "relogin so that your user becomes an effective member of the libvirtd group" ?. Recently I had a similar issue on Ubuntu 17.x. For some reason, it did not "
– PJ Singh
Jun 30 '17 at 1:12




Per the instructions, did you "relogin so that your user becomes an effective member of the libvirtd group" ?. Recently I had a similar issue on Ubuntu 17.x. For some reason, it did not "
– PJ Singh
Jun 30 '17 at 1:12












Hi @PJSingh the thing is I cannot see the group libvirtd itself. So I am not able to add my username to that group Does this mean I need to relogin again to see the group appear ?
– Arnabjyoti Kalita
Jun 30 '17 at 1:17






Hi @PJSingh the thing is I cannot see the group libvirtd itself. So I am not able to add my username to that group Does this mean I need to relogin again to see the group appear ?
– Arnabjyoti Kalita
Jun 30 '17 at 1:17














OK, always worth checking, though. The instructions say, "but not 14.04 LTS", so I presume the instructions work for 9.10 up to 13.10, only. May be there is something different you need to do for releases after 14.04, but I don't have experience with QEMU-KVM; hopefully someone else will provide some insight to your question.
– PJ Singh
Jun 30 '17 at 1:23




OK, always worth checking, though. The instructions say, "but not 14.04 LTS", so I presume the instructions work for 9.10 up to 13.10, only. May be there is something different you need to do for releases after 14.04, but I don't have experience with QEMU-KVM; hopefully someone else will provide some insight to your question.
– PJ Singh
Jun 30 '17 at 1:23












Yes, @PJSingh, I checked and relogged in. The group still does not exist. You are probably right - for releases with and beyond 14.04 - it is likely that instruction is probably not working.
– Arnabjyoti Kalita
Jun 30 '17 at 1:29






Yes, @PJSingh, I checked and relogged in. The group still does not exist. You are probably right - for releases with and beyond 14.04 - it is likely that instruction is probably not working.
– Arnabjyoti Kalita
Jun 30 '17 at 1:29












4 Answers
4






active

oldest

votes


















5














I had the same problem and for me the solution was to manually create the libvirtd group:



sudo addgroup libvirtd
sudo adduser YOURUSERNAME libvirtd


After that: virt-manager started without telling me to add myself to the libvirtd group anymore.






share|improve this answer





























    5














    The issue is about the name of the group.
    On Ubuntu, the group name should be "libvirt" ...without "d".



    so your command should be:



    sudo adduser `id -un` libvirt





    share|improve this answer





















    • Nice, this was the issue on Solus too! Or in that case, sudo usermod -a -G libvirt [username]
      – Jonas
      Jan 19 at 21:58





















    1














    The group was renamed to libvirt for Ubuntu 16.10 and later. It's in the Ubuntu Server Guide






    share|improve this answer





























      0














      I faced the same issue on ubuntu 17.04 Desktop



      Workaround:



      In a terminal enter:



      sudo apt install virt-manager


      and then



      sudo virt-manager


      if you try to start virt-manager using Unity GUI
      Application > virt-manager

      it won't work because your current user does not have the requisite permissions.






      share|improve this answer























        Your Answer








        StackExchange.ready(function() {
        var channelOptions = {
        tags: "".split(" "),
        id: "89"
        };
        initTagRenderer("".split(" "), "".split(" "), channelOptions);

        StackExchange.using("externalEditor", function() {
        // Have to fire editor after snippets, if snippets enabled
        if (StackExchange.settings.snippets.snippetsEnabled) {
        StackExchange.using("snippets", function() {
        createEditor();
        });
        }
        else {
        createEditor();
        }
        });

        function createEditor() {
        StackExchange.prepareEditor({
        heartbeatType: 'answer',
        autoActivateHeartbeat: false,
        convertImagesToLinks: true,
        noModals: true,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: 10,
        bindNavPrevention: true,
        postfix: "",
        imageUploader: {
        brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
        contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
        allowUrls: true
        },
        onDemand: true,
        discardSelector: ".discard-answer"
        ,immediatelyShowMarkdownHelp:true
        });


        }
        });














        draft saved

        draft discarded


















        StackExchange.ready(
        function () {
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f930491%2fgroup-libvirtd-does-not-exist-while-installing-qemu-kvm%23new-answer', 'question_page');
        }
        );

        Post as a guest















        Required, but never shown

























        4 Answers
        4






        active

        oldest

        votes








        4 Answers
        4






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        5














        I had the same problem and for me the solution was to manually create the libvirtd group:



        sudo addgroup libvirtd
        sudo adduser YOURUSERNAME libvirtd


        After that: virt-manager started without telling me to add myself to the libvirtd group anymore.






        share|improve this answer


























          5














          I had the same problem and for me the solution was to manually create the libvirtd group:



          sudo addgroup libvirtd
          sudo adduser YOURUSERNAME libvirtd


          After that: virt-manager started without telling me to add myself to the libvirtd group anymore.






          share|improve this answer
























            5












            5








            5






            I had the same problem and for me the solution was to manually create the libvirtd group:



            sudo addgroup libvirtd
            sudo adduser YOURUSERNAME libvirtd


            After that: virt-manager started without telling me to add myself to the libvirtd group anymore.






            share|improve this answer












            I had the same problem and for me the solution was to manually create the libvirtd group:



            sudo addgroup libvirtd
            sudo adduser YOURUSERNAME libvirtd


            After that: virt-manager started without telling me to add myself to the libvirtd group anymore.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Oct 8 '17 at 13:06









            firepol

            17415




            17415

























                5














                The issue is about the name of the group.
                On Ubuntu, the group name should be "libvirt" ...without "d".



                so your command should be:



                sudo adduser `id -un` libvirt





                share|improve this answer





















                • Nice, this was the issue on Solus too! Or in that case, sudo usermod -a -G libvirt [username]
                  – Jonas
                  Jan 19 at 21:58


















                5














                The issue is about the name of the group.
                On Ubuntu, the group name should be "libvirt" ...without "d".



                so your command should be:



                sudo adduser `id -un` libvirt





                share|improve this answer





















                • Nice, this was the issue on Solus too! Or in that case, sudo usermod -a -G libvirt [username]
                  – Jonas
                  Jan 19 at 21:58
















                5












                5








                5






                The issue is about the name of the group.
                On Ubuntu, the group name should be "libvirt" ...without "d".



                so your command should be:



                sudo adduser `id -un` libvirt





                share|improve this answer












                The issue is about the name of the group.
                On Ubuntu, the group name should be "libvirt" ...without "d".



                so your command should be:



                sudo adduser `id -un` libvirt






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jan 7 at 16:35









                Kamesh Chauhan

                5111




                5111












                • Nice, this was the issue on Solus too! Or in that case, sudo usermod -a -G libvirt [username]
                  – Jonas
                  Jan 19 at 21:58




















                • Nice, this was the issue on Solus too! Or in that case, sudo usermod -a -G libvirt [username]
                  – Jonas
                  Jan 19 at 21:58


















                Nice, this was the issue on Solus too! Or in that case, sudo usermod -a -G libvirt [username]
                – Jonas
                Jan 19 at 21:58






                Nice, this was the issue on Solus too! Or in that case, sudo usermod -a -G libvirt [username]
                – Jonas
                Jan 19 at 21:58













                1














                The group was renamed to libvirt for Ubuntu 16.10 and later. It's in the Ubuntu Server Guide






                share|improve this answer


























                  1














                  The group was renamed to libvirt for Ubuntu 16.10 and later. It's in the Ubuntu Server Guide






                  share|improve this answer
























                    1












                    1








                    1






                    The group was renamed to libvirt for Ubuntu 16.10 and later. It's in the Ubuntu Server Guide






                    share|improve this answer












                    The group was renamed to libvirt for Ubuntu 16.10 and later. It's in the Ubuntu Server Guide







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Dec 15 at 19:50









                    oliver602

                    184




                    184























                        0














                        I faced the same issue on ubuntu 17.04 Desktop



                        Workaround:



                        In a terminal enter:



                        sudo apt install virt-manager


                        and then



                        sudo virt-manager


                        if you try to start virt-manager using Unity GUI
                        Application > virt-manager

                        it won't work because your current user does not have the requisite permissions.






                        share|improve this answer




























                          0














                          I faced the same issue on ubuntu 17.04 Desktop



                          Workaround:



                          In a terminal enter:



                          sudo apt install virt-manager


                          and then



                          sudo virt-manager


                          if you try to start virt-manager using Unity GUI
                          Application > virt-manager

                          it won't work because your current user does not have the requisite permissions.






                          share|improve this answer


























                            0












                            0








                            0






                            I faced the same issue on ubuntu 17.04 Desktop



                            Workaround:



                            In a terminal enter:



                            sudo apt install virt-manager


                            and then



                            sudo virt-manager


                            if you try to start virt-manager using Unity GUI
                            Application > virt-manager

                            it won't work because your current user does not have the requisite permissions.






                            share|improve this answer














                            I faced the same issue on ubuntu 17.04 Desktop



                            Workaround:



                            In a terminal enter:



                            sudo apt install virt-manager


                            and then



                            sudo virt-manager


                            if you try to start virt-manager using Unity GUI
                            Application > virt-manager

                            it won't work because your current user does not have the requisite permissions.







                            share|improve this answer














                            share|improve this answer



                            share|improve this answer








                            edited Sep 18 '17 at 13:07









                            Zanna

                            50k13131238




                            50k13131238










                            answered Sep 18 '17 at 12:26









                            ritin

                            1116




                            1116






























                                draft saved

                                draft discarded




















































                                Thanks for contributing an answer to Ask Ubuntu!


                                • Please be sure to answer the question. Provide details and share your research!

                                But avoid



                                • Asking for help, clarification, or responding to other answers.

                                • Making statements based on opinion; back them up with references or personal experience.


                                To learn more, see our tips on writing great answers.





                                Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                                Please pay close attention to the following guidance:


                                • Please be sure to answer the question. Provide details and share your research!

                                But avoid



                                • Asking for help, clarification, or responding to other answers.

                                • Making statements based on opinion; back them up with references or personal experience.


                                To learn more, see our tips on writing great answers.




                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function () {
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f930491%2fgroup-libvirtd-does-not-exist-while-installing-qemu-kvm%23new-answer', 'question_page');
                                }
                                );

                                Post as a guest















                                Required, but never shown





















































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown

































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown







                                Popular posts from this blog

                                How did Captain America manage to do this?

                                迪纳利

                                南乌拉尔铁路局