LXD(LXC) image directory mounted read-only(ro)

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I installed LXD on ubuntu 16.04 64bit and launched one ubuntu 16.04 container.



I just want to change apt repositories.



So I modified apt repository(/etc/apt/sources.list) and copy container.



When I start the copied container server that file was reset.



(/etc/apt/sources.list )


So I try to change image's original file.



(/var/lib/images/image_dir/rootfs/etc/apt/sources.list)


But that directory was mounted 'ro'.



(lxd/images/6993a2a71664695810f0f84d063ec073e6d1d52cca78da05c4d8342cbaceac57 on /var/lib/lxd/images/6993a2a71664695810f0f84d063ec073e6d1d52cca78da05c4d8342cbaceac57.zfs type zfs (ro,relatime,xattr,noacl))


How do I modify lxd images file?







share|improve this question


























    up vote
    0
    down vote

    favorite












    I installed LXD on ubuntu 16.04 64bit and launched one ubuntu 16.04 container.



    I just want to change apt repositories.



    So I modified apt repository(/etc/apt/sources.list) and copy container.



    When I start the copied container server that file was reset.



    (/etc/apt/sources.list )


    So I try to change image's original file.



    (/var/lib/images/image_dir/rootfs/etc/apt/sources.list)


    But that directory was mounted 'ro'.



    (lxd/images/6993a2a71664695810f0f84d063ec073e6d1d52cca78da05c4d8342cbaceac57 on /var/lib/lxd/images/6993a2a71664695810f0f84d063ec073e6d1d52cca78da05c4d8342cbaceac57.zfs type zfs (ro,relatime,xattr,noacl))


    How do I modify lxd images file?







    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I installed LXD on ubuntu 16.04 64bit and launched one ubuntu 16.04 container.



      I just want to change apt repositories.



      So I modified apt repository(/etc/apt/sources.list) and copy container.



      When I start the copied container server that file was reset.



      (/etc/apt/sources.list )


      So I try to change image's original file.



      (/var/lib/images/image_dir/rootfs/etc/apt/sources.list)


      But that directory was mounted 'ro'.



      (lxd/images/6993a2a71664695810f0f84d063ec073e6d1d52cca78da05c4d8342cbaceac57 on /var/lib/lxd/images/6993a2a71664695810f0f84d063ec073e6d1d52cca78da05c4d8342cbaceac57.zfs type zfs (ro,relatime,xattr,noacl))


      How do I modify lxd images file?







      share|improve this question














      I installed LXD on ubuntu 16.04 64bit and launched one ubuntu 16.04 container.



      I just want to change apt repositories.



      So I modified apt repository(/etc/apt/sources.list) and copy container.



      When I start the copied container server that file was reset.



      (/etc/apt/sources.list )


      So I try to change image's original file.



      (/var/lib/images/image_dir/rootfs/etc/apt/sources.list)


      But that directory was mounted 'ro'.



      (lxd/images/6993a2a71664695810f0f84d063ec073e6d1d52cca78da05c4d8342cbaceac57 on /var/lib/lxd/images/6993a2a71664695810f0f84d063ec073e6d1d52cca78da05c4d8342cbaceac57.zfs type zfs (ro,relatime,xattr,noacl))


      How do I modify lxd images file?









      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 2 at 1:19

























      asked Apr 2 at 1:11









      Gooos

      12




      12

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          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: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );








           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f434940%2flxdlxc-image-directory-mounted-read-onlyro%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes










           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f434940%2flxdlxc-image-directory-mounted-read-onlyro%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Bahrain

          Postfix configuration issue with fips on centos 7; mailgun relay