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

arooniso this is my gparted... i want to move the unallocated space under /dev/sda2 => /dev/sda1 (which is the boot and / partition)... but b/c they're on separate partitions i'm stuck.  (they are on the same physical drive though) https://imgur.com/a/Wo5bJ6b03:44
arooniasked in #ubuntu didnt really get any help03:44
=== Mr-Pan is now known as Mr_Pan
vltarooni: What did you ask there?06:38
lordievaderGood morning07:29
lordievaderarooni: You  can... but it will be a long and complex process.07:30
lordievaderFirst you move sda5 and sda6 to the beginning of sda2.07:30
lordievaderThen you shrink sda2 to the space of sda5 and sda6.07:31
lordievaderThen you move sda2 to the end of the drive (moving the unallocated space between sda1 and sda2).07:31
lordievaderThen you extend sda1.07:31
lordievaderIMO, it ain't worth it. I'd make a backup and reinstall with LVM. With LVM you don't have  these problems.07:32
maswanhm. the official guide seems to suggest that ubuntu can run on 256MiB VMs, but I have automatic updates failing here on a 512MiB host due to dpkg OOM:ing after eating >200MiB ram. Is this expected (and documentation should be updated), or dpkg/foo-issue?11:25
vltmaswan: 256 MB plus swap could work.11:27
maswanah, if I click through I get 512/1G recommended11:27
maswanhm. I do have 512M of swap too, but it doesn't seem to use it11:29
maswanah11:30
maswanvm.swappiness = 011:30
maswan(so, mostly ignore, I'll work on figuring out why it had a different vm.swappiness setting (from boot?) compared to what I get when I run sysctl -p --system...)11:36
mrtAkdenizHey there11:50
mrtAkdenizI'm trying to install xserver org and Nvidia drivers to ubuntu server11:51
mrtAkdenizBut seems like I'm having trouble11:51
mrtAkdenizhttps://gist.github.com/iquad/f937d8ead854ce206a447dc4896da23d here is the issue11:52
blackflowapt install patience12:11
smosero/14:54
rbasako/14:54
Ussatblackflow, I need to install that on my Director :)14:54
rbasaksmoser so the bits I care more about right now are more unit-type tests for git ubuntu build's changelogify and quiltify type functionality (that's horribly broken right now)14:55
smoseri hadnt looked at/seen the source_builder14:55
rbasakI'm keen not to block actual progress.14:56
smoserbut i'm fien to try to add tests that way. i agree we need more coverage there.14:56
rbasakIt'll probably need some refactoring to make things more testable.14:56
smoserwe are still in the scenario where we have to very carefully gate entry to trunk/edge ?14:57
rbasakAnd I'm happy for that to happen provided that it's being done directly for testability14:57
rbasakFor "build"? I think so.14:57
smoserrather than just being reasonably careful with trunk/edge and allowing testing there before stable14:57
smoserie,m why do we have 4 channels if they have all the same promises14:57
rbasakPerhaps I should be more revert-happy14:57
rbasakEspecially for build14:58
FastZI built a small file server for home use some time back using Ubuntu Server and at the time, only put in a single HDD. I will be cannibalizing another of my computers and want to move the HDD from that one to the Ubuntu server (hdd is same make/model/size) and set up a RAID array to add some redundancy there.15:08
FastZIs this possible to do without having to reinstall Ubuntu on the server or must I configure RAID on the two disks during a reinstallation?15:09
FastZthe server is running on an old Dell Optiplex 380 fwiw, so no RAID controller to work with.15:10
sdezielFastZ: that's probably doable but would be an interesting challenge15:13
sdezielFastZ: in other words, I'd try only if you: 1) have the time, 2) have the interest to learn it and most importantly 3) have known good/tested backups15:13
FastZyeah, i wonder if it would be worth the trouble honestly.15:14
FastZto try and set it up without reinstalling the OS that is.15:15
jlacroixHello everyone. I've Googled for this and can't seem to find a solution. (Maybe my search skills suck.) I have an older Poweredge server with an iDrac card. The web console of the iDrac card works great. The console requires Java, and I can't seem to get that to work. Is there something I'm missing? I think most browsers don't seem to support Java anymore.15:18
FastZthere's a setting on the main page of the idra web interface that you should be able to use to configure the console to use HTML5.15:19
FastZOn the idrac page, to the right of the console thumbnail, the settings link I believe it is15:20
jlacroixThanks FastZ, I will try that. It's a Powerdge T410 if that matters, from 2009 or so, I believe15:20
FastZoh, i can only vouche that this option is present for idrac6 or 7 and above. I think the oldest idracs we have at work at 6, but can't recall if they have the HTML5 option there or not. I know 7 and up do though.15:21
jlacroixThats good to know, I will check that when I'm back home15:22
blackflowUssat: heh :)15:23
hateballjlacroix: If you use Chrome there is https://chrome.google.com/webstore/detail/cheerpj-applet-runner/bbmolahhldcbngedljfadjlognfaaein15:33
hateballjlacroix: I've used it with... varying results15:33
jlacroixThanks hateball15:33
tewardrbasak: if you're around, do you have the ability to set a bug series approval on a bug for me?16:02
tewardran into a partclone bug that is pretty nasty in Xenial environments when working with large disk imagews.16:02
tewardand the bug needs a series approval for Xenial16:02
rbasakYep16:02
rbasakteward: did you have a bug number for me? :)16:09
tewardrbasak: disregard, hggdh is helping in -bugs16:13
hggdhdone16:13
tewardhggdh: thanks16:15
=== jelly-home is now known as jelly
rkantosHow should I be able to omit the default route when using dhcp-client? I'm having the same issues as here https://unix.stackexchange.com/questions/397368/prevent-eth0-from-adding-default-route16:39
blackflowrkantos: via /etc/dhcp/dhclient.conf I reckon16:46
blackflowah yes, as the first answer in that SO post suggested.16:46
tewardcyphermox: is there a way with netplan to get a DHCP IP address but override other bits like DNS server so that DHCP doesn't set them?16:47
tewardis it as simple as setting those bits while leaving dhcp4 enabled to true?16:47
rkantosteward: I asked about this @ #netplan, and also tried it.. no success16:47
rkantosI think the dhcp4: yes still makes the dhclient work based on it's config, and thus just do the default stuff16:48
openfireThere's a reason why I just use systemd.16:49
openfireWith networkd, it's trivial.16:50
blackflowindeedy.16:51
rkantosopenfire: What do you mean? I should make my own network startup script? :S16:51
openfireWhat? All netplan does is create config files for systemd-networkd.16:52
openfirerkantos: You could easily copy the runtime files from /run/systemd/network to /etc/systemd/network, remove /etc/netplan/*, and customize the .network file corresponding to the interface you want to edit.16:53
openfirenetworkd is quite simple to configure, I'll gladly help.16:53
rkantosI think the issue is not with networkd though, but isc-dhclient16:54
rkantosisc-dhcp-client rather / dhclient *16:54
cyphermoxteward: not yet, but there's code in master to do that16:55
openfirerkantos: I'm saying that you're going about this the hard way, if your goal is to ignore a DHCP gateway.16:55
rkantosopenfire: oh you mean I should just delete the route after dhclient runs??16:55
tewardcyphermox: ack.  thought that might be the case.  i have individual overrides in my DHCP for servers that don't need to inherit the rest of the DHCP scope configs, but thought I'd ask anyways.16:55
openfirerkantos: ... No.16:55
cyphermoxrkantos: what does your dhcp is networkd.16:56
openfirerkantos: You're using netplan, right?16:56
tewardcyphermox: thanks for the info :)16:56
rkantosopenfire: yes16:56
tewardrkantos: (cyphermox is netplan god by the way... it's why I pinged them directly with my question heh)16:56
openfirerkantos: That means you're using networkd. netplan CANNOT generate the correct configuration to ignore a route, it does not have this capability.16:56
cyphermox^ that16:56
openfireAlong with IPv6 tokens, privacy extensions, etc.16:57
cyphermoxat least not yet, as I pointed out, that's in master, but not released yet16:57
openfireThe EASIEST solution is to skip the netplan middleman, directly configure systemd.16:57
openfiresystemd-networkd, specifically.16:57
openfireIt's absolutely trivial to do this if you're using networkd directly.16:57
openfireTwo lines.16:57
rkantosopenfire: yeah, no I joined #netplan too..16:58
openfireOkay?16:59
rkantosBut I wasn't using netplan to configure the dhcp server, since the only thing I want to achieve is sending the hostname to the dhcp-server..16:59
rkantosSo netplan wasn't causing "my issue"17:00
openfire11:39 <rkantos> How should I be able to omit the default route when using dhcp-client? I'm having the same issues as here https://unix.stackexchange.com/questions/397368/prevent-eth0-from-adding-default-route17:00
openfireThat was your original question.17:00
cyphermoxrkantos: the point openfire is trying to make is that you can do this by configuring the client in networkd directly17:00
openfireYour hostname question is also trivial under networkd.17:00
rkantosopenfire: I thought that it would lead me to a solution since it wasn't using netplan either, though17:01
openfireWhat?17:02
rkantosand in the comment you can see he had the same issue with dhclient, where changes in config didn't change the behaviour17:02
rkantos(changes in dhclient.conf)17:02
openfireBecause networkd is controlling the interface, yes.17:03
openfireSo... The fix must be made using networkd.17:03
rkantosBut, sure, I am open to networkd suggestions17:03
openfireI don't really know what I keep having to argue this point...17:03
openfires/what/why/17:03
openfireYou're using networkd. Use networkd to resolve your issues. Mucking with random config files is NOT the best option.17:03
rkantosI believe you.17:04
openfireAnyway!17:04
openfireHow many interfaces do you have on the system in question?17:04
blackflowIdeally use networkd directly as it's all configurable in the one .network file for your connection. UseRoutes directive, see systemd.networ17:04
openfireExactly.17:04
blackflow... damn enter.  systemd.network manpage17:04
openfireI don't use netplan.17:04
rkantosopenfire: one or two, but of course mainly looking for the solution to the two if version17:06
openfirerkantos: So, I think the answer I'm after is 'two.'17:06
openfirerkantos: I'm assuming both are DHCP configured, but ONE should ignore the gateway.17:06
rkantosopenfire: no, the LAN is static17:07
blackflow(or both but you set routes manually)17:07
openfirerkantos: Okay, give me a brief synopsis of how both interfaces should be configured.17:07
rkantosBottom line is I want my router to just know the hostname of a static client without having to configure it to it on it, but instead just use dhcp to send the hostname to it. I don't want dhcp setting the routes again.17:08
openfireThis, my friends, is called an XY problem. So your issue is that you have a DHCP server on a router, you want it to send the hostname to the client.17:09
openfireBut only the hostname, not a default gateway, for some reason.17:09
openfireWhy not a default gateway?17:10
rkantosopenfire: no, I want the hostname from client to router17:10
openfirerkantos: For DNS purposes?17:10
rkantosyes17:10
openfireThen none of what you're using is right.17:10
rkantos:D17:10
blackflowwait... if the lan is static.... why not.... just put that hostname+ip config in the DNS resolver for your LAN.... STATICally....17:10
openfireDNS and DHCP are separate processes. You'll have to work up some mechanism to have the DHCP service tell the DNS service.17:11
openfireblackflow: XY problem at its finest.17:11
blackflowindeed.17:11
blackflowthe ugly cousin of Yak Shave.17:11
rkantosI want to keep it "simple" and not change stuff on my router when I create a new vm on my proxmox, basically17:12
openfireAnd what OS is your router?17:12
rkantosTomato17:12
openfireThen the issue is still solvable on the client.17:13
openfireNow, why DON'T you want DHCP to give out a default route, exactly?17:13
rkantosbecause I don't necessarily want the client to use internet through the lan17:13
openfireSooo... Firewall rules?17:14
blackflowsounds like you need a whole router+dns setup straight under your control, with that existing router being just an upstram node on the WAN/LAN boundary17:14
openfireBecause, in general, one does not control client access ON the client.17:15
openfireip route add BYEEEEE17:15
rkantosblackflow: yeah, sure I thought about that, but really don't see why I'd really like/need it at this point17:15
rkantosSo I want hostnames to work in my lan(s) under the Tomato router without setting up a whole DNS, and not having to config the static ips on the router every time17:17
rkantosI thought I would just be able to send the hostname with dhclient; Apparrently not that simple ( I understand if it is not a desired result, thus why it is difficult)17:19
blackflowthen just use dhcp for everything.17:19
blackflowsending DHCP client hostnames up to DHCP servers is part of DHCP and afaik every client implementation can do that.17:20
rkantosIt doesn't achieve not having to configure the router everytime :D17:20
blackflowwith networkd you can do it with SendHostname directive, see systemd.network(5) manpage.   dhclient has send-hostname option but I think we established that dhclient is just a XY redherring here17:21
theGoatso i want to use dd to clone a drive, is there a flag i can throw at it to only do used space on the drive17:21
blackflowso allow dhcp to dish out IPs, sethostnames, let it be the LAN's resolver. on specific clients that shouldn't use the default route, you simply configure the default route manually, with everything else the same, dhcp based.17:22
blackflows/allow dhcp/allow the router/17:22
blackflowtheGoat: no. block base has no concept of "used space", that's filesystem, one level above.17:23
openfiretheGoat: dd has no concept of filesystems, so it has no concept of used vs empty. You could consider rsync.17:23
rkantosblackflow: But doesn't that mean I need to configure every vms static ip on the router everytime?17:24
blackflowrkantos: no. routers/dhcp-servers have the ability to integrate with DNS resolvers17:24
blackflowso your clients send out the desired hostname and the dhcp assigns the IP for it and tells to the DNS resolver the combination of hostname + ip17:25
blackflowrouter applianes are probably working like that by default.17:25
blackflow*appliances17:25
rkantosHmm, ok.. I guess this is a question to Proxmox.. But since Proxmox manages the networkd configuration (in addition to additional Netplan config); Where can I put the SendHostname config other than proxmox's generated config?17:30
blackflowI don't know what and how Proxmos does anything, sorry. SendHostname is for systemd-networkd, namely the confg option of a .network unit for a connection.17:33
blackflow*Proxmox17:33
rkantosyeah, eth0.network reads: Description = Interface eth0 autoconfigured by PVE17:35
rkantosIt is nuked at every reboot, obviously17:37
blackflowrkantos: does proxmox even allow dhcp for VMs? I found some older forum posts that say Nope.17:38
blackflowsee, thing with virtualization (again, I don't know how/what Proxmox does specifically, but in general and say with qemu-kvm) is this. on the host side you have a bridge and every VM gets a virtual NIC on it. That's just virtualized hardware. then the VM's own operating system must have a dhcp client that deals with its own networking.17:40
rkantosThe options are there in 5.x at least, and they work17:40
blackflowso then the SendHostname question is for VM guest OS and its config.17:40
rkantosyeah, i know.. But it won't work with the default eth0.network config, as it gets wiped out by Proxmox at every reboot (for the lxc containers at least, have not tested with kvm, yet)17:41
blackflowwhat won't work exactly? VMs have no clue what eth0.network is, on the host side. the only way host does is a bridge.17:42
blackflowis Proxmox setting up jsut that? a bridge based on eth0?17:42
rkantosI think with KVMs, it doesn't change the vms networkd config at all, as it does with LXC17:42
rkantosblackflow: eth0 here is the name of the interface on the vm itself17:43
blackflowwait wait wait. Is this virtualization or containerization? some people use "virtualization" for _both_ and it is completely wrong.17:43
rkantosblackflow: LXC, so I guess containerization17:44
blackflowthe difference being that in a VM, you only, ONLY, get virtualized hardware and your "guest" VM OS needs a kernel to deal with it.17:44
rkantosyeah17:44
blackflowcontainers are namespaces and thus share the host's kernel, IPC, networking, etc..... yuge difference.17:44
plmHi all17:47
blackflowunfortunately I have very little experience with containers and network namespaces, so I'm not sure I can help with that specific issue there. afaik individual containers _can_ have their own dhcp clients becasue the network is namespaced -- if set up that way of course, so it could still be the same solution -- individual dhcp clients in containers.17:47
rkantosblackflow: yeah, I think it works close enough it has no difference, it has it's own MAC etc, vlans work without issues etc.. The problem is just that the networkd configuration is also managed by Proxmox, so I cannot change the default .network -config.. That was the main reason why I was trying to make dhclient "stupid" (send only the hostname)17:49
blackflowrkantos: at this point I belive this is very proxmox specific issue.17:52
rkantosblackflow: well yes of course, since apparretly dhclient / netplan won't work the way I thought or wanted. Already making noise on their irc-channel :P17:53
blackflowmy personal dislike for netplan aside, I believe you should disable it in that setup, unless proxmox is using it directly. but note, netplan is JUST config abstractor. the actual management is done by a backend, networkd probably (because the only ohter supported atm is NM)17:54
blackflowbecause too many layers can only mean huge mess and you know.... too many cooks spoil the broth.17:54
rkantosHmm.. Now that I think about it.. How can I configure additional network configuration a bit like netplan? The Netplan configuration works (and thus coexists) as it creates a route to a 2nd lan I have..17:58
blackflownetplan is just abstractor. take a look at .network unit it creates, copy it and modify.17:58
rkantoscan I just create a 1-eth0.network config with additional config? netplan seems to have a /run/systemd/network/10-netplan-eth0.network file on the vm17:59
rkantosProxmox generated config is at /etc/systemd/network/eth0.network18:00
blackflowyou can name it as you want, but place it under /etc/systemd/nework. netplan does it under /run/.... because it's using systemd generators for run-time creation of networkd unit from the yaml based config.18:00
blackflowsounds likea  conflict to me, if they're BOTH configuring for the same interface.18:01
blackflow(cooks, broth...)18:01
rkantosmaybe this is the reason I need to be here.. As that seems like a solution18:02
rkantosAs I said, the netplan config seems to work though, as it creates the one route that I want.. Maybe I can add just the SendHostname in there somewhere too?18:02
rkantosIf I have just [DHCP] and SendHostname=true .. Will that do other default stuff or will I need to set false to all of them too?18:05
blackflownot sure what you're asking. netplan doesn't have SendHostname directive, that's networkd. If it has another yaml config option for the same effect, I don't know.18:07
rkantosblackflow: asking about networkd manual configuration... How should I name a file that networkd would read after eth0.network?18:15
blackflowrkantos: "read after"? systemd units don't work like that based on filenames. you express before and after relationships in the units themselves18:16
blackflowbut yeah they are processed from disk, in lexical order18:17
rkantosok, I misunderstood the "lexical order" bit18:18
blackflowI mean, if two files deal with the same interface, being processed in that order makes a difference. if that's what you were asking.    also same filenames replace each other ,  eg /etc/.../eth0.network replaces stuff under /run/.../eth0.network18:19
blackflowwait, I _think_ etc has higher priority... lemme check18:19
blackflowah yes. /etc over /run over /lib.18:20
rkantosyeah that's what I meant / thought18:21
rkantosIf I create config similar to netplan at /etc/systemd/network/1-eth0.network , it doesn't work like netplan did at /run/systemd/network/10-netplan-eth0.network18:22
rkantose.g. the routes that netplan had added to /run are not being applie from the file i created @ /etc18:23
openfireBecause the one in /etc overrides the one in /run.18:23
openfireThey're not additive.18:23
rkantosHuh? Didn't I just say that the one in /run (the Netplan generated one) worked? :S18:24
openfireNo. And I'm tired of you not being clear about things, so I'm going to go do other things.18:24
ahasenackrbasak: still around?18:34
rkantosOk, I appreciate the help18:37
ahasenackrbasak: n/m, sorry for the ping :)18:39
rkantosIs there a way to only send the hostname if I have this as the networkd config that unchangeable? https://pastebin.com/VeLPbBda18:41
blackflowrkantos: no. DHCP = none means no dhcp. no dhcp = no hostname sent  via........ dhcp :)18:46
blackflowrkantos: take the netplan generated .network from /run and stick that under /etc/...  and modify as you want. then disable netplan (remove any configs from /etc/netplan/)18:47
blackflowrkantos: but _again_  if proxmox is managing the NIC, you shouldn't do additional configs like that. either leave it to proxmox or do it all manually and disable even proxmox from doing that.18:48
rkantosOk, though doing anything with Netplan doesn't change the issues with sending the hostname.. Again, this was why I thought I could just use dhclient.conf & dhclient to send only the host name. Oh well I guess I'll see if there is Proxmox stuff where I could disable the DHCP = none default18:54
blackflowat which point why don't you leave the IP assignment to DHCP?18:56
bane500hey guys, is it possible to have two bonds each using round robin19:00
bane500using ifenslave19:01
rkantosblackflow: I think the main reason is I don't want to run the Tomato router WebUi or SSH so that it can be accessed from the LAN.. I could instead add one physical port to it for management only. That would mean I would have to physically connect to the router everytime I want to add static IPs for the DHCP server.19:02
sdezielahasenack: I've open some merge requests on Debian's salsa and haven't yet receive any ack. Do you know if I should open Debian bugs and link them to those MR?19:02
sdezielbane500: as in 4 NICs bundled in 2 bonds?19:03
ahasenacksdeziel: maybe, yeah. I heard that by default salsa doesn't email the maintainers about new MRs, unless the maintainer explicitly chose to opt-in19:03
sdezielahasenack: ah bummer, thanks!19:03
ahasenackI had such a case once with krb519:03
bane500sdeziel: yeah19:03
sdezielbane500: each bond is independent so yes19:04
bane500sdeziel: ah okay. I'm getting an error right now when i attempt to restart networking services. Only 1 bond is coming up, the other bond is erroring out stating 'waiting for a slave to join bond0'19:04
blackflowrkantos: OR.... use DHCP normally, have the router dish out IPs and see if it works by adding names received via DHCP, to its DNS resolution pool.19:05
bane500sdeziel: oh and also 'bond0: option mode: unable to set because the bond device has slavs'19:05
bane500slaves*19:05
sdezielbane500: it's possible that you need to select the mode prior to having slaves joining19:06
sdezielbane500: my only setups using bonding are running 16.04 but it shouldn't matter much (except for no ifupdown on 18.04). Anyway, with those I have no problem using different xmit-hash-policy on separated bonds19:07
bane500sdeziel: is it possible that I can only have 1 primary interface19:08
sdezielbane500: that would be active-passive mode, no?19:08
bane500sdeziel: not sure.19:09
sdezielbane500: maybe this /etc/network/interfaces extract will help you: https://paste.ubuntu.com/p/vJCFN9Q2cK/19:10
sdezielbane500: I now realize I'm using the same mode on both, sorry for the misdirection19:14
bane500hmmm19:14
bane500sdeziel: here is the error i'm receiving: https://pastebin.com/PqAa1VFE19:14
rkantosblackflow: yes, naturally that will work until I want a vm to use a second interface with a public ip using dhcp(e.g. dynamic public ip), unless I can use networkd to then remove the default route from the lan interface.19:15
blackflowrkantos: you _can_ do that. it's only a question of _default_ confiugration vs individual configuration for a particular VM19:15
sdezielbane500: I just tested and I can flip my bond1 to "balance-rr 0" while keeping the bond0 as "802.3ad 4" so my claim is still valid, phew ;)19:15
bane500hahaha19:15
sdezielbane500: how's your /e/n/interfaces file like?19:16
bane500sdeziel: just pm'd it do you19:18
rkantosblackflow: How would I achieve that then when taking the Proxmox forced config in to account (https://pastebin.com/VeLPbBda) ?19:18
blackflowrkantos: I don't know how to work with Proxmox. that's why I mentioned earlier that this is a proxmox issue, not an ubuntu one.19:19
blackflowbut you _can_ have VMs default to regular DHCP networking and have individual VMs override route or whateve you wanna overide.... then again, are those VMs or containers.... :)19:20
rkantosblackflow: Yes. I'm just thinking that since Netplan configuration can have an effect (and "coexist") to some level with the forced Proxmox config.. I could still do something with networkd - too.19:20
rkantosblackflow: I'm using LXCs all the time. As I said previously, I think the KVMs wouldn't have this issue, because their addresses cannot be set from the Proxmox WebUI19:22
blackflowagain....... netplan is just configuration abstractor. it creates a .network unit file. if it manages the same NIC as proxmox that ALSO creates a .network unit file, you have conflict on several levels there.19:22
blackflowif those are not virtual machines but containers, don't use the name "VM" for them please, you'll just confuse anyone trying to understand your problem.19:22
blackflowcontainer != VM. LXC != virtualization.19:23
rkantosblackflow: ok19:53
rkantoshmm... Maybe this could work! If I have the Netplan generated config modified by adding the "SendHostname under [DHCP]" and Proxmox / lxc forced configuration set to DHCP, no default route is set!20:00
blackflowrkantos: why tho'. if proxmox is handling it, why have netplan in the game.20:07
blackflowyou need to adjust what proxmox does, or force a manual configuration (when then can be manual .network or netplan if you prefer it)20:07
rkantos_Without_ the additional eth0 config (either manual or Netplan generated..) and dhcp enabled on the lxc, the default routes are set. I thought networkd would also set the routes when specifying some [DHCP] options. If it really works this way, then I can use Netplan to configure additional routes and just add a /etc/systemd/networkd/1-eth0.network with the [DHCP] SendHostname ! I think this is all20:08
rkantosthat I needed.20:08
blackflowI have this feeling you've ignored everything said so far and keep pusing your initial conflicting configuration. well, good luck. ;)20:09
rkantosblackflow: if it works with it, I'm satisfied. Netplan comes by default on the lxc templates that you can use with Proxmox, so I guess it cannot be all bad..20:13
rkantosIt seems now that if I set a "static ip" IP in Netplan / networkd, then just enable the Sendhostname and leave DHCP otherwise enabled (from Proxmox for the lxc); DHCP requests the IP configured and doesn't set default route! This is what I wanted. Too bad it is not possible to set an IP with DHCP from the Proxmox GUI.20:16
blackflowyou have two different networking managers competing to configure one NIC. even if it (coincidentally) works, the fact remains that you have two managers trying to configure one NIC independently.20:16
Ussat^^ THAT20:16
Ussatyou need to choose one20:16
blackflow(and managers is wrong word, netplan doesn' tmanage anything, it creates a .network unit form yaml and then pings systemd-networkd to apply it)20:18
rkantosI don't see it as a major issue if it works and the config that I would do would be exactly the same anyway. (well apart from Netplan not being able to configure the [DHCP]SendHostname)20:21
blackflowreboot and you'll see :)20:21
blackflow(after you've changed proxmox or netplan generated .network files, manually)20:21
rkantosthat's what I am doing when I'm testing it, constantly, along with flushing the routing table (ip route flush table main && reboot)20:22
blackflowthen you made the changes persisten through another .network unit?20:23
rkantosblackflow: Ussat ok you're right :)20:38
rkantosI'll just add a 2nd .network @ /etc with the "static ip" and [DHCP] and it works.. It seems to work.20:39

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