How to fix error 'libxenlight failed to create a new domain'?











up vote
3
down vote

favorite












Using Virt-Manager 1.2.1 on 14.04. / Xen 4.4 from repos. Cannot create VM machine because this error crops up on virt-manager.



This is after editing /etc/xen/xend-config.sxp to allow virt-manager to work and restarting libvirt and xen services.



Closest clue is from the OpenSuse forums which suggest Apparmor and libvirtd are in conflict. Solution seemed to be to disable Apparmor. Apparmor does not seem installed though.










share|improve this question
























  • Where is the virtual host installed?
    – Christopher Angulo-Bertram
    Jun 7 '16 at 20:48










  • On a local server. Not a cloud setup.
    – Guest
    Jun 8 '16 at 9:18










  • Can you add the exact error message you are getting?
    – Christopher Angulo-Bertram
    Jun 8 '16 at 16:04










  • Sorry, I was not seeing the trees due to the forest. Never mind my last comment.
    – Christopher Angulo-Bertram
    Jun 8 '16 at 16:06










  • Better comment, have you tried this answer? askubuntu.com/questions/466292/virt-manager-cant-connect-to-xen
    – Christopher Angulo-Bertram
    Jun 8 '16 at 16:15















up vote
3
down vote

favorite












Using Virt-Manager 1.2.1 on 14.04. / Xen 4.4 from repos. Cannot create VM machine because this error crops up on virt-manager.



This is after editing /etc/xen/xend-config.sxp to allow virt-manager to work and restarting libvirt and xen services.



Closest clue is from the OpenSuse forums which suggest Apparmor and libvirtd are in conflict. Solution seemed to be to disable Apparmor. Apparmor does not seem installed though.










share|improve this question
























  • Where is the virtual host installed?
    – Christopher Angulo-Bertram
    Jun 7 '16 at 20:48










  • On a local server. Not a cloud setup.
    – Guest
    Jun 8 '16 at 9:18










  • Can you add the exact error message you are getting?
    – Christopher Angulo-Bertram
    Jun 8 '16 at 16:04










  • Sorry, I was not seeing the trees due to the forest. Never mind my last comment.
    – Christopher Angulo-Bertram
    Jun 8 '16 at 16:06










  • Better comment, have you tried this answer? askubuntu.com/questions/466292/virt-manager-cant-connect-to-xen
    – Christopher Angulo-Bertram
    Jun 8 '16 at 16:15













up vote
3
down vote

favorite









up vote
3
down vote

favorite











Using Virt-Manager 1.2.1 on 14.04. / Xen 4.4 from repos. Cannot create VM machine because this error crops up on virt-manager.



This is after editing /etc/xen/xend-config.sxp to allow virt-manager to work and restarting libvirt and xen services.



Closest clue is from the OpenSuse forums which suggest Apparmor and libvirtd are in conflict. Solution seemed to be to disable Apparmor. Apparmor does not seem installed though.










share|improve this question















Using Virt-Manager 1.2.1 on 14.04. / Xen 4.4 from repos. Cannot create VM machine because this error crops up on virt-manager.



This is after editing /etc/xen/xend-config.sxp to allow virt-manager to work and restarting libvirt and xen services.



Closest clue is from the OpenSuse forums which suggest Apparmor and libvirtd are in conflict. Solution seemed to be to disable Apparmor. Apparmor does not seem installed though.







14.04 virtualization xen virt-manager






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jun 8 '16 at 9:22









David Foerster

27.5k1363108




27.5k1363108










asked Jun 7 '16 at 20:47









Guest

2613




2613












  • Where is the virtual host installed?
    – Christopher Angulo-Bertram
    Jun 7 '16 at 20:48










  • On a local server. Not a cloud setup.
    – Guest
    Jun 8 '16 at 9:18










  • Can you add the exact error message you are getting?
    – Christopher Angulo-Bertram
    Jun 8 '16 at 16:04










  • Sorry, I was not seeing the trees due to the forest. Never mind my last comment.
    – Christopher Angulo-Bertram
    Jun 8 '16 at 16:06










  • Better comment, have you tried this answer? askubuntu.com/questions/466292/virt-manager-cant-connect-to-xen
    – Christopher Angulo-Bertram
    Jun 8 '16 at 16:15


















  • Where is the virtual host installed?
    – Christopher Angulo-Bertram
    Jun 7 '16 at 20:48










  • On a local server. Not a cloud setup.
    – Guest
    Jun 8 '16 at 9:18










  • Can you add the exact error message you are getting?
    – Christopher Angulo-Bertram
    Jun 8 '16 at 16:04










  • Sorry, I was not seeing the trees due to the forest. Never mind my last comment.
    – Christopher Angulo-Bertram
    Jun 8 '16 at 16:06










  • Better comment, have you tried this answer? askubuntu.com/questions/466292/virt-manager-cant-connect-to-xen
    – Christopher Angulo-Bertram
    Jun 8 '16 at 16:15
















