In virtualbox, I can't access the dvd drive to install a guest host












0















I have installed a fresh copy of Ubuntu Server 12.04 and VirtualBox 4.3. I have set up a VM called "MediaServer" and tried to start it. I then get the following error:



Cannot open host device '/dev/sr0' for readonly access.
Check the permissions of that device ('/bin/ls -l /dev/sr0'):
Most probably you need to be member of the device group.
Make sure that you logout/login after changing the group settings of the current user (VERR_ACCESS_DENIED)


I have looked all over the Internet and have been unable to find a solution. Using Webmin, I tried changing the group settings so that my user name was in the vboxusers group, but that did not work either. I tried various other changes in group settings and none of them worked.



Also, I tried rebooting the server after the changes and that didn't work either.



I have been following a guide on how to set up an Ubuntu server from the website "linuxhomeserverguide.com" and when it came to the section where you could finally set up your first virtual machine, I am stumped. I would really appreciate it if someone could help me.










share|improve this question




















  • 1





    Is your user in the group cdrom?

    – Takkat
    Nov 3 '13 at 22:30
















0















I have installed a fresh copy of Ubuntu Server 12.04 and VirtualBox 4.3. I have set up a VM called "MediaServer" and tried to start it. I then get the following error:



Cannot open host device '/dev/sr0' for readonly access.
Check the permissions of that device ('/bin/ls -l /dev/sr0'):
Most probably you need to be member of the device group.
Make sure that you logout/login after changing the group settings of the current user (VERR_ACCESS_DENIED)


I have looked all over the Internet and have been unable to find a solution. Using Webmin, I tried changing the group settings so that my user name was in the vboxusers group, but that did not work either. I tried various other changes in group settings and none of them worked.



Also, I tried rebooting the server after the changes and that didn't work either.



I have been following a guide on how to set up an Ubuntu server from the website "linuxhomeserverguide.com" and when it came to the section where you could finally set up your first virtual machine, I am stumped. I would really appreciate it if someone could help me.










share|improve this question




















  • 1





    Is your user in the group cdrom?

    – Takkat
    Nov 3 '13 at 22:30














0












0








0








I have installed a fresh copy of Ubuntu Server 12.04 and VirtualBox 4.3. I have set up a VM called "MediaServer" and tried to start it. I then get the following error:



Cannot open host device '/dev/sr0' for readonly access.
Check the permissions of that device ('/bin/ls -l /dev/sr0'):
Most probably you need to be member of the device group.
Make sure that you logout/login after changing the group settings of the current user (VERR_ACCESS_DENIED)


I have looked all over the Internet and have been unable to find a solution. Using Webmin, I tried changing the group settings so that my user name was in the vboxusers group, but that did not work either. I tried various other changes in group settings and none of them worked.



Also, I tried rebooting the server after the changes and that didn't work either.



I have been following a guide on how to set up an Ubuntu server from the website "linuxhomeserverguide.com" and when it came to the section where you could finally set up your first virtual machine, I am stumped. I would really appreciate it if someone could help me.










share|improve this question
















I have installed a fresh copy of Ubuntu Server 12.04 and VirtualBox 4.3. I have set up a VM called "MediaServer" and tried to start it. I then get the following error:



Cannot open host device '/dev/sr0' for readonly access.
Check the permissions of that device ('/bin/ls -l /dev/sr0'):
Most probably you need to be member of the device group.
Make sure that you logout/login after changing the group settings of the current user (VERR_ACCESS_DENIED)


I have looked all over the Internet and have been unable to find a solution. Using Webmin, I tried changing the group settings so that my user name was in the vboxusers group, but that did not work either. I tried various other changes in group settings and none of them worked.



Also, I tried rebooting the server after the changes and that didn't work either.



I have been following a guide on how to set up an Ubuntu server from the website "linuxhomeserverguide.com" and when it came to the section where you could finally set up your first virtual machine, I am stumped. I would really appreciate it if someone could help me.







virtualbox






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 28 '14 at 23:14









Braiam

51.6k20136220




51.6k20136220










asked Nov 3 '13 at 22:02









user211062user211062

111




111








  • 1





    Is your user in the group cdrom?

    – Takkat
    Nov 3 '13 at 22:30














  • 1





    Is your user in the group cdrom?

    – Takkat
    Nov 3 '13 at 22:30








1




1





Is your user in the group cdrom?

– Takkat
Nov 3 '13 at 22:30





Is your user in the group cdrom?

– Takkat
Nov 3 '13 at 22:30










1 Answer
1






active

oldest

votes


















0














Your user must be in the cdrom group.



sudo usermod -a -G cdrom $USER


Restart the system and try again.






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%2f370681%2fin-virtualbox-i-cant-access-the-dvd-drive-to-install-a-guest-host%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









    0














    Your user must be in the cdrom group.



    sudo usermod -a -G cdrom $USER


    Restart the system and try again.






    share|improve this answer




























      0














      Your user must be in the cdrom group.



      sudo usermod -a -G cdrom $USER


      Restart the system and try again.






      share|improve this answer


























        0












        0








        0







        Your user must be in the cdrom group.



        sudo usermod -a -G cdrom $USER


        Restart the system and try again.






        share|improve this answer













        Your user must be in the cdrom group.



        sudo usermod -a -G cdrom $USER


        Restart the system and try again.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 28 '14 at 23:16









        BraiamBraiam

        51.6k20136220




        51.6k20136220






























            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.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f370681%2fin-virtualbox-i-cant-access-the-dvd-drive-to-install-a-guest-host%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

            數位音樂下載

            When can things happen in Etherscan, such as the picture below?

            格利澤436b