ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    C2: Insanely Affordable x86-64 Servers

    Scheduled Pinned Locked Moved IT Discussion
    76 Posts 9 Posters 15.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      Alex Sage
      last edited by

      LXC or LXD?

      scottalanmillerS 1 Reply Last reply Reply Quote 0
      • scottalanmillerS
        scottalanmiller @Alex Sage
        last edited by

        @aaronstuder said:

        LXC or LXD?

        LXD is an LXC interface.

        https://linuxcontainers.org/

        stacksofplatesS 1 Reply Last reply Reply Quote 1
        • A
          Alex Sage
          last edited by Alex Sage

          With containers I might not need nearly as much RAM 🙂

          1 Reply Last reply Reply Quote 0
          • stacksofplatesS
            stacksofplates @scottalanmiller
            last edited by

            @scottalanmiller said:

            @aaronstuder said:

            LXC or LXD?

            LXD is an LXC interface.

            https://linuxcontainers.org/

            Ubuntu is working on live migration with LXD. That will be awesome.

            A 1 Reply Last reply Reply Quote 0
            • A
              Alex Sage @stacksofplates
              last edited by

              That will be awesome! How do you backup containers?

              stacksofplatesS 1 Reply Last reply Reply Quote 0
              • stacksofplatesS
                stacksofplates @Alex Sage
                last edited by

                @aaronstuder said:

                That will be awesome! How do you backup containers?

                Just tar the container folder. You can also do file level backups of the containers. LXC by default stores everything in /var/lib/lxc/ so if you want to restore a file to container1 you could just cp it back to /var/lib/lxc/container1/root/pathtofolder/

                A 1 Reply Last reply Reply Quote 0
                • A
                  Alex Sage @stacksofplates
                  last edited by

                  @johnhooks Can I do that with the containers running?

                  stacksofplatesS 1 Reply Last reply Reply Quote 0
                  • A
                    Alex Sage
                    last edited by

                    Can I run different Distros in containers or just the same as the host?

                    stacksofplatesS 1 Reply Last reply Reply Quote 0
                    • stacksofplatesS
                      stacksofplates @Alex Sage
                      last edited by

                      @aaronstuder said:

                      @johnhooks Can I do that with the containers running?

                      Which file level restore or using tar?

                      A 1 Reply Last reply Reply Quote 0
                      • stacksofplatesS
                        stacksofplates @Alex Sage
                        last edited by

                        @aaronstuder said:

                        Can I run different Distros in containers or just the same as the host?

                        You can run different distros. But I think you need to match systemd and init between host and container though.

                        A 1 Reply Last reply Reply Quote 0
                        • A
                          Alex Sage @stacksofplates
                          last edited by

                          @johnhooks tar. I assume rsync would work too?

                          stacksofplatesS 1 Reply Last reply Reply Quote 0
                          • stacksofplatesS
                            stacksofplates @Alex Sage
                            last edited by

                            @aaronstuder said:

                            @johnhooks tar. I assume rsync would work too?

                            I think you have to stop the container to do that. Ya rsync works also.

                            A 1 Reply Last reply Reply Quote 0
                            • A
                              Alex Sage @stacksofplates
                              last edited by

                              @johnhooks said:

                              You can run different distros. But I think you need to match systemd and init between host and container though.

                              How would check that? I am a huge CentOS7 fan 🙂

                              stacksofplatesS scottalanmillerS 2 Replies Last reply Reply Quote 0
                              • A
                                Alex Sage @stacksofplates
                                last edited by

                                @johnhooks should be super easy to write a script to stop containers, tar them and start them again.

                                stacksofplatesS 1 Reply Last reply Reply Quote 0
                                • stacksofplatesS
                                  stacksofplates @Alex Sage
                                  last edited by

                                  @aaronstuder said:

                                  @johnhooks said:

                                  You can run different distros. But I think you need to match systemd and init between host and container though.

                                  How would check that? I am a huge CentOS7 fan 🙂

                                  I know Ubuntu 15.10 is systemd, CentOS 7 is also systemd. So if you run a CentOS 7 host you can run Ubuntu 15.10 containers (what I'm doing for my XO container).

                                  A 1 Reply Last reply Reply Quote 0
                                  • stacksofplatesS
                                    stacksofplates @Alex Sage
                                    last edited by

                                    @aaronstuder said:

                                    @johnhooks should be super easy to write a script to stop containers, tar them and start them again.

                                    ya. I use Ansible, but you can script it also.

                                    A 1 Reply Last reply Reply Quote 0
                                    • A
                                      Alex Sage @stacksofplates
                                      last edited by

                                      @johnhooks said

                                      I know Ubuntu 15.10 is systemd, CentOS 7 is also systemd. So if you run a CentOS 7 host you can run Ubuntu 15.10 containers (what I'm doing for my XO container).

                                      I will be using Ubuntu as the host. CentOS7 as the guest 🙂

                                      stacksofplatesS 1 Reply Last reply Reply Quote 1
                                      • stacksofplatesS
                                        stacksofplates @Alex Sage
                                        last edited by

                                        @aaronstuder said:

                                        @johnhooks said

                                        I know Ubuntu 15.10 is systemd, CentOS 7 is also systemd. So if you run a CentOS 7 host you can run Ubuntu 15.10 containers (what I'm doing for my XO container).

                                        I will be using Ubuntu as the host. CentOS7 as the guest 🙂

                                        Ya that works also

                                        1 Reply Last reply Reply Quote 0
                                        • A
                                          Alex Sage @stacksofplates
                                          last edited by

                                          @johnhooks said

                                          ya. I use Ansible, but you can script it also.

                                          I need to learn Ansible 🙂

                                          stacksofplatesS 1 Reply Last reply Reply Quote 0
                                          • stacksofplatesS
                                            stacksofplates @Alex Sage
                                            last edited by

                                            @aaronstuder said:

                                            @johnhooks said

                                            ya. I use Ansible, but you can script it also.

                                            I need to learn Ansible 🙂

                                            Ya it's awesome. Makes everything so much easier. 🙂

                                            1 Reply Last reply Reply Quote 1
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 2 / 4
                                            • First post
                                              Last post