/srv/irclogs.ubuntu.com/2021/04/13/#ubuntu-server.txt

lordievaderGood morning06:20
=== m1dnight_ is now known as sometesttempnick
=== sometesttempnick is now known as m1dnight_
RoyKlordievader: good localtime(); # ;)10:44
lordievaderHeho RoyK10:48
lordievaderDoing alright?10:48
RoyKit's ok - quarantened atm, waiting for a test result, but hell, it's ok11:15
UssatOK, so...I just changed the hostname / ip on a Ubuntu 18.04 system, modified the netplan file, changes the hostname with hostnamectl, edited the /etc/hosts file but sshing in is REAL slow, what did I miss ?20:59
TJ-Ussat: generally that means name resolving is timing out21:00
sdezielit's been a while that sshd no longer does PTR lookups21:01
UssatYa...thats the issue trying to find out why21:02
UssatI just dont know what I missed21:02
UssatI mean it just changed from xxx.xxx.xxx.120 to xxx.xxx.xxx.119, same subnet21:02
sdezielUssat: anything special in "ssh -v"?21:03
Ussatnothing needed to change re resolver21:03
TJ-Ussat: once the SSH session is up, do sudo ... commands also delay?21:03
Soniwhy does apt autostart everything before you're allowed to configure it?21:04
UssatTJ-, yes21:05
Soniand is there any way to make it stop doing that?21:05
UssatI know its name resolution, just not sure what config I missed21:05
Soniespecially for things like webservers, bitlbee, irc bouncers, etc21:05
TJ-Ussat: right. though as much. the issue is that nsswitch is still trying to find the old hostname21:05
Soni(and even transmission-daemon tbh)21:06
UssatTJ-, ok...how to tell it to stop :)21:06
sdezielUssat: maybe check you don't have UseDNS in sshd_config?21:06
UssatThe RHEL system I did 20 mins before this was fine21:06
Ussatsdeziel, that wouldnt fix the nsswitch issue though21:07
Soni(just... how do you stop apt from making the system pwnable by default .-.)21:07
sdezielUssat: it would at least prevent sshd from doing reverse lookup upon connection21:07
Ussatits not set anyway21:08
sdezielOK, dunno then21:09
TJ-Ussat: it's quite a while since I had that issue but I vaguely recall it was always due to having made a mistake somewhere21:09
sdezielmaybe PAM stuff kicking in?21:09
TJ-Ussat: do /etc/hostname, /etc/hosts 127.0.1.1 match?21:10
UssatTHATS it, missed /etc/hostname file21:11
UssatThanks21:11
Ussatwait...they match21:12
Ussatgrr21:12
UssatOK...typo , instead or .21:14
Ussathanks21:14
UssatThanks21:14
=== not_phunyguy is now known as phunyguy
grendal-primehey does anyone know of an app to build a distrobution iso from a current ubuntu server install?21:27
grendal-primei want something i can run from command line i dont want to have to install a gui21:27
UssatFFS.....my esxi admin put it on the wrong vlan21:33
sarnoldUssat: oh sheeeesh21:33
Ussatyup21:33
UssatDecided to give her a acall, Hey <name> can we verify this vlan please21:34
Ussat129...19221:34
Ussatsigh21:34
sarnoldgrendal-prime: you can prepare a cloud-init configuration to do what needs to be done and use the standard server installer iso or cloud images etc https://ubuntu.com/server/docs/install/autoinstall-quickstart21:35
grendal-primesarnold, sooo i have an installation that i have removed all the bs from the 20.04 installtion media.  For instance, i dont need snapd or cloudinit and i remove netplan and set up init.d/networking21:42
grendal-primei want to take this runnable working instance and write it to an iso with installer so when i need to do a bare metal install i dont have to go through all the removing of all that bs again.21:43
grendal-primebut i dont want to use the gui toll because if im understanding this correctly it needs to run this process on the actual server itself.21:43
sarnoldit just seems like it'd be easier to write down what you did so it'd be easy to re-do it :)21:44
grendal-primeI could have sworn there was a way to build install media with the current system.21:45
grendal-primeagreed sarnold but sometimes things change.21:45
grendal-primeI have a virtual system that i spin off clones from for virtual servers..but the vhosts i have to build...well i had to build 4 of them...i would have prefered to build one. make an iso...and build the other three and change their hostnames.21:46
grendal-primei thought it was genisoimage  but i am just getting errors from that application21:47
sarnoldgrendal-prime: hmm.. there's a p2v tool somewhere that'll let you turn a physical machine to a virtual machine, maybe that'd then let you use your tooling to get the rest of the way?21:54
TJ-best way to do that kind of thing in my experience is to originally install to a COW file-system, then snapshot as required. When you want to make 'installers' either take a literal copy of the snapshot, or, script post-install steps based on the diff between the virgin install snapshot and a later one22:09
grendal-primethis is just crazy22:35
grendal-primei cant believe this is this difficult22:35
sarnoldgrendal-prime: there seems to be a split -- folks who want to package up a laptop as a server aim for docker so they can run what worked on their devs' laptops as containers in their kubernetes or something; and the other group of people use juju or ansible or puppet or chef or salt to script the deployments in the first place22:42

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