/srv/irclogs.ubuntu.com/2018/05/14/#ubuntu-server.txt

=== JanC_ is now known as JanC
cpaelzergood morning05:32
lordievaderGood morning06:06
=== Aztec03 is now known as Panoptes
UDworkerHi, anyone can install docker-ce on ubuntu 18.04 ?07:37
UDworkerfrom deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable07:37
UDworkerI had the answer on the other channel, the package is not stable :(07:39
=== jelly-home is now known as jelly
goodi___I'm looking into user Subiquity via PXE and pressed - can anoyone point me to the variable names it accepts? e.g. for 16.04 it wsa url=http://somehost/preseed.cfg10:59
goodi___preseed ;-) not pressed10:59
cpaelzergoodi___: I thought it is not meant to be used hat way (old preseed still works)11:22
cpaelzergoodi___: but you can wrap the answers11:22
cpaelzersee https://ubuntuforums.org/showthread.php?t=239071011:22
goodi___cpaelzer: how do I wrap the answers? I found the https://github.com/CanonicalLtd/subiquity/blob/master/examples/answers.yaml and it looks so nice and clean vs the current preseed.cfg I use. How 'should' it be used? or is there now a better way to fully remote install machines>?11:24
=== beatzz_ is now known as beatzz
cpaelzergoodi___: #1 you can still use preseeds, #2 the link I had describes how to repack the squashfs (if you want to change the subiquity answers) #3 depending what you want to remote install maas/juju can help you11:37
cpaelzergoodi___: thanks that found answers.yaml nice and clean (were design points of subiquity), but IIRC remote/preconf install was not11:38
cpaelzergoodi___: OTOH you have to understand that this just generates a curtin yaml11:38
cpaelzerwhich is what subiquity uses, but also what maas uses11:38
cpaelzerso we circle back to either hacking something, or understanding the triplet of curtin/maas/cloud-init for this use case11:38
cpaelzergoodi___: some pointers https://readthedocs.org/projects/curtin/ http://cloudinit.readthedocs.io/en/latest/ https://maas.io/11:39
cpaelzersmoser: and cyphermox might have better pointers if you really want to go this way11:40
cpaelzercyphermox: was subiquity-preseed every a thing and I missed it?11:40
cpaelzers/every/ever/11:40
goodi___cpaelzer: thank you very much, missed the first link11:46
goodi___cpaelzer: so I read it like: build your own image that includes the answer.yml I need, and then do most of the installation via curtin/cloud-init if needed?11:49
goodi___does that make roughly sense?11:49
cpaelzergoodi___: if you insist on subiquity answers yes, but I think that is the wrong approach11:49
cpaelzerI can't decide which is the right approach for you, but subiquity answers only gets you subiquity loaded to generate a curtin yaml for you11:50
cpaelzerso I wonder IFF you really want to go that way, why not provide a curtin.yaml right away11:50
cpaelzerin all of this cloud-init is what you'd use initially to get the target doing what you want11:51
goodi___cpaelzer: I'm open for any solution that is simpler/fully unattended11:51
cpaelzerif you do that via pre-baked custom images or via external datasource is up to you11:51
cpaelzerhmm - simpler ...11:51
goodi___cpaelzer: prefered external datasource, but can I use subiquity and only provide a curtin yaml and get if unattended installed?11:52
cpaelzerhonestly, unless cyphermox / smoser beat me with better answers I think for "simpler" you could just stick with classic preseeds for now11:52
GargoyleHi All. I'm trying to get the MOTD section which shows how many packages can be updated (and which are security updates) from a 14.04 system. However it looks like /etc/update-motd.d/90-updates-available is no longer there. Just 91-release-upgrade. Is there any way to manually fetch this info (Need to produce a report for updates required on a bunch of servers). ?11:52
cpaelzerGargoyle: does "apt list --upgradable" work on 14.04 already ?11:52
Gargoyleyeah.11:53
goodi___cpaelzer: oki, will give it a try; the new one looks just so much nicer; esp. using yml over the current config files it a way nicer IMHO; I just don't really understand how to provide my own datasource/how it should look and if it's even possible todo unattended - but will dig11:53
cpaelzergoodi___: mass uses cloud-init/curtin to do its installs, so feel free to read through the latter and then see maas for one example how to integrate it11:54
goodi___I think I'm just missing the picture how Subiquity talks/work with curtin and then cloud-init ;-)11:54
Gargoylecpaelzer: So I can see all the packages that need an upgrade, but the count (especially the one that separated security updates) was just a nice short summary11:54
goodi___cpaelzer: I tried maas a bit, but I always run into issues regarding storage detection if it's not typical server hardware/without ipmi etc ;-)11:54
goodi___but good point - will look into it11:55
cpaelzerGargoyle: I still have /etc/update-motd.d/90-updates-available from update-notifier-common btw11:55
Gargoyleon 14.04 ?11:56
cpaelzerand (the last generated data) is in /var/lib/update-notifier/updates-available11:56
cpaelzerGargoyle: yes11:56
cpaelzerwell a contianer of 14.04 not updated for a few weeks11:56
cpaelzerlet me update if it is dropped11:56
Gargoylehmmm. guess these servers are not vanilla then. (They existed before "my time" here)11:57
cpaelzerupdated, not broken by an update11:57
GargoyleThanks cpaelzer. My /var/lib/update-notifier/ dir is empty. Don't really want to install anything on these servers to get a report. They are in production.12:01
GargoyleMost likely we'll provision 18.04 replacements and migrate the app across.12:01
GargoyleLets say I "apt upgrade" my staging server on a Monday, and deploy the app. On Wednesday QA come back with the thumbs up for deployment. What's the best strategy to make sure that when I run "apt upgrade" on production on Wednesday I get exactly the same packages I got on staging on the previous monday?12:24
cyphermoxcpaelzer: what is this about?12:54
cyphermoxcpaelzer: I think subiquity has some form of a preseed, but I'm not sure of the details -- I think it was more just some kind of logic somewhere so it could be automatically tested, not to do specific installs12:55
cyphermoxcpaelzer: what I was told some time ago was that the preseeding story for subiquity was to use MaaS12:55
cyphermox(but I think we still want to properly support preseeding somehow in subiquity, I just don't know if that's been done yet12:56
GargoyleI've found dpkg --get-selections based answers, but that doesn't seem to include package versions - just the names, so I assume any resulting target server could be a few minor revisions ahead on some packages depending on the time between getting the list from one server and installing it on another.12:59
cpaelzercyphermox: thanks, you confirmed my assumptions - and for official subiquity preseeding at least I haven't heard of it13:04
samba35i have configure tun/tap interface with ip command and tun/tap interface configure with openvsitch also  (ifconfig also show tun/tap interface) but i could not see tuntap interface with virt- manager on ubuntu 18.04 ,can some one please give some idea13:20
samba35i want to use that interface for internet (can i ?)13:21
samba35sorry exploreing  new thing13:21
rbasakahasenack: when you get in, would you like a HO to sync on nvdimm? I think it might be easier/quicker to discuss the outstanding points in person.13:24
rbasaks/person/realtime/13:24
cpaelzersamba35: to not seen it is a known issue13:27
cpaelzersamba35: libvirt can only manage devices that are handled through old ifupdown, but Ubuntu for a while migrated to networkd/NetrowkManager13:28
cpaelzersamba35: you'd not extra add a tun/tap to get the guest internet access13:28
cpaelzerI mean usually13:28
cpaelzerI haven't done so for years13:28
cpaelzereven in virt-manager just add an interface map it to the default net and that is it13:29
cpaelzerall else will be done by libvirt for you13:29
samba35cpaelzer, thank you .understood13:29
cpaelzersorry I mostly use libvirt through xmls/virsh so I can't lead you through virt-manager UI for that13:29
samba35reaily i need to learn more cmd base configuration part13:30
samba35but i stuck with passing parameter to guest or adding it to guest13:30
cpaelzerworst case that libvirt doesn't support just one extra arg you can add it there as raw qemu arg still13:31
cpaelzerhttps://libvirt.org/formatdomain.html13:31
cpaelzerand for all it supports you become agnostic to changing qemu versions and such13:31
cpaelzeras it will abstract it for you13:31
samba35ok ,thanks again13:32
samba35cpaelzer, can you please tell me after creating vm with virt-manager can i make changes /add NIC or VGA device to esixting guest with virsh ?13:35
ahasenackrbasak: hi13:35
ahasenackrbasak: I was thinking about making an MP this time13:35
ahasenackrbasak: base branch would be what you reviewed, and new branch would be my changes as a response13:36
cpaelzersamba35: virsh edit <guestname>13:36
cpaelzersamba35: look at the definition of one interface and you'll understand13:36
cpaelzersamba35: use the link I pasted above to understand what is not obvious13:36
samba35ok ,i tryed with edit part but it failed to boot guest (may be wrong fomation/editing )13:37
rbasakahasenack: I was under the impression I still owed you some responses?13:43
samba35still i am not able to understand why ubuntu 18.04 is using consuming  6 gb ram and i could not see it with top (top 1o process using 2 gb max )13:46
samba35can some one help me to dig into issuse13:47
samba35i am using on 18.0413:47
samba35i have only 1 windows guest with 2 gb many time it fail to load due to low pc.ram message13:48
ahasenackrbasak: that is true13:49
ahasenackthere is a mix13:50
ahasenackrbasak: https://hangouts.google.com/hangouts/_/canonical.com/standup-server13:51
samba35_sorry13:55
lordievadersamba35_: What is the output of 'free -m'?14:06
samba35_Mem:           7934        6268         294         244        1370        179914:06
samba35_Swap:          4095           0        409514:07
samba35_may be stupid quastio but i reaily fail to copy text from terminal in 18.04 with less effort14:10
tomreyn!paste14:10
ubottuFor posting multi-line texts into the channel, please use https://paste.ubuntu.com | To post !screenshots use https://imgur.com/ !pastebinit to paste directly from command line | Make sure you give us the URL for your paste - see also the channel topic.14:10
tomreyn!pastebinit14:11
ubottupastebinit is the command-line equivalent of !pastebin - Command output, or other text can be redirected to pastebinit, which then reports an URL containing the output - To use pastebinit, install the « pastebinit » package from a package manager - Simple usage: command | pastebinit14:11
samba35_sorry ,no i am trying to copy multiple lines with text but fail to copy them14:12
Gargoylesamba35_: got htop?14:13
samba35_yes14:13
Gargoylesort the list by mem%14:14
tomreyn"ps auxw | sort -nk6 | tail" should likst the most memory hungry processes14:14
samba35_tomreyn, this this syntex is correct or typo ?14:18
tomreynsamba35_: works here14:19
samba35_ok ,sorry14:20
GargoyleOn 32GB RAM I have, chrome 0.7%, /proc/self/exe 0.8% (??), atom 0.8%, atom 0.8^, chrome 0.9% + 1.0% + 1.1%, gnome-shell 1.1% and slack 1.2%14:20
samba35_seems gnome-shell is problem with many many entry with 240 mb each14:24
samba35_gnome  shell is use by user and gdm14:25
GargoyleI don't think it works like that. IIRC the "many entries" are child processes who all report the parents mem usage?14:25
samba35_is it becasuse of @reboot cron ?14:26
samba35_Gargoyle, sorry i did not get your point about paremnts mem usage14:27
samba35_there is only one terminal open /but even without opening terminal ( gnome-shell ?) usage is high14:28
samba35_english is not native :) (:14:29
Gargoylesamba35_: If you use htop, and put it in tree mode14:30
samba35_ok14:30
Gargoylesamba35_: Some of the entries are white, and some are green. The green ones always just report the exact same numbers as their parent white one (which not always the next white one above them in the list).14:31
GargoyleSince I literally have 100's of chrome processes all reporting 1GB usage, they can't all actually be using 1GB!14:32
samba35_deja-dup monitor is 96 g with virt is that ok ?14:36
samba35_using server as a desktop :) is that a problem ?14:38
GargoyleWhat do you have running?14:39
GargoyleAs in, main Apps?14:39
samba35_xchat ,terminal and firefox14:40
samba35_libvirt14:41
GargoyleNo vm's actually running at the mo?14:41
samba35_dpdk with 2048 m huge page14:42
samba35_yes not vm running14:42
GargoyleOK. So assuming that the memory is being managed properly, what's the actual issue you are having?14:43
samba35_8 gb ,HugePages_Free:     204814:45
samba35_is that you are asking  ?14:45
samba35_sorry14:45
samba35_8 gb total memory on system14:45
samba35_teamviewer  ok to you ?14:46
Gargoylesamba35_: If you are going to go through your entire process list and ask if it "looks ok to you", no-one is going to answer.14:46
GargoyleDid you say that the error is that a guest vm fails to start?14:48
samba35_yes becasue of pc ram14:48
Gargoylewhat version of windows are you trying to run14:49
samba35_windows 7 and 2 gb ram14:50
samba35_should i pastebin log14:50
GargoyleHave you tried giving it more?14:51
Gargoyleset the vm to 4 gig?14:51
samba35_ok let me try with 4gb14:52
samba35_https://pastebin.com/57xQBT1v14:53
=== Howie69_ is now known as Howie69
Gargoylesamba35_: Ahh ok.14:57
GargoyleAn error from qemu not inside the guest.14:58
ahasenackrbasak: would this be a Vcs-Browser url for a package in lp? https://code.launchpad.net/ubuntu/+source/sssd14:59
GargoyleYou are gonna need a bigger computer or a lighter desktop.14:59
cpaelzerahasenack: https://code.launchpad.net/ubuntu/+source/sssd/+git maybe?14:59
ahasenackhm14:59
ahasenackyeah, better, that one has cloning instructions15:00
Gargoyleoh.15:00
rbasakYeah the +git one15:00
rbasakPersonally I prefer https://git.launchpad.net/ubuntu/+source/sssd but I suppose that's not canonical.15:01
Gargoylesamba35's xchat probably just got OOM killed! :/15:01
Gargoyle:D15:01
ahasenacktand vcs-git git://git.launchpad.net/ubuntu/+source/sssd ?15:01
compdocsamba35_, I installed 18.04 and had to learn to set interfaces in /etc/netplan/*.yaml, but virt-manger cannot see bridges created there. virt-manager wants the bridges set in /etc/network/interfaces. but thats fine, works great15:01
rbasakYeah15:01
ahasenackseemed to work without the +ssh bit15:01
ahasenackok15:01
=== Panoptes is now known as Aztec03
Gargoylecompdoc: is virt-manager (qemu, etc) significantly better than virtualbox? (for the additional headache that seems to be involved in getting it running)?15:02
samba35sorry ,have to pull wire from wall ,15:04
samba35system hang after vm start15:04
Gargoylesamba35: You're gonna need a bigger machine or a much lighter desktop env.15:05
samba35agree15:06
GargoyleI've got pretty much the same as you running: Desktop, Browser, few chat apps. Nothing *major*. and I am using 5GB RAM.15:07
samba35but on same system i was running 3 guest on ubuntu 16.04.03 (4)15:07
GargoyleI play with 3 or 4 virtualbox VM's most days, so got a Ryzen 1800X + 32GB RAM.15:08
samba35when i install system for couple of day it was 2-3 gb but after 1 day system update /upgrade memory spike right after that15:09
samba35r u using 18.04 ? or 16?15:09
Gargoyle18.0415:09
samba35which  kernel version15:10
samba354.15.0-20-generic ?15:11
Gargoyleyup15:11
Gargoylegit:(master) ✗ uname -a15:12
GargoyleLinux ryzen1804 4.15.0-20-generic #21-Ubuntu SMP Tue Apr 24 06:16:15 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux15:12
samba35Linux shrikant 4.15.0-20-generic #21-Ubuntu SMP Tue Apr 24 06:16:15 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux15:12
Gargoylesamba35: Not sure it will help, but here's meminfo... https://paste.ubuntu.com/p/bVh627k929/15:14
Gargoylesamba35: Do you have a large value for unevictable?15:22
samba35Unevictable:       54888 kB15:25
samba35how do you copy text from terminal ? i could not select all  cat /proc/meminfo15:29
samba35VmallocTotal:   34359738367 kB15:34
samba35??15:34
samba35Gargoyle, what is size of cpu and motherboard /which make and model15:44
samba35sorry what is price of ......15:44
samba35brb16:01
GargoyleOK. Slightly different approach. Anyone know of any existing systems or guides for setting up an apt mirror so we can effectively freeze updates during our testing window. Eg, on a Monday we would update and sync with main ubuntu repo's, and then all our servers use our own internal mirror?17:12
tomreynhttps://wiki.ubuntu.com/Mirrors17:17
tomreynhttps://wiki.ubuntu.com/Mirrors/Scripts17:20
Gargoylethanks tomreyn17:22
ahasenackrbasak: should I add systemd to build-depends because of my usage of systemd-detect-virt? systemd itself has "Priority: important"18:13
rbasakahasenack: is systemd-detect-virt usually in the build environment without it?18:16
rbasakahasenack: if so, you could condition it on a test -x18:16
rbasakThat'd save the expense of such a major build dep possibly.18:16
ahasenacksystemd is there in all vms and containers I tried18:17
ahasenackbut maybe not in a chroot18:17
ahasenackI can treat it not being there as "ok, run the tests"18:17
ahasenackseems like a safe default18:17
rbasak+118:17
=== Guest16323 is now known as mgagne
=== hehehe is now known as Guest3228
=== Guest3228 is now known as hehehe
hehehe:022:39

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