/srv/irclogs.ubuntu.com/2018/10/26/#ubuntu-server.txt

sofia07I installed ubuntu server 18.04.1 and is so strange I want to install virt-manager and I cannot see it... can anyone tell me how to get the rigth repos ?05:23
sofia07I would assume that is in the default rep05:23
sarnoldsofia07: virt-manager is in universe.. one moment..05:25
sarnoldsofia07: in your /etc/apt/sources.list file, the bionic, bionic-updates, bionic-security lines, add 'universe' after 'main'05:26
sofia07sarnold, thanks, I thought is in main05:27
sofia07strangely, on the new server installed I do not remember asking me wheather I should install other repos05:27
sarnoldsofia07: I think it used to be, iirc we moved it to universe to make it easier to do wholesale version upgrades..05:27
sofia07thanks again, I forgot to look at /etc/apt/sources.list - but that is what you said05:28
sofia07one more question - is there a comparison of netplan vs /etc/network/interfaces ? I see it as new feature, I am still not quite clear what is the advantage ?05:29
lotuspsychje!netplan | sofia0705:31
ubottusofia07: Netplan is a network configuration abstraction renderer which uses YAML descriptions of a network to work with either a NetworkManager or Systemd-networkd "renderer". More information at https://netplan.io/05:31
lotuspsychjesofia07: some users we see purge netplan and proceed with the previous networking, the users choice really05:31
sarnoldsofia07: from my perspective, netplan is a lot more declarative.. ifupdown *looked* declarative but it was more or less just scripts.. and if you edited those config files before "undoing" changes correctly, you were *never* going to get your correct state back..05:32
sarnoldsofia07: I think there were benefits of going to systemd-networkd for management but .. so. many. files. so. verbose. oh. my.05:33
sofia07sarnold, I agree, it is all becoming too stuffy, we are going to use netplan, but it was much simple to know /etc/network/interfaces ...05:35
sarnoldsofia07: yeah, I had mixed feelings about losing /etc/network/interfaces05:35
sarnoldIt *looked* simple, and if you got it right on the first try, it kinda was simple :)05:35
lotuspsychjein my feeling netplan looks pretty stable05:36
sofia07well, it would be interesting to see a review of current options and tools in networking05:36
sofia07it would have been cool to have similar concepts in all linux distros, and with unix too (freebsd in particularly)05:37
sofia07anyhow, I will  try now to make a bridge - have a small server with few virtual machines05:37
sarnoldI think there's reasonable shot for netplan.io to become that mechanism -- it looks tolerable enough to write new "renderers" for different backends, and as more distros are likely to eventually pick up systemd-networkd, even without new renderers it might get more and more useful05:39
sarnoldand I think I heard netplan integrates well enough with cloud-init, which is another cross-distro mechanism for setting up machines..05:39
sofia07it looks interesting, now I am more cool of learning a bit more, instead of just making it work :)05:41
sofia07thanks05:41
sarnoldsofia07: as it stands the majority of the netplan docs are on https://netplan.io/ -- be sure to hit the 'report a bug on this site' for any comments, suggestions, bugs, etc :)05:43
=== StathisA_ is now known as StathisA
lordievaderGood morning06:20
=== iliv_ is now known as iliv
=== chiluk_ is now known as chiluk
sofia07OK, there is a problem with this netplan, anything I do, even from one NIC (I want to create a bridge), both NICs are messed up... is there a working sample of netplan config bridge for ubuntu 18.04 server (I want to use the bridge for virtual machines on kvm07:28
sofia07what is the best command to restart the networking so the /etc/netplan/50whatevf.yaml is utilized ? I just change it  and systemctl restart networking does not do it07:40
=== jelly-home is now known as jelly
=== ideopathic_ is now known as ideopathic
ahasenackgood morning11:55
cyphermoxsofia07: sudo netplan apply12:40
cyphermoxsofia07: as for an example of bridge, that would be here: https://netplan.io/examples#bridging12:43
cyphermoxbut I use bridges for VMs too, I'm able to answer questions12:44
sdezielcyphermox: I'll take that opportunity to ask you if one can create a bridge with no physical device enslaved now with netplan?12:45
cyphermoxsdeziel: should be, yes12:46
sdezielcyphermox: cool, for some reason it didn't work in my previous testing12:47
sdezielbut that was some time ago12:47
cyphermoxsdeziel: I added that this cycle12:48
cyphermoxa few months ago, I think, but this cycle :)12:48
sdezielcyphermox: so Cosmic and forward? Or will that be backported to Bionic?12:48
cyphermoxit will12:49
cyphermoxthe SRU is in -proposed, I'm not done checking the various features12:50
sdezielthanks that will be handy here12:52
sofia07cypermox, sorry I pasted two files - one which has the two NICS working , other with attempt to make one NIC bridge - the second is not working13:19
sofia07netplan initial - working - no bridge https://paste.debian.net/104912013:20
sofia07netplan with a simple attempt to make a bridge and use one card - this config does not work https://paste.debian.net/104912113:21
compdocthe bridges are for kvm?13:23
cyphermoxcompdoc: not there yet13:24
cyphermoxsofia07: there is a typo in interfaces: enp36a0 instead of s013:24
compdoci had to create bridges for kvm in 18.04. thought i could do it all with netplan, but kvm didnt like it13:25
cyphermoxcompdoc: for that i wrote a blog post13:25
compdocI figured it out13:26
cyphermoxit's more than just vm but http://blog.cyphermox.net/2018/05/building-local-testing-lab-with-ubuntu_16.html13:26
compdoci now use netplan for the interfaces, and /etc/network/interfaces for the bridges13:27
cyphermoxok13:27
compdocI figure kvm will change to work with netplan someday13:27
sofia07cyphermox, thanks - I am looking at your configs, the NICs names are OK on mine -  anyhow, if I do /etc/network/interfaces netplan is ignored ?13:31
sofia07because I know how interfaces work, and can make it in a sec, I use kvm too13:32
sofia07how can I disable netplan and use only /etc/network/interfaces ?13:34
masonsofia07: Install ifupdown, remove /etc/netplan/*.yaml13:34
sofia07thanks..13:34
masonsofia07: Depending on your use case, I'm finding that netplan is just a higher-ceremony /etc/network/interfaces. Might be worth poking at it before giving up on it.13:35
masonsofia07: There are other good ones, but the first article I read on it: https://webby.land/2018/04/27/bridging-under-ubuntu-18-04/13:36
blackflowNIHplan is actually abstraction, not just higher-ceremony interfaces. 15th standard designed for one ring to rule them all.13:36
blackflowit literally serves no other purpose but...... to be "One config to rule them all and in YAML bind them".13:37
cyphermoxblackflow: thanks for your constructive criticism.13:37
blackflowyou're welcome.13:37
masoncyphermox: Apologies for not getting my suggestion/issue in yet, but I still plan to do it. Life has just been crazy.13:38
cyphermoxmason: np13:38
mason(Which see, it seems that some of the structure is default and unchanging, and hence can be assumed to let people have far simpler/easier to remember syntax/files.)13:38
mason(For the folks who didn't see my initial yapping.)13:38
masons/assumed to/assumed, so as to/13:39
sofia07since yaml seems to need things place correctly (tab etc), it is very confusing, the generated netplan/50..yaml file for the server has different look than the one at netplan... other tutorials yet other, and so far, any change I made, rendered the network useless - I wish I could just to one NIC at the time too - anyhow, /etc/network/interfaces is straight forward or maybe not... is was just working for years  :)13:42
masonsofia07: There are variations that are legal/valid. Different ways to represent lists and stuff. I haven't gotten it all down as yet.13:43
masonI share your love of ifupdown, mind you, but I've gotten over my initial reaction to netplan.13:43
cyphermoxit's a lot like python, really13:43
cyphermoxsofia07: fwiw, aside from the typo your config looks valid for br013:44
sofia07that ads so much confusion, I look at few tutorials, and NONE has similar structure (yes, the structure might be there, but subtle changes matter, and I do not know which one matter and which not) - I am saying that this is unforgiving (that how it look to me)13:44
cyphermoxsofia07: do you have examples of the tutorials? I could go have a look13:45
sofia07cyphermox, thanks, it seem that that server gets out in internet through external wan, when the configuration is apply both lan and wan stop working13:45
cyphermoxthis week I've been working on improving the error messages a lot, it should be easier to figure out when this are wrong (ie. tabs)13:45
cyphermoxsofia07: it might stop working for just a bit, or permanently?13:46
sofia07well first the ones I pasted are generated by ubuntu 18.04 server at installation - they are different than the examples at neplan.io13:46
sofia07cyphermox, no, permanently13:46
cyphermoxthat's odd13:47
cyphermoxthere wasn't much functional difference between the two configs you pasted13:47
sofia07I am certainly missing something13:47
cyphermoxwhich one is wan?13:47
cyphermoxenp6s0?13:47
sofia07cyphermox, yes, indeed, I just move the dhcp Lan NIC from bottom to top - under interfaces and added a bridge for the wan one - and mention which wan should I use13:48
cyphermoxsofia07: as long as you know which is which, that's what is important :)13:48
cyphermoxso; you might want to add "critical: true" on the interface13:48
cyphermoxthat tells systemd not to release / renew the DHCP address when it restarts.13:49
sofia07enp36s0: is the wan one13:49
cyphermoxah, so not dhcp13:49
sofia07yes13:50
cyphermoxis that at home? some consumer hardware doesn't like changing mac address, which would happen when you move the address from enp36s0 to br0.13:50
sofia07I tried either, again, maybe I miss an indentation or something13:50
sofia07no13:51
sofia07It is connected to a modem in bridge mode13:51
sofia07so the external ip should be not hindered by the mac address13:52
cyphermoxmodems do sometimes care13:52
cyphermox(I know mine does)13:52
cyphermoxthe machine connected to it needs to be a mac that it recognizes, so I need to power it off, remove the battery, and start it over again when I change what is connected to it13:53
cyphermoxanyway -- your config in https://paste.debian.net/1049121 is valid, aside from the fact that in br0, interfaces:  is set to the wrong name13:54
cyphermoxenp36a0 vs. enp36s013:54
sofia07there are two NICs - enp6s0 and enp36s0  (this are what I get when I do ip addr)13:56
cyphermoxyes13:57
cyphermoxsofia07: did you fix the typo?13:57
sofia07what is enp36a0 ?13:57
cyphermoxan error, I assume13:57
cyphermoxthat's what I see in your pastebin13:57
sofia07oh - you right - let me see with the correct name - gosh13:58
cyphermoxI apologize for insisting on that, maybe you already fixed it13:58
sofia07no, I did not notice it13:58
cyphermoxthat would quite obviously make the bridge not work ;)13:58
sofia07yes, but what is interesting why lan card would not work too = anyhow let me fix it13:59
TJ-sofia07: it helps to compare the generated files under /run/... when things don't work as expected13:59
cyphermoxsofia07: for the lan card, my guess is it's that DHCP takes a while to catch up14:01
cyphermox(hence adding "critical: true" might help)14:01
TJ-cyphermox: does the empty "adresses: []" affect anything?14:02
cyphermoxTJ-: no14:02
cyphermoxit's extra, but it won't break dhcp14:03
sofia07Thanks a bunch cyphermox ! it worked, I misstype the NIC, unbeleivable14:03
cyphermoxsofia07: np14:03
sofia07so now I need to do some oether things for kvm to recognize the bridge ?14:03
cyphermoxI am a little surprised though, netplan should have told you there was a typo14:03
cyphermoxError in network definition toto///etc/netplan/f.yaml line 11 column 25: br0: interface enp36a0 is not defined14:03
cyphermox^ this is the error it should have shown14:04
sofia07when I did netplan apply ?14:04
cyphermoxyep14:04
sofia07yes, that would be wonderful14:04
cyphermoxoh14:04
cyphermoxit didn't14:04
sofia07Maybe I missed it, unfortunately I need to go, I was tethered to this machine physically :)14:04
cyphermoxsofia07: thanks, made me find a bug here14:05
sofia07but, I will try quickly to make the lan work to14:05
cyphermoxok14:05
sofia07I do not remember saying anything, I could test it in a sec14:05
sofia07wait a sec, let me change and see if it messages14:05
cyphermoxoh, I'm not using the right config, that's why14:06
sofia07it is messaging, perhaps I was through ssh before in the machine, but at the machine I got the error mentioning it14:08
sofia07I have to experiment a bit more with this, what I found odd, that it should still let the LAN NIC work and reroute the trafic to outside world through that,14:08
sofia07anyhow, what do I need to do so kvm see the NIC ?14:09
sofia07the bridge14:09
cyphermoxhttps://paste.ubuntu.com/p/ykqgfNFpxn/14:11
sofia07can I do # do disable the line14:11
cyphermoxyes14:11
sofia07cyphermox, thanks a bunch - both, my br0 and br1 work now - and I added the br0.xml and br1.xml to /etc/libvirt/qemu/networks14:22
sofia07Thank you14:22
sofia07It was really helpful and kind of you14:23
cyphermoxsofia07: np14:54
DammitJimI know support for tomcat6 is basically done16:27
DammitJimbut is there a way to install it on ubuntu 16?16:27
DammitJimthrough a repo?16:27
=== mfo_ is now known as mfo
Epx998I found -> https://askubuntu.com/questions/812566/how-to-install-tomcat6-in-ubuntu-16-04-using-apt-get-install16:42
tomreynthis does exactly not do it with apt, and so the software would not get updates / security patches16:49
tomreyn16.04 offers tomcat 7 (in universe). there may be PPAs providing tomcat6 builds for 16.04, but it seems unlikely those would get patches either. and ppa's are not supported here.16:52
tomreynDammitJim: ^16:52
=== boshhead_ is now known as boshhead
=== medberry is now known as med_
rawcohi everyone20:48
rawcoi hope everyone’s weekend is cool20:48
rawcoi’m going to DC20:48
Epx998No!20:48
rawcoso, my weekend will be hell20:48
rawcobusiness trip20:48
Epx998I am solo taking my 2 year old twins to a aquarium... thats hell20:48
Epx998hell'a fun20:49
rawcohttps://www.target.com/p/go-by-goldbug-monkey-baby-harness/-/A-7545603820:50
rawcoget a pair of those20:50
rawcoi have one that i put on my girlfriend20:50
Epx998i have that actually, we got the one with the puppy20:50
rawconice, you’re a prepared parent :D20:51
Epx998they just unsnap it and run off20:51
=== PityDaFool is now known as AfroThundr|02

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