Where is the virtual host installed?
– Christopher Angulo-Bertram
Jun 7 '16 at 20:48




Where is the virtual host installed?
– Christopher Angulo-Bertram
Jun 7 '16 at 20:48












On a local server. Not a cloud setup.
– Guest
Jun 8 '16 at 9:18




On a local server. Not a cloud setup.
– Guest
Jun 8 '16 at 9:18












Can you add the exact error message you are getting?
– Christopher Angulo-Bertram
Jun 8 '16 at 16:04




Can you add the exact error message you are getting?
– Christopher Angulo-Bertram
Jun 8 '16 at 16:04












Sorry, I was not seeing the trees due to the forest. Never mind my last comment.
– Christopher Angulo-Bertram
Jun 8 '16 at 16:06




Sorry, I was not seeing the trees due to the forest. Never mind my last comment.
– Christopher Angulo-Bertram
Jun 8 '16 at 16:06












Better comment, have you tried this answer? askubuntu.com/questions/466292/virt-manager-cant-connect-to-xen
– Christopher Angulo-Bertram
Jun 8 '16 at 16:15




Better comment, have you tried this answer? askubuntu.com/questions/466292/virt-manager-cant-connect-to-xen
– Christopher Angulo-Bertram
Jun 8 '16 at 16:15










1 Answer
1






active

oldest

votes

















up vote
1
down vote













Maybe this will work. Yet to try.



So it looks like there is a need to add the following to a file named usr.sbin.libvirtd. In commandline, updatedb (sudo updatedb) and then use locate to find that file (locate usr.sbin.libvirtd).



Edit it with gedit or nano or vi or another applicable text editor



Under these lines:



/lib/udev/scsi_id PUx,
/lib/udev/scsi_id PUx,
/usr/lib/xen-common/bin/xen-toolstack PUx,


Add:



/usr/lib/xen-*/bin/pygrub PUx,


Taken by and large from:



https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1326003/comments/2






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',
    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%2f784134%2fhow-to-fix-error-libxenlight-failed-to-create-a-new-domain%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote













    Maybe this will work. Yet to try.



    So it looks like there is a need to add the following to a file named usr.sbin.libvirtd. In commandline, updatedb (sudo updatedb) and then use locate to find that file (locate usr.sbin.libvirtd).



    Edit it with gedit or nano or vi or another applicable text editor



    Under these lines:



    /lib/udev/scsi_id PUx,
    /lib/udev/scsi_id PUx,
    /usr/lib/xen-common/bin/xen-toolstack PUx,


    Add:



    /usr/lib/xen-*/bin/pygrub PUx,


    Taken by and large from:



    https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1326003/comments/2






    share|improve this answer



























      up vote
      1
      down vote













      Maybe this will work. Yet to try.



      So it looks like there is a need to add the following to a file named usr.sbin.libvirtd. In commandline, updatedb (sudo updatedb) and then use locate to find that file (locate usr.sbin.libvirtd).



      Edit it with gedit or nano or vi or another applicable text editor



      Under these lines:



      /lib/udev/scsi_id PUx,
      /lib/udev/scsi_id PUx,
      /usr/lib/xen-common/bin/xen-toolstack PUx,


      Add:



      /usr/lib/xen-*/bin/pygrub PUx,


      Taken by and large from:



      https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1326003/comments/2






      share|improve this answer

























        up vote
        1
        down vote










        up vote
        1
        down vote









        Maybe this will work. Yet to try.



        So it looks like there is a need to add the following to a file named usr.sbin.libvirtd. In commandline, updatedb (sudo updatedb) and then use locate to find that file (locate usr.sbin.libvirtd).



        Edit it with gedit or nano or vi or another applicable text editor



        Under these lines:



        /lib/udev/scsi_id PUx,
        /lib/udev/scsi_id PUx,
        /usr/lib/xen-common/bin/xen-toolstack PUx,


        Add:



        /usr/lib/xen-*/bin/pygrub PUx,


        Taken by and large from:



        https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1326003/comments/2






        share|improve this answer














        Maybe this will work. Yet to try.



        So it looks like there is a need to add the following to a file named usr.sbin.libvirtd. In commandline, updatedb (sudo updatedb) and then use locate to find that file (locate usr.sbin.libvirtd).



        Edit it with gedit or nano or vi or another applicable text editor



        Under these lines:



        /lib/udev/scsi_id PUx,
        /lib/udev/scsi_id PUx,
        /usr/lib/xen-common/bin/xen-toolstack PUx,


        Add:



        /usr/lib/xen-*/bin/pygrub PUx,


        Taken by and large from:



        https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1326003/comments/2







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Sep 27 at 11:07









        abu_bua

        3,15081023




        3,15081023










        answered Jul 3 '16 at 19:15









        Guest

        2613




        2613






























            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%2f784134%2fhow-to-fix-error-libxenlight-failed-to-create-a-new-domain%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 to change which sound is reproduced for terminal bell?

            Can I use Tabulator js library in my java Spring + Thymeleaf project?

            Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents