/srv/irclogs.ubuntu.com/2018/11/01/#ubuntu-server.txt

mcclurkenI'm attempting to install Ubuntu Server 18.04 and am having trouble configuring filesystems, with or without LVM.Is the general idea to switch out to the shell to create filesystems?00:07
sarnoldthere's a few different installers, and some of them iirc make it easier or harder to do block storage things..00:09
sarnoldbut I'd expect most tasks to be possiuble within the interface00:09
mcclurkenI've tried several different approaches. I can't create filesystems within the automatic LVM config, tried falling back to just partitions and such and ended up creating a partition for everything (/, /home, /usr etc)00:17
mcclurkenI'm missing the old ncurses debian installer00:17
sarnoldthat's still around00:18
sarnoldhmm. this doesn't *say* anywhere that it's the old one.. http://cdimage.ubuntu.com/releases/18.04.1/release/ but that's the link from "Download the alternate installer" on https://www.ubuntu.com/download/alternative-downloads00:20
mcclurkenI'll give that a shot. It wasn't clear to me since the filename doesn't mention anything so it looks like the regular one.00:24
mcclurkenI guess the hint is its missing the "live"00:26
sarnoldoh is that the tell? heh00:27
=== crimastergogo_ is now known as crimastergogo
=== icey_ is now known as icey
=== elsheepo_ is now known as elsheepo
kstenerud_How do I report multipass bugs?11:32
RoyKmultipass?11:36
ograkstenerud_, try asiking in #multipass11:40
ograRoyK, https://snapcraft.io/multipass11:41
RoyKogra: oh - another docker-ish thing? ;)11:44
ogranot at all :)11:45
ograits an OS agnostic VM tool (also runs on win and macos)11:45
ograno containers involved ;)11:45
RoyKwhat's underneath? kvm?11:45
ograyou have to ask the devs :)11:46
kstenerud_It's to VMs what lxd is to containers11:47
kstenerud_in beta atm11:47
kstenerud_kvm11:48
RoyKogra: libvirt or qemu afaics, looking at src/platform/backends11:49
RoyKand IIRC libvirt uses qemu and is just another abstaction later on top of it11:49
RoyKand qemu may use kvm if the arch supports it11:50
kstenerud_yup, and multipass gives it all a nicer UI with similar commands to lxd11:50
RoyKgotta take a closer look at it some time11:50
kstenerud_container: lxc launch ubuntu:cosmic blah11:52
kstenerud_VM: multipass launch --name blah cosmic11:52
RoyKhow does multipass deal with networking?11:53
RoyKI have a bridge (br0) setup on my home server now for kvm/libvirt use with some VMs11:53
kstenerud_I'm not really sure - I'm just getting started with it myself.11:53
RoyKok11:54
kstenerud_you can pass it --cloud-init <file>11:54
ograyou should really ask in #multipass ... i dont think any of the guys working on it is around in this channel11:54
kstenerud_Found their github issues page so all is good11:55
ograwell, they should mention the issue link in the snap description ... or in the contact field of the snap11:55
kstenerud_Nope, there's no contact link in the snap unfortunately11:56
ograthats what i mean :)11:57
ogratell them in the #multipass channel ;)11:57
ahasenackgood morning11:59
ahasenackrbasak: hi, any idea why it's blacklisted?11:59
ahasenackrbasak, around?12:27
rbasakahasenack: we avoided importing the kernel as it's too big and they have their own workflow (ownership of the default repository in Launchpad)12:33
rbasakI'm not sure about linux-meta specifically12:34
ahasenacklinux-meta is ~150kb uncompressed12:34
rbasakUnderstood, but it might have been dragged in with the "leave the kernel for now" direction12:35
rbasaknacc: ^ do you remember anything about linux-meta?12:35
ahasenackit was added in the first revision of the blacklist file12:37
ahasenackhm, but it was in b/gitubuntu/source-package-whitelist.txt12:38
ahasenackcommented12:38
rbasakI'm keen to avoid stepping on the kernel team's toes.12:38
ahasenackfound the change12:38
ahasenack    usd-cron-packages.txt: blacklist kernel packages12:38
rbasakBut if there's OK with it (including the takeover of the default repository on Launchpad for the Ubuntu package), I can't think of any other reason to not import it.12:39
ahasenackwell, ok, another question12:39
ahasenackdifferent topic12:39
ahasenackacpid, removing it from server seed12:39
ahasenackhow can I check if it won't be demoted to unverse after that?12:39
rbasakgerminate-output?12:39
rbasakhttp://people.canonical.com/~ubuntu-archive/germinate-output/ubuntu.disco/rdepends/acpid/acpid12:40
rbasakLooks like desktop also hold it in main12:40
ahasenackI see12:41
ahasenackvia acpi-support12:41
ahasenackwhich is what pupolates /etc/acpi/events12:41
ahasenacki.e., all the scripts for wifi buttons, keyboard backlight, etc12:41
ahasenackbut that's a recommends12:42
ahasenackis that "strong" enough?12:42
ahasenackrbasak: ^12:52
rbasakahasenack: I believe so12:53
ahasenackrbasak: after the seed change, how is the ubuntu-server metapackage (from ubuntu-meta src) updated?12:57
ahasenackI see an "update" script in it12:57
rbasakahasenack: ubuntu-meta needs the update running and re-uploading, yes.12:57
ahasenackok12:58
ahasenackany particular order this needs to happen? seed change vs meta package change?12:58
rbasakSeed change first IIRC12:58
ahasenacklooks like it indeed, given the script12:58
ahasenackthx12:58
rbasakThe update script fetches the seeds to then update the ubuntu-meta sources12:59
rbasakMight be worth double checking the plan in #ubuntu-devel - I don't do this very often.12:59
ahasenackrbasak: any opinion versus removing acpid entirely, or moving it to server-ship as a first step?12:59
rbasakI don't see any need for it to be in server-ship, since I don't see that it would be affected by any bootstrapping issues.12:59
ahasenackok13:00
rbasakI say drop it unless someone comes up with a reason to keep it.13:00
rbasakAnd we'll hopefully get reports with reasons we're wrong before the next LTS.13:00
rbasak(preferably before the next release!)13:00
rbasakAnd if necessary we can re-add but with a comment explaining why this time.13:00
=== GDPR is now known as emerson
openfireAny downside to disabling netplan on bionic and manually configuring networkd?13:57
cyphermoxopenfire: no, you're free to do so if you want13:57
cyphermoxjust don't specify the interface in /etc/netplan13:58
openfireAh, so I don't even need to remove the package. That makes sense, thank you.13:58
Mr_Pan!0d514:05
zetherooI installed a second disk in a Windows 10 system and installed Ubuntu Server 18.04 on it, but on boot there is no grub menu and thus no way to select which OS to boot into. At the moment Ubuntu is booting.14:22
zetherooI have tried manually entering the details into /etc/grub.d/40_custom and running update-grub but that's not working for me. os-prober shows /dev/sdb1:Windows 10:Windows:chain14:23
zetherooShould I be using the uuid of /dev/sdb1 in  /etc/grub.d/40_custom?14:23
TJ-zetheroo: if the system is using UEFI, then GRUB isn't responsible for choosing, it is the PC firmware boot manager itself. It should have 2 entries added when Ubuntu was installed, and usually Ubuntu is set to the default. It sounds like that hasn't happened. The alternative is you booted the Ubuntu installer in CSM/Legacy BIOS mode, and so was installed that way, in which case you'll need to use the14:27
TJ-PC's boot manager to choose to boot CSM/Legacy mode from the 2nd disk14:27
zetherooI got the grub menu to show up by pressing SHIFT during boot, but is there a way to make it always show automatically at boot?14:30
masonzetheroo: Have a GRUB_TIMEOUT, and don't set GRUB_TIMEOUT_STYLE, is what I do.14:31
zetheroomason: ok14:33
zetherooTJ-: I'm fairly certain I installed Ubuntu with Legacy and not UEFI14:33
zetherooI'm also pretty sure that when I installed Windows 10 on this server I didn't use UEFI either14:34
TJ-zetheroo: oh, so there is a GRUB menu, it was just hidden!14:35
zetherooServer bios boot mode is set to dual14:37
kstenerud_for a changelog message, I'm wondering what to put in the changelog when I changed multiple files14:37
kstenerud_Normally it's d/p/some.patch, but what if I modified a bunch of files in debian/14:38
zetherooyes, I pressed SHIFT right before boot and the grub menu showed up14:38
DammitJimI still don't understand the difference between apt-get purge vs apt-get remove14:39
DammitJimdoes purge do a remove as well?14:39
sdezielDammitJim: yes but purge leaves no old conf behind14:40
zetherooTJ-: this is what I have in /etc/grub.d/40_custom /etc/grub.d/40_custom14:41
zetheroohttps://paste.ubuntu.com/p/dHD7Kc5yX4/14:41
zetherooTJ-: that's the uuid from /dev/sdb2 but I have also tried the uuid from /dev/sdb114:42
zetheroowhy doesn't Startup Disk Creator let you select other iso's than Ubuntu iso's?14:47
zetherootry SGD now15:03
zetheroono luck15:09
zetheroothis is what I am getting when trying to boot into Windows from the grub menu https://ibb.co/fRCUOL15:17
kstenerud_rbasak: https://pastebin.ubuntu.com/p/5MhXY6WR59/15:24
kstenerud_So 3 files changed15:24
rbasakkstenerud_: how about: https://paste.ubuntu.com/p/gY9RWGRF88/15:32
rbasakkstenerud_: the diff itself looks great BTW, thanks.15:32
kstenerud_cool thanks!15:37
zetheroobios boot mode changed from Dual to Legacy - Fresh install of Ubuntu 18.04 completed - boots straight into Ubuntu with no grub menu16:01
zetheroo https://paste.ubuntu.com/p/sXc55gBnp6/16:01
masonzetheroo: My recommendation remains.16:13
zetheroomason: getting to the grub menu is not really the issue ... but that there is no Windows to boot from in the grub menu16:14
naccrbasak: ahasenack: looking16:14
zetherooshould grub be installed on the Ubuntu disk only, or also on the Windows disk?16:14
zetherooboot-repair is asking me where to install grub16:15
zetherooI'm thinking only on the Ubuntu disk16:15
naccrbasak: ahasenack: right the binaries those packages create are all kernel-team owned, afaict16:18
masonzetheroo: GRUB should be installed on whatever disk you want to boot from, and it should have an entry for whatever system you want to boot. If you have the option of UEFI/SecureBoot, you want that.16:19
masonWhat it needs to look like on-disk depends on whether you're going for UEFI or legacy.16:20
zetheroomason: grub installed on Ubuntu disk - rebooted and grub menu shows no Windows16:21
zetherooThis is the pastebin from boot-repair https://paste.ubuntu.com/p/Cd2cXWg9NR/16:22
zetherooany ideas?16:25
zetherooShould I switch the Boot Mode in bios to UEFI?16:26
zetherooif I do, do I have to reinstall Ubuntu?16:27
zetherooUEFI enabled and nothing boots16:36
zetherooI just end up at this screen showing a list of disks and Shell>16:36
zetherooswitching back to Legacy and seeing if Windows boots at all if I select it's disk as the primary boot disk ... Ubuntu boots :/16:37
masonzetheroo: https://askubuntu.com/questions/110698/add-windows-to-my-boot-menu seems relevant16:37
zetheroohttps://paste.ubuntu.com/p/rqJJrKhmy6/16:37
zetherooso why doesn't Ubuntu add Windows to the grub menu during install?17:04
openfireWhat's the contents of the actual grub.cfg file?17:06
zetheroois it in here? https://paste.ubuntu.com/p/Cd2cXWg9NR/17:08
zetherooI'm booting back into Ubuntu now17:09
openfireAre you mounting the Windows partition before running update-grub?17:10
zetherooopenfire: no17:10
openfireSo mount the windows partition, and run 'update-grub'. Not grub-mkconfig.17:10
zetheroohow do I mount the windows partition? I mean ... do I just mount it anywhere?17:11
zetherooand which partition do I mount?17:12
zetheroothere are 317:12
zetheroohttps://paste.ubuntu.com/p/FtjKFTCcnz/17:12
openfireI think it'll be the second one, if memory serves. The largest one.17:13
openfireAnd I usually mount it to '/mnt/windows' or something.17:13
openfireAnd DEFINITELY mount it as read-only.17:13
zetheroocan you help me with a mount command for r/o?17:14
openfireman mount will tell you that.17:15
zetherooand this mount is just temporary right?17:15
openfireIt has to be there whenever you run update-grub.17:15
zetheroook mounted17:17
zetheroohttps://paste.ubuntu.com/p/f25gvJSnYW/17:19
openfireThat's not grub.cfg.17:21
openfireAnd I also didn't tell you to mount more than one Windows partition. :/17:21
zetherooopenfire: with sdb3 unmounted it's the same output17:22
TJ-zetheroo: mounts are not required; os-prober does that. The problem seems to be that /etc/grub.d/30_os-prover is either disabled or not betting the message17:23
TJ-grrr s/30_os-prover/30_os-prober/17:23
openfireI thought it had to be mounted somewhere to be found. My mistake, then.17:23
TJ-zetheroo: do you have "GRUB_DISABLE_OS_PROBER=true" in /etc/default/grub17:24
TJ-openfire: no, it scans all block devices (unless config options prevent it)17:24
openfireFiling that away, thank you.,17:25
zetheroohere is the grub file https://paste.ubuntu.com/p/7rqx28PrQ6/17:25
openfirezetheroo: grep GRUB_DISABLE_OS_PROBER /etc/default/grub17:26
openfireis it true or false?17:26
zetheroonothing17:26
zetheroofalse17:26
zetheroowhere is the grub.cfg?17:26
zetheroofound it https://paste.ubuntu.com/p/YSNhFRxty8/17:29
TJ-zetheroo: let's debug the script. "pastebinit <( sudo sh -x /usr/sbin/grub-mkconfig 2>&1 )"17:30
zetheroohttp://paste.ubuntu.com/p/PBPrxK7JQK/17:31
naccGRUB_DISABLE_OS_PROBER=true ?17:32
naccfrom /etc/default/grub.d/50-curtin-settings.cfg17:32
zetheroonacc: https://paste.ubuntu.com/p/pyDssTg4QN/17:33
TJ-nacc: indeed, I thought it'd be there somewhere :)17:33
TJ-zetheroo: there you go, disabled :)17:33
naccyeah, you can't have that and dual boot, zetheroo17:33
naccdunno why it's set that way, tbh17:33
zetheroono way :/17:33
zetherooso ... comment it out?17:34
nacczetheroo: how did you install this system?17:34
zetheroonacc: from installer - fresh install17:34
zetherooUSB bootable17:34
nacczetheroo: which installer?17:34
TJ-zetheroo: which release of Ubuntu is it, too?17:34
nacc(and what version of ubuntu is this?)17:35
naccyeah17:35
naccmy fresh 18.04 desktop has no such file17:35
zetherooubuntu-18.04.1-live-server-amd6417:35
naccyou installed server side by side with windows?17:35
nacci'm not sure that's mean to be supported by default :) (without some extra steps)17:35
nacc*meant17:36
zetheroook, so what's the best solution now17:37
zetheroo?17:37
zetherooshould I change that to =false?17:37
zetherooand run os-prober and update-grub again?17:38
naccTJ-: --^ I'm not sure. I think that should be fine, but this is an odd setup to me.17:38
TJ-zetheroo: If the curtin package gets updated it might return. I'd use "dpkg-divert" to permanently move the file so it doesn't get read at all by grub17:39
zetherooTJ-: ok, never heard of that. what's the full command?17:39
TJ-nacc: seems pretty 'normal' to me; When we lost the alternate installer it was said the server installer would do everything it did so was un-necessary. Seems like the server installer team have forgot it is supposed to be a fallback for those that cannot run the desktop live installer (often due to graphics/video problems)17:40
naccTJ-: ah could be. smoser --^ ? this seems like a corner case that should be more obvious17:42
TJ-zetheroo: "sudo dpkg-divert --divert /etc/default/grub.d/50-curtin-settings.cfg.disabled --rename /etc/default/grub.d/50-curtin-settings.cfg"17:42
zetheroodone17:43
zetheroodo I still need to edit the config?17:43
TJ-zetheroo: no, just "sudo update-grub"17:43
TJ-zetheroo: that config file is no longer going to be read by grub17:44
zetheroook, and os-prober?17:44
TJ-zetheroo: even if curtin package upgrades, it'll upgrade the new filename, which grub ignores17:44
zetheroocool17:44
TJ-zetheroo: os-prober is called by grub automatically17:44
zetheroogosh ... all the things I didn't know17:45
zetheroohttps://paste.ubuntu.com/p/DvHsSVzzcR/17:45
zetheroohey that looks better17:45
zetheroois that it ... or?17:45
zetheroois it safe to reboot?17:45
TJ-zetheroo: now you just have to work out which one to boot!17:45
zetheroooh17:46
TJ-zetheroo: that's it :)17:46
zetheroosdb2 is the largest partition ... so I have to do anything more manually?17:46
TJ-zetheroo: *usually* the 1st entry is the Windows recovery partition17:46
zetheroook17:46
zetheroodo you suppose the grub menu will be shown at boot now?17:46
zetherooTJ-: anything else I should do before rebooting?17:48
TJ-zetheroo: you have to tap Esc (or hold Shift) to reveal it. You can change the /etc/default/grub options to make it display always17:48
zetherooTJ-: I would prefer it always popped up17:48
TJ-zetheroo: I think you'd add "GRUB_TIMEOUT_STYLE=menu" and then "sudo update-grub" again17:50
zetherooits GRUB_TIMEOUT_STYLE=hidden atm17:50
TJ-zetheroo: and ensure the *TIMEOUT= values are not 0 !17:50
zetherooGRUB_TIMEOUT=1017:51
zetheroook, done and done17:51
zetherooreboot? :)17:51
TJ-zetheroo: your choice :p17:52
zetheroook, fire in the hole17:52
zetherooall my fingers and toes are crossed :D17:52
zetheroogrub menu with Windows OS shows up !!!17:54
zetheroothere are two Windows OS entries .. the first one boots into Windows 1017:55
zetheroothe second one also boots into Windows 1017:56
zetheroowell .. better two that work than none ;)17:56
cryptonix2zetheroo: nice17:58
smoserwe are aware of the pain of /etc/default/grub.d/50-curtin-settings.cfg18:01
smoserif you do not like it's effects on things, it is safe to remove it.18:01
zetheroook, well thanks all for your help with this. No way I would have found this out.18:02
naccsmoser: ack :)18:03
naccsmoser: is there a bug tracking it as a pain point?18:03
smoserbyes18:04
smoseryes even18:04
smoserhttps://bugs.launchpad.net/curtin/+bug/163518118:04
ubottuLaunchpad bug 1635181 in curtin "Curtin sneaks config into /etc/default/grub.d/" [Undecided,New]18:04
naccsmoser: ack thanks, zetheroo --^ fyi18:05
zetheroonacc ok18:05
tewardthe server installers don't have a "side by side" install option, right?18:23
tewardif I remember right that's a Desktop-only installer function18:23
naccteward: i believe that is correct18:24
tewardthat's what I thought18:28
RoyKthe GRUB_TIMEOUT=0 that ubuntu server has, is rather peculiar - for a desktop or laptop, sure, but if you're setting up a server, you know sufficient already not to be scared by the linux boot screen - if not - you'll learn that after a short while18:40
ahasenackRoyK: +118:41
ahasenackI also always have a problem with that, specially in VMs, where getting the timing right is super hard18:41
ahasenackand "shift" isn't the best key in that case18:41
RoyKthe main reason I don't use ubuntu too much on servers anymore, is that ubuntu really focuses a lot on the desktop, not on server/stability - so I had my Debian relapse ;)18:44
* openfire looks at the extremely large server estate that he runs, a mix of 16.04 and 18.04.18:53
openfireNot on servers or stability, huh?18:54
naccRoyK: yeah that's pretty FUD-y to me too :)19:05
RoyKnacc: it's not ;)19:06
openfireYes, it is.19:07
openfireIt's total BS, to be completely blunt.19:07
RoyKoh well, famous holy wars etc19:07
naccRoyK: "ubuntu really focuses a lot on the desktop, not on server/stability" is FUD. You are basing it upon .... nothing?19:07
naccRoyK: look at relative contributions, and stop abscribing your epxerience to a distribution (which can't "focus" on anytihng, because it's not a person, anyways)19:07
openfireIt's not a war. You're full of crap, end of story.19:08
openfireThere are several solid server distributions out there. Ubuntu IS one of them. To say it isn't is FUD.19:08
RoyKnacc: experience - quite a few years of it - I moved to ubuntu from debian back in 2008 or thereabout and moved back some 4-5 years back because of quite a few bugs I posted that was never fixed - same thing worked well on debian19:08
openfirehttps://yourlogicalfallacyis.com/anecdotal19:09
openfireONE thing didn't work for you. So that magically translates to "Ubuntu doesn't focus on server or stability."19:09
openfireAs my old CO used to say, "That dog don't hunt."19:09
RoyKthe particular problem I was stuck on back then, was nested RAIDs - a bug that was never solved until a new release came out19:20
RoyKthe main problem, as far as I can see, with ubuntu server, is that it tosses in a lot of packages that aren't really ready or well-integrated, where in debian and centos, you get a system that is more balanced19:21
RoyKI'm not saying ubuntu server doesn't work - I still use it from time to time - but hell - I prefer debian - I don't think there's a death penalty for saying that even here ;)19:21
sarnoldfunny, I'd have thought it the other way around, since we've got a clear demarcation between main and universe19:22
openfireRoyK: You can prefer what you want. Your statement, however, was not one of preference. It was a judgment. "ubuntu really focuses a lot on the desktop, not on server/stability"19:22
openfireRoyK: I'm happy with people preferring what they want. But when people try to make statements of fact that are obviously BS, I call them out.19:23
RoyKopenfire: we're all quite subjective, really19:23
RoyKopenfire: but hell - if the "code of conduct" in here is to never complain about ubuntu, please show me that paragraph19:25
openfireRoyK: That's a total non-answer. And also very transparently a retreat and attempt to change the subject. You made an objective claim, and I called you out on it.19:26
naccRoyK: no one said you violated the code of conduct. Stop being melodramatic.19:26
naccRoyK: unless you can point to specific numbers of contributions that clearly show ubuntu changes are prioritizing desktop over server, maybe don't make such claims.19:27
openfireRoyK: If you make a claim, its on you to support your claim if someone calls you on it. You've failed to do so in any valid way. You've offered nothing in the way of data, your own unverifiable and suspect experience aside. You've offered opinions, and then relied on "it's just my preference" and other nonsense to change the context.19:28
openfireRoyK: Your original statement at issue was: "ubuntu really focuses a lot on the desktop, not on server/stability." Prove it, or be quiet.19:29
tewardhow about we all drop this argument and move on to something more beneficial19:30
RoyKthis was about bug 1171945, which was never solved - that is - after upstart was thrown in the bin, it worked. As far as I can see, noone really worked on it while the problem persisted, which was some years19:30
ubottubug 1171945 in mdadm (Ubuntu) "Nested RAID levels aren't started after reboot" [Undecided,Confirmed] https://launchpad.net/bugs/117194519:30
tewardrather than shooting back and forth at each other.19:30
RoyKteward: indeed19:30
openfireAgreed.19:30
sarnoldhey I see me! :)19:31
openfireI see you, too!19:41
Epx998There an easy way to determine if a server is running beta or release on a non lts20:42
Epx998guess 'lsb_release -a' gives me what I need20:43
=== led_dark_2 is now known as led_dark_1

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