Latest LXC templates for common Linux distributions?

Discussion in 'What Virtual Appliances do you want to see?' started by chronos, Feb 6, 2016.

  1. chronos

    chronos Member

    Joined:
    Apr 11, 2009
    Messages:
    54
    Likes Received:
    0
    Where we can download or how we can create newer LXC templates for Linux distributions like Ubuntu, Debian, Fedora, Centos, Archlinux, Opensuse and others? They seems to be supported by LXC as they have basic templates scripts in /usr/share/lxc/templates.

    At least I tested Ubuntu 15.10 and it works but there is no template available for download so one have to install Ubuntu 15.04 first and then perform do-release-upgrade. And this is not really quick process.

    Previously OpenVZ templates was possible to download from openvz web. But now with LXC there is no such source except standard templates.

    There is something like DAB http://pve.proxmox.com/wiki/Debian_Appliance_Builder but it seems pretty complicated process. Also if anybody already created for example Ubuntu 15.10 template then maybe one can share precreated template to others. But there is nothing like PVE LXC templates archive.

    So what is best way to get precreated template like Ubuntu 15.10?
     
  2. dietmar

    dietmar Proxmox Staff Member
    Staff Member

    Joined:
    Apr 28, 2005
    Messages:
    16,247
    Likes Received:
    276
    I just uploaded a template for ubuntu 15.10. Please run

    # pveam update

    After that it should be available for download (on the GUI).

    Or you can download it manually from:

    http://download.proxmox.com/images/system/
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. chronos

    chronos Member

    Joined:
    Apr 11, 2009
    Messages:
    54
    Likes Received:
    0
    Thanks for updated template. I downloaded it manually as "pveam update" didn't have expected effect.
    But this didn't really answer my question. As OpenVZ templates gave as some independence to PVE. But now PVE needs special "handcrafted" templates using DAB tool. I don't know if there is anything like standard LXC templates. Creating container in Ubuntu is done by installing packages from repository using template scripts. It seems that PVE easy this process by unpacking this files from single archive file with combination of running post-install or container run script. But then availability of standard containers is another problem.
     
  4. dietmar

    dietmar Proxmox Staff Member
    Staff Member

    Joined:
    Apr 28, 2005
    Messages:
    16,247
    Likes Received:
    276
    You can also use standard LXC images:

    https://images.linuxcontainers.org/images/
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. chronos

    chronos Member

    Joined:
    Apr 11, 2009
    Messages:
    54
    Likes Received:
    0
    Well, after all there are such templates. I tried to find them on this official web https://linuxcontainers.org/ but there is no visible link or information where to find them. I will check later if they are really usable directly without any fine tuning.

    Anyway, thanks for this URL.
     
  6. setsunakawa

    setsunakawa New Member

    Joined:
    Feb 15, 2016
    Messages:
    2
    Likes Received:
    0
    I want to use linuxcontainers xenial template but I get :
    TASK ERROR: unsupported ubunt version '16.04'
    How to override this? It works fine in lxc so it should work with proxmox :(
     
  7. setsunakawa

    setsunakawa New Member

    Joined:
    Feb 15, 2016
    Messages:
    2
    Likes Received:
    0
    I've found a way. I've added :
    Code:
    '16.04' => 1,
    in /usr/share/perl5/PVE/LXC/Setup/Ubuntu.pm
     
  8. Jean-Paul van Hamond

    Joined:
    Jan 20, 2014
    Messages:
    5
    Likes Received:
    0
    At this moment I have the same problem with the Oracle 6.5 LXC templates.

    At the creation proces of the CT I get the following message:
    TASK ERROR: unable to detect OS disribution

    ps. also look at the typo in the error message ;)
     
  9. mattlach

    mattlach Member

    Joined:
    Mar 23, 2016
    Messages:
    145
    Likes Received:
    12
    Why on earth would anyone run a Non-LTS Ubuntu, especially on a server?

    I'm still installing 14.04LTS now even after the 16.04LTS release until 16.04 has been out long enough that I become comfortable with that it is stable enough for server use.

    There should be no reason for any Ubuntu templates other than LTS releases.
     
  10. chronos

    chronos Member

    Joined:
    Apr 11, 2009
    Messages:
    54
    Likes Received:
    0
    There are plenty of reasons. For example I have also xrdp remote desktop servers where to have latest version of many applications is important. Unfortunately Ubuntu doesn't have rolling updates except for selected applications like Firefox. So latest ubuntu for desktop is really good choice. Another reason would be for example to have latest applications like PHP 7 which was released just before current LTS version but if it would be provided for example in 16.10 then it may be good reason to updated to non-LTS to not wait for 2 years. You can also install PHP 7 packages manually but it is nice if they are available from official repositories.

    It also depends if such server is for critical or non-critical purpose and needs or doesn't need cutting edge technology. It could be competitive advantage to have latest software (not two years old software).
    Or you can just test new features to be prepared for next LTS release.
    Also for physical server one may need to use latest release with new Linux kernel which support particular hardware or feature. This is not important with container virtualization where kernel have fixed version.

    So I have few VPS servers with LTS only Ubuntu and some with latest non-LTS. Also I use non-LTS releases for my desktops to have latest stable software.
    For customers VPS I would suggest to use LTS. There will be less work and problems with upgrades.
     
  11. mattlach

    mattlach Member

    Joined:
    Mar 23, 2016
    Messages:
    145
    Likes Received:
    12

    That is interesting. I've never run into anything server based I couldn't do with 14.04LTS, but I guess everyone's needs are different.

    The only application I've ever run into where a newer than LTS distribution made sense was in video playback on integrated intel graphics chipsets, where a combination of the latest kernel, Xserver, mesa drivers, vaapi drivers and such made a hige difference for haswell based CPU's, but I've never done anything like that on my server.

    Even on my desktop I run Linux Mint 17.3 Cinnamon Edition, which is based on Ubuntu 14.04 LTS.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice