/srv/irclogs.ubuntu.com/2018/03/03/#ubuntu-server.txt

CheckmateHey i want make a backup of a folder00:49
Checkmatei want compress all folder with small size i dont know how to do it with 7zip00:49
dpb17z a filename.7z directory/path01:29
eraserpencilHey guys04:23
eraserpencilCould someone share with me why an Nginx reverse proxy server coupled with an Apache web server is more popular than the vice versa?04:24
halvorsIs there an recommended Web UI interface for LXD?04:43
nacchalvors: not afaik04:44
halvorsAlso when i create an LXD container in Ubuntu, i have to choose an image. Does the whole OS get runned inside like a VM?04:55
nacchalvors: no, there's no kernel04:57
nacchalvors: you may want to read the LXD documentation and/or the difference between containers and VMs04:58
halvorsnacc: Thanks did that. But i wounder how i can run Ubuntu 16.04 inside the LXD container on the ubuntu 18.04 daily-build.05:02
halvorsDo all the libraries etc exist on both the host and on the container?05:03
halvorsI get that kernel is only on host.05:03
nacchalvors: you are runing a 16.04 userspace basically05:06
nacc(in the container)05:06
chamarplaying with LXD too... fun so far.05:16
halvorsnacc: Is there a way to only export the diff i'vem made to a container? So basically just files that i've changed?05:23
chamarI think there's a snapshot feature in LXD05:23
jdris LXD a bare metal dilly?05:27
jdror like vagrant?05:27
naccjdr: LXD is a container hypervisor05:28
halvorschamar: That can be used to export only the diff?05:31
chamarhalvors, My understand is that it will take a "snapshot" (an image at that point in time) to which you could revert back to.05:31
halvorschamar: Yeah, but what i was interested in was to get the diff from the initial image, to easily export my configuration.05:32
chamarhalvors, gotcha.. no idea if such feature exists.. still having a first look at it too05:33
halvors:)05:33
chamarReason being, my lab runs out of mem with standard VM :/05:33
halvorsI see.05:36
jdrmind......blown05:36
jdrjust watched a youtube vid on it05:36
chamarand what blown your mind?05:37
jdrthey were doing simple creating of the vm's05:37
jdrI am use to hardware based vm's05:37
jdrnot software05:37
jdrwhat is shared with the root container?05:38
chamarressources for sure05:39
chamaryou can limit the usage of your LXD container, but you don't have to assign how much memory you need for example05:39
jdrI would want to set a limit of how much the vm's could use....not so much on a per vm, but as a pool05:41
chamarI quote: We don’t support resource limits pooling where a limit would be shared by a group of containers, there is simply no good way to implement something like that with the existing kernel APIs.05:42
chamarLink: https://stgraber.org/2016/03/26/lxd-2-0-resource-control-412/05:43
halvorsHow can i upgrade a container from ubuntu 14.04 to 16.04. Is there an elegant way to do that?05:43
chamarNever did it, but probably do-release-upgrade would works05:44
chamar(same as a standard VM / bare metal install)05:44
halvorschamar: Yeah, but what about the metadata then?05:54
chamarmetadata?06:04
chamarhalvors, https://github.com/lxc/lxd/issues/387406:09
halvorsAnyone knows why sudo "snap install conjure-up --classic" is not working? cannot run the command afterwards.06:10
chamartry to logout / login maybe?06:11
chamar(had mixed result with conjure-up so didn't had a deep look into it)06:11
halvorschamar: Thanks.06:13
chamarnp06:14
chamarbtw, I just updated a LXD container with `do-release-update` and it seems to work fine.06:21
=== devil is now known as Guest38645
=== Guest38645 is now known as devil__
=== devil__ is now known as devilz
=== devilz is now known as devil__
=== devil__ is now known as devil_
halvorschamar: But what about the metadata, does it update automagically?06:31
=== devil_ is now known as devilz
chamarhalvors, What do you mean by metadata?06:31
halvorschamar: do "lxc info "containername"06:31
halvorsor config06:31
halvorsdont remember.06:32
halvorsBut it says what version of ubuntu it is.06:32
chamarlet me see06:32
chamarlxc info doesn't give anything related to the image / version06:33
halvorsYou may be right, i cannot se the version.06:33
halvorsYeah.06:33
halvorsThanks, so basically just like any other vm then :)06:33
chamarnot sure if it keeps tracks of it .. but I get what you mean by metadata now ;)06:34
chamarhum. I think it will only how the "BASE IMAGE", which is the initial image..06:36
chamarI'm out.  good night all.06:37
halvorsgood night :)06:47
tekkare ubuntu dev's aware that when unattended upgrades is turned on /boot can become full pretty quickly and you get into a terrible apt cycle of not being able to resolve the issue without manual intervention?11:55
ikoniaboot can become full if you dont size it appropriately12:16
ikoniait's up to you to either a.) size your file system in line with your needs b.) put house keeping in place12:16
tekki'm aware12:22
tekkbut12:22
tekki'm assuming unattended upgrades is popular with people who want no fuss and go with default partitioning schema etc12:22
tekkin which case they'll be upside down12:22
andolWas a while since I ran the server iso installer, but isn't the recommended choice (if you want no fuss) to just go with one big partition?12:29
ikoniaI'm not aware of the default partition table having a seperate /boot12:33
tomreynikonia: i think it does when you choose automatic partitioning with lvm, or with lvm and dmcrypt-luks13:07
ikoniait has to if you chose crypt13:13
ikoniaor it can't boot13:13
ikoniabut....if you chose cyrpt you should have a basic enough understanding to be able to manage your box in the event of automated upgrades13:14
phormulatehey all, using xenial, and it has this tendancy to overwrite my /etc/network/interfaces... I have no network manager installed and it is driving me nuts trying to find the application modifying it, any ideas?13:25
TJ-phormulate: when does the file get written to, and what gets written into it?13:26
phormulateat boot, just a standard dhcp of interfaces/alias13:27
TJ-phormulate: are you sure it's not the other way around, as in it's returning to a default file because any changes you made weren't permanently written to the underlying device?13:29
TJ-phormulate: is it Bare Metal or a Virtual Machine ?13:30
phormulatevps, rolled it using debootstrap13:30
phormulaterw root13:30
phormulateI'm not used to ubuntu's general conventions, but hell, I needed an easier route to lxd than debian offered at the time13:31
TJ-what kind of VPS? KVM with full disk boot process (boots  raw disk image containing a boot loader) ?13:31
ikonianothing will touch /etc/network/interface file13:31
TJ-phormulate: LXD? so this is a container not a VM then13:32
phormulatethe ubuntu is on the vps "metal" mentioning lxd isn't helpful, let13:33
phormulate's forget I said lxd13:33
ikoniait does matter though13:33
TJ-phormulate: I matters very much; is this an LXD container ?13:33
phormulatexenial running on vps as host to a few lxd containers... lxd does nothing to alter my /etc/networking/interfaces13:34
phormulateyes, kvm13:34
ikonianothing "should" touch that file, however a container, with an isolated file system being fed from the hosts services it does matter13:35
phormulateubuntu is not running within a container, it is running under kvm13:35
ikoniaso you're running a VM guest, thats running containers under it13:35
phormulateyes13:35
phormulateit is very odd, because it doesn't always get wiped on reboot13:36
TJ-phormulate: check it's persistent; look at the "ephemeral:" value with "lxc config show <name>"13:37
phormulatetj, lxc/d has no part of modifying my ubuntu setup13:38
tomreynikonia: responding to your statement that you cannot have FDE without /boot: well you could do this https://wiki.archlinux.org/index.php/Dm-crypt/Encrypting_an_entire_system#Encrypted_boot_partition_.28GRUB.29 (and then /boot can just reside on / if you don't need LVM)13:38
tomreyn(you'd still need a plain ESP / biosboot)13:39
ikoniatomreyn: that's not supported on ubuntu's installer though13:39
TJ-You can have  /boot/ as LUKS+LVM, or LVM+LUKS13:39
tomreynright ikonia13:40
phormulateanother wonderful gem I ran in to, systemd "Error on shutdown: Failed deactivating swap"13:40
rh10guys, what's the best way to install php 7.1 to 16.04 LTS?16:03
ikonia7.1 isn't in the repos is it ?16:06
ikoniaI thought it was 7.016:07
TJ-rh10: I'd suggest creating a 17.10 container (using LXD) where you can easily install it16:08
rh10ikonia, yep, there is 7.0 in the repo16:08
rh10ikonia, there is no 7.1 in official repo16:08
rh10TJ-, got it. can i work with it as a localhost? i mean - files will be in my local system16:10
rh10?16:10
TJ-rh10: LXD is treated like an /almost/ virtual machine (but shares kernel with host), so you could install a web server and edit a site /inside/ the container and connect to it's HTTP server on port 80 - the container will have an IP address16:13
rh10TJ-, got it, thanks!16:14
TJ-rh10: so you can do "lxc launch ubuntu:17.10 mycontainername"16:14
TJ-rh10: then "lxc start mycontainername" then to get a shell inside it "lxc exec mycontainername /bin/bash"16:15
TJ-rh10: at whch point you use all the regular package management commands, e.g. "apt install php7.1 apache2 ..."16:16
rh10TJ-, quite cool! thx!16:16
TJ-rh10: and if you want to you can map a host file-system directory into the container to make editing the files on the host transparent to there being a container16:16
TJ-rh10: this next step is not quite correct for sharing but gives you a clue what to research: 'lxc config device add mycontainername sharedtmp disk path=/path/to/share/in/guest source=/path/to/share/from/host'16:19
TJ-rh10: there's some permissions issues to deal with for the above share command to work correctly (with unprivileged containers)16:19
rh10TJ-, awesome!16:19
rh10TJ-, another question here. which way better to deploy code from such kind of container to external webserver into the internet?16:21
rh10how to handle it correctly?16:21
TJ-rh10: well, if you're sharing a host directory which you're mapping into the container web-server's document root, then you'd just copy the host's directory heirachy to the other server16:22
TJ-rh10: e.g. if you're mapping $HOME/public_html to container's /var/www/  then you'd just rsync/zip $HOME/public_html16:23
rh10TJ-, got it. but can i use git in container? or how can i add git repo in that scheme?16:24
TJ-rh10:  or if using git for version control, you can set up your external server as a git remote and use 'git push external'16:24
rh10TJ-, thanks a lot for support!16:24
TJ-rh10: in my example $HOME/public_html would be your git base dir16:24
=== Bilge- is now known as Bilge
phibsgot an issue where i'm creating an ubuntu 18 initrd with debirf and when it does unxz | cpio -i, cpio is NOT extracting /sbin/init even though it is in the archive.  Anyone seen anything like this ?23:14

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!