/srv/irclogs.ubuntu.com/2020/11/24/#ubuntu-server.txt

eoli3n_Hi08:07
eoli3n_https://bugs.launchpad.net/subiquity/+bug/190529608:07
ubottuLaunchpad bug 1905296 in subiquity "autoinstall crash with python3[1872]: segfault" [Undecided,New]08:07
eoli3n_i found in my crash file that after installer ran, it mounnt-bind /etc/apt/source.list to /target/apt/source.list08:07
eoli3n_problem is that i use an iso, uncompressed and served as nfsroot08:08
eoli3n_so i get -> Failed to fetch file:/cdrom/dists/focal/main/binary-amd64/Packages08:08
eoli3n_is there a way, maybe with a kernel paramater, to tell the iso to only use distant repositories ?08:09
TJ-eoli3n_: usually /cdrom is a bind mount to the ISO9660; presumably you can adjust that for the unpacked scenario08:10
eoli3n_to ways, first is to use an early_command in cloud-config to remove the cdrom source line08:11
eoli3n_or early command to bind mount /cdrom to "i need to find where is mounted nfsroot"08:11
eoli3n_but ubuntu-server iso should handle that case, and provide an "netboot=yes" option to cmdline08:12
TJ-but but but its all 'cloud' nowadays ... which ironically doesn't play well for netboot!08:13
eoli3n_TJ- or maybe i misuse something08:15
eoli3n_beeing able to nfsroot insteaf of loading a 900MB iso should be handle08:15
eoli3n_d08:15
eoli3n_the first problem is that 900MB iso08:15
eoli3n_no netboot UEFI iso anymore08:15
eoli3n_Legacy one is 60MB08:15
eoli3n_https://discourse.ubuntu.com/t/netbooting-the-live-server-installer/1451008:16
TJ-eoli3n_: don't need to tell me! I dispensed with the installer about 8 years ago08:16
eoli3n_so how do you do ?08:17
eoli3n_you bootstrap manually ?08:17
eoli3n_with a personnal script ?08:17
TJ-eoli3n_: we use debootstrap to create the base images and chroot to prepare them, then we use per-device bind-mounts for things like /etc/hostname /etc/hosts and /etc/machine-id08:19
TJ-eoli3n_: those are served via PXE/NFS to the workstations08:20
eoli3n_any resource to share ?08:28
eoli3n_maybe debootstrap is the solution yes08:29
eoli3n_in legacy, i deploy with netboot, then ansible installs everything as i want it too08:29
eoli3n_in pull mode08:29
eoli3n_TJ- https://x0.at/ioy.png08:33
eoli3n_strange08:33
eoli3n_so this should work08:33
TJ-eoli3n_: there's nothing to share; deboostrap creates the base rootfs install (has options to add additional packages etc.) - you can use it to build foreign architecture (e.g. aarch64 on amd64) in conjunction with qemu-user-static too (q-u-s allows you to chroot into the foreign arch and work in it natively)08:34
TJ-eoli3n_: your image suggests it should have worked assuming the command to access /cdrom/... was AFTER the mount was put in place08:36
eoli3n_i don't get what you mean08:37
eoli3n_here you can see that cdrom is actually working08:37
eoli3n_https://x0.at/iaa.txt08:37
eoli3n_file for exemple release.gpg worked08:38
eoli3n_but not Packages08:38
eoli3n_i reproduced, installer just crashed, then i checked:08:42
eoli3n_the file /cdrom/dists/focal/main/binary-amd64/Packages doesnt exists08:43
eoli3n_the file /cdrom/dists/focal/main/binary-amd64/Packages.gz does08:43
TJ-eoli3n_: that does look weird ... apt should look for a .gz and fall back to plain uncompressed08:45
TJ-eoli3n_: check what the 'Releases' file lists - does it contain the Packages.gz and Packages08:46
TJ-eoli3n_: this is what the file in the archives looks like for reference: http://archive.ubuntu.com/ubuntu/dists/focal/Release08:47
eoli3n_http://sprunge.us/Lshlss08:47
eoli3n_oh ok08:47
eoli3n_not that file08:48
eoli3n_http://sprunge.us/6ry6y208:48
eoli3n_so yes, it should fallback08:48
eoli3n_no08:49
eoli3n_it should find the first one which is .fgz08:49
eoli3n_.gz08:49
TJ-eoli3n_: trying to decompose your shell log, notice how early on after overlay-mounting /target/etc/apt/ it then does "mv /target/etc/apt/sources.list /target/etc/apt/sources.list.d/original.list" followed by "apt update" in separate namespace (using 'unshare')08:53
TJ-eoli3n_: I wonder if this is a clue: "start: cmd-install/stage-curthooks/001-configure-apt/cmd-in-target: curtin command in-target "08:53
eoli3n_yep but in any way, during the apt update process, some files are found, some other are not.08:53
eoli3n_lets try to check that file08:53
TJ-eoli3n_: what does " /target/etc/apt/sources.list.d/original.list" contain?08:53
eoli3n_lets check08:53
* TJ- loves debugging08:54
eoli3n_http://sprunge.us/OpHYUC08:55
TJ-eoli3n_: those messages about Packages 18.7KB must refer to the Release file "... 18748 main/binary-amd64/Packages.gz"  ( Get:8 file:/cdrom focal/main amd64 Packages [18.7 kB] )08:56
eoli3n_but /target/etc/apt/source.list contains only the cdrom line08:56
eoli3n_what do you mean ?08:56
eoli3n_you want me to check Package.gz checksum ?08:56
TJ-eoli3n_: those messages above tell us that apt was trying to read Packages.gz (since it is the 18.7KB file)08:57
TJ-eoli3n_: no, you'd know if the hash didn't match - this is "file not found"08:57
TJ-eoli3n_: show us the cdrom line from sources.list08:57
eoli3n_ /target/etc/apt/source.list : http://sprunge.us/ZSPK8j08:58
eoli3n_du should output in Byte by default right ?08:59
eoli3n_oh no ok -b09:00
eoli3n_so yes Packages.gz is 18748 bytes09:00
TJ-eoli3n_: on the NFS server, ensure that the entire path can be traversed and files read by a client09:01
eoli3n_it does, because i'm using it right now09:01
eoli3n_for all those tests09:01
eoli3n_https://github.com/eoli3n/vagrant-pxe/blob/dev/roles/nfs/files/exports09:02
TJ-eoli3n_: how about by the uid that runs the installer? notice it uses 'unshare' -- maybe that breaks something09:02
eoli3n_unshare ?09:02
eoli3n_what is that09:02
eoli3n_just checked, subiquity runs as root09:03
eoli3n_ohh09:03
eoli3n_maybe a root squash or no root squash09:04
eoli3n_i never remember which one maps "root" perms09:04
TJ-it's a namespace tool - notice it is forking into a separate PID namespace -- and NFS client usually needs idmap and so on which'll remain in the parent PID namespace if my thinking is correct09:04
TJ-see "man 7 pid_namespaces"09:04
eoli3n_"no_root_squash" which i use, gives root perms on nfs server, so no problem with this09:05
eoli3n_i'm reading this09:06
eoli3n_but how to test if unshare messed up something09:06
eoli3n_diff source and dest ?09:06
TJ-eoli3n_: is /target/ still mounted?09:06
eoli3n_it does09:06
eoli3n_installer crashed but it is still running, so that behaviour let me check the exact state of the problem09:07
TJ-eoli3n_: if so you can use "unshare --fork --pid -- chroot /target /usr/bin/bash" to enter and check if all of the /cdrom/ mount is readable09:07
eoli3n_lets try09:07
TJ-eoli3n_: if we're correct you'll not be able to find that Packages/Packages.gz file09:07
TJ-eoli3n_: or you'll see the directory entry but not be able to read the file itself09:08
eoli3n_i do see the file09:08
eoli3n_but bash shows it in red color09:08
eoli3n_i don't know what it means09:08
TJ-eoli3n_: just thinking - on the NFS server, is the entire ISO permanently extracted, or is the iso just mounted09:09
eoli3n_extracted -> https://github.com/eoli3n/vagrant-pxe/blob/dev/roles/ubuntu/tasks/main.yml#L1409:09
eoli3n_i can't tar xvf Packages.gz09:09
TJ-eoli3n_: the colour comes from the 'ls' command - can't recall what red means but do "ls -l path/to/file" to get its details09:09
eoli3n_ls -l show nothing strange09:10
eoli3n_tar: This does not look like a tar archive09:10
TJ-eoli3n_: try "zcat Packages.gz"09:10
eoli3n_zcat works09:10
TJ-eoli3n_: ok, and this is from the 'unshare' chroot ?09:10
eoli3n_it does09:10
TJ-eoli3n_: hmmm!09:10
TJ-try runinng "apt-update" to replicate the original issue09:11
eoli3n_yep, it broke with more informations09:11
TJ-if we can reproduce the error, we can add debugging options to apt to get it to report what it is doing09:11
eoli3n_let me paste09:11
TJ-eoli3n_: OK, and I'll look up the appropriate Debug:: option09:11
TJ-eoli3n_: this: "apt -o Debug::Acquire::cdrom=true update"09:12
eoli3n_http://sprunge.us/VuoYWd09:13
eoli3n_this should be useful09:13
TJ-eoli3n_: other Debug:: options can be found towards the end of "man apt.conf"09:13
eoli3n_oh09:13
eoli3n_sorry the paste miss some lines09:13
eoli3n_https://x0.at/7EZ.png09:14
eoli3n_huhu spaced paste09:14
eoli3n_do you still want with debug ?09:14
eoli3n_https://askubuntu.com/a/90882509:16
eoli3n_i do not have any /cdrom/dists/focal/InRelease file09:18
eoli3n_even outside the unshare chroot09:18
eoli3n_if i chroot without unshare, i get that same error09:19
eoli3n_so unshare, is not the problem09:19
eoli3n_ohhh09:20
eoli3n_i know09:21
eoli3n_the mess up comes from https://github.com/eoli3n/vagrant-pxe/blob/dev/roles/ubuntu/tasks/main.yml#L3309:21
eoli3n_i chown -R /var/www/focal to www-data09:21
eoli3n_it should be related, lets try to fix this09:23
TJ-eoli3n_: that'd do it, because NFS relies on matching uid/gids09:24
eoli3n_ok09:25
eoli3n_thanks for your help09:26
TJ-eoli3n_: note that often the InRelease file isn't used; that is just a combination of the Release + Release.gpg files ('In' means the GPG signature is 'inline' )09:27
eoli3n_ok09:27
TJ-eoli3n_: so that may not be the problem09:27
eoli3n_hm09:27
eoli3n_lets fix this anyway09:28
eoli3n_and retry09:28
eoli3n_i wonder if i need to serve only initrd and vmlinuz as /var/www/focal with www-data09:28
eoli3n_and export nfsroot from another dir09:29
TJ-InRelease will start with "-----BEGIN PGP SIGNED MESSAGE---- and the Hash: used09:29
TJ-eoli3n_: check on the NFS server for logs indicating errors/denied reads09:29
eoli3n_i destroyed my stakc09:29
eoli3n_in a couple of minute if i can reproduce09:30
TJ-eoli3n_: the weird part here is this: If the chroot /target/ manages to read the /cdrom/dists/focal/Release file then there is no reason it shouldn't also read the /cdrom/main/binary-amd64/Packages.gz09:31
TJ-eoli3n_: *unless* it is trying to locate Packages.gz by its hash and the hash symlink doesn't exist!09:32
TJ-eoli3n_: this might be it!09:33
TJ-eoli3n_: does the exploded /cdrom/ have a ./by-hash/ directory alongside the ./main/  ?09:33
eoli3n_i answer all of that just when my server is up09:34
TJ-:)09:34
TJ-this would make sense; did you do a test earlier using that -o Debug::Acquire:cdrom=true ?09:34
eoli3n_lets try with this -> https://github.com/eoli3n/vagrant-pxe/commit/3fcc67db45fed8a233dbee6f67dbca5cccb3eb5b09:42
eoli3n_its provisionning09:42
eoli3n_ok client is booting10:00
eoli3n_lets wait for it to crash (or not hehe)10:00
eoli3n_now installers is looping10:04
eoli3n_...10:04
eoli3n_i already have that problem10:04
eoli3n_had10:04
eoli3n_third loop, lets try to see if it crash at a point10:05
eoli3n_(it loops without rebooting)10:06
TJ-looping? you mean the installer restarts itself?10:06
eoli3n_yes, with my space eyes, i just see that i crash at the same point than before10:07
eoli3n_just after "configuring apt"10:07
eoli3n_but i can't be sure10:07
eoli3n_lets try to catch a screenshot10:07
eoli3n_what a debugger... thanks ubuntu10:07
TJ-eoli3n_: if the installer runs multiple times (loops) and in a later run it fails like this, then the cause could be multiple mounts-on-mounts if it didn't clean up before starting the next loop10:08
eoli3n_i screenshot just before it restart : https://x0.at/COS.png10:08
eoli3n_hm10:09
eoli3n_lets check mounts on tty210:09
eoli3n_http://sprunge.us/o3E8MV10:10
TJ-have you searched subiquity for similar bug reports?10:10
eoli3n_yep10:10
eoli3n_i found some "subitquity loop" issues10:11
eoli3n_but nothing relevant10:11
eoli3n_https://bugs.launchpad.net/snappy/+bug/161723210:11
ubottuLaunchpad bug 1617232 in subiquity (Ubuntu) "subiquity goes into endless configuration loop, no way to get out" [High,Invalid]10:11
=== denningsrogue2 is now known as denningsrogue
eoli3n_that's crazy10:36
eoli3n_at each run i get a different error10:36
TJ-eoli3n_: have you checked for network errors?10:36
eoli3n_https://x0.at/Civ.png10:36
eoli3n_network errors ?10:36
eoli3n_VMs are hosted on the same hypervisor10:37
eoli3n_apt update works outside the chroot10:37
eoli3n_maybe you're right, at some boot, i get moutn error10:39
eoli3n_https://x0.at/pUY.png10:39
eoli3n_mounting from the server itself failed until i exportfs -r10:42
eoli3n_strange10:42
eoli3n_ok i found, i have two interface on the vm10:49
eoli3n_if i drop the second on, its working10:51
eoli3n_one10:51
eoli3n_problem is that, that interface give gateway to internet10:51
eoli3n_by its working i mean, no nfs connectivity problem10:54
eoli3n_but then i enter the endless loop anyway10:55
mrkewl20Hi guys, what do you recommend for me to use to establish a _reliable_ remote desktop connection with my server? (GUI)11:00
mrkewl20RDP or VNC? and which software specifically11:02
eoli3n_mrkewl20 consider spice too, it is used by qemu by default11:05
eoli3n_https://www.spice-space.org/index.html11:05
mrkewl20I used xrdp but I want to switch since I have screen tearing a lot and the connection between and my server is completely fine11:06
eoli3n_https://www.spice-space.org/spice-user-manual.html11:07
mrkewl20Actually spice sounds cool I might give it a try thank you for mentioning it11:07
eoli3n_you're welcome11:08
eoli3n_TJ- with debug acquire -> https://x0.at/zUR.png11:15
eoli3n_no "by-hash" dir11:17
eoli3n_only "main Release Release.gpg restricted"11:18
eoli3n_https://x0.at/3Pi.txt11:52
eoli3n_how to find what is this "cmd-install/stage-curthooks/001-configure-apt/cmd-apt-config"11:52
eoli3n_because it test something which is true11:53
eoli3n_then it move source.list to source.list.d/...orig11:53
eoli3n_at this point /target/etc/apt/source.list contains cdrom11:53
eoli3n_between that mv, and the crash11:53
eoli3n_something put cdrom as main source11:54
eoli3n_complete crash file -> http://sprunge.us/ToqZRL11:54
TJ-eoli3n_: despite extensive searching I cannot locate the original source-code for that 001-configure-apt - hecked both the curtin and subiquity source trees12:20
eoli3n_hm12:20
eoli3n_thanks for you help TJ-12:20
eoli3n_asked on #ubuntu-devel12:21
TJ-looks like another bloody snap! running '/snap/bin/subiquity.subiquity-configure-apt /snap/subiquity/1966/usr/bin/python3 true'12:21
eoli3n_waiting for an answer12:21
eoli3n_yep12:21
TJ-didn't realise I wasn't in that channel!12:21
eoli3n_maybe lets discuss it there ?12:21
TJ-generally the -server team work in this channel, although most are likely in UTC+5+ timezones12:22
TJ-eoli3n_: best clue so far "subiquity-configure-apt" at https://git.launchpad.net/subiquity/tree/examples/snaps/v2-snaps-subiquity.json12:27
eoli3n_hm12:27
eoli3n_it doesnt tell so much things12:27
TJ-eoli3n_: found that at https://git.launchpad.net/subiquity/tree/bin/subiquity-configure-apt12:29
eoli3n_TJ- the funny thing is that i'm trying to load installer with iso file instead of nfsroot12:30
TJ-eoli3n_: notice items 4a and 4b in the header comment12:30
eoli3n_everything going well, then it stuck at loading system12:30
eoli3n_without any warning error info12:30
eoli3n_nothing12:30
TJ-eoli3n_: AND item 5!12:30
TJ-"if network not expected to be working ..." mentioned several times12:30
eoli3n_yep12:31
eoli3n_i have a strange setup12:31
TJ-line 47 sets the overlay12:31
eoli3n_but what is the network test12:31
eoli3n_ ?12:31
TJ-line 55/56 suggests your install HAS_NETWORK==true12:31
TJ-line 56 is what we see happening in your crash log12:32
eoli3n_yep but how HAS_NETWORK is set ?12:32
eoli3n_HAS_NETWORK=$212:32
eoli3n_so we need to find how that script is called12:32
TJ-right, and reading to end of this script, you can see line 63 onwards is reflected in your crash log12:32
TJ-I wouldn't worry about how it is called; that all looks sensible now we've found it12:33
eoli3n_yep it does12:33
eoli3n_good catch12:33
eoli3n_my problem is that my VM has two interfaces12:33
TJ-last line being apt-get update means if there is a failure it is in this script, or prior to this script being called12:33
eoli3n_the first one has a gateway to internet12:33
eoli3n_the second one is isolated network to pxe server12:34
eoli3n_if a server has two interfaces with two gateways set by dhcp12:34
eoli3n_which one will work ?12:35
eoli3n_the latest set ?12:35
TJ-'depends' on which has the route to the target12:35
eoli3n_which what ?12:35
TJ-in your case I'd assume since it is managing to work from the NFS mount that routing is fine12:35
eoli3n_TJ- not really because i'm facing that issue at a toper level12:36
eoli3n_its random12:36
eoli3n_when i boot pxe my VM, then ip=dhcp casper arguments set two interfaces12:36
eoli3n_then if i'm lucky it has the right default if12:36
eoli3n_if i'm not...12:36
eoli3n_i think the same thing happens at differents level12:36
eoli3n_i have 3 dhcp queries. first one is from pxe client, then from booloader, then from client12:37
eoli3n_my guess is that bootloader and client network setup sets a random default route12:38
eoli3n_default gateway*12:38
eoli3n_you can have only one default gateway12:38
eoli3n_so i need to find how to force one12:38
eoli3n_maybe i need to ensure that my pxe dhcp doesn't give any default gateway12:39
eoli3n_i don't push any gateway https://github.com/eoli3n/vagrant-pxe/blob/dev/roles/dhcp/files/dhcpd.conf12:40
eoli3n_lets test routes on the client12:40
eoli3n_https://x0.at/7fl.png12:42
eoli3n_when i fails to boot you can see that the wrong IF is set first12:42
eoli3n_then it goes12:43
eoli3n_without waiting for the second one12:43
eoli3n_192.168.122.0 is the wrong network12:43
TJ-eoli3n_: there can be multiple default routes, with differing metrics12:43
eoli3n_i need ens6 first12:43
eoli3n_never seen that12:43
eoli3n_when i force ens6 interface in cmdline with ip=ens6 it seems to work12:44
eoli3n_for that part12:44
TJ-so you need to set which interface in the initrd12:45
eoli3n_then i need to debug the client12:45
eoli3n_yep but ens6 isnt predectible isn't it ?12:45
eoli3n_i'm trying to force an interface name with vagrant12:45
eoli3n_ah !!12:46
TJ-eoli3n_: how about setting BOOTIF= or better still hwaddr=12:46
eoli3n_https://x0.at/UyR.png12:46
eoli3n_ah no, its like it should be12:47
eoli3n_default on network which gateway has internet connectivity12:47
TJ-eoli3n_: on a regular Ubuntu install do : "cd /usr/share/initramfs-tools/" then "grep -rn BOOTIF ." and you'll see that setting that on kernel-command line to the MAC address of the interface should do what you want12:48
eoli3n_TJ- what differs from casper's ip=$if ?12:48
eoli3n_ip=$if does the trick12:49
eoli3n_or maybe i'm super lucky, then i need to make some more tests12:49
TJ-eoli3n_: look at the comment against configure_networking() in scripts/functions12:49
TJ-eoli3n_: it is designed for your multi-interface use-case12:49
eoli3n_in scripts/functions of ?12:50
eoli3n_sorry i loose it :/12:50
TJ-eoli3n_: /usr/share/initramfs-tools/scripts/functions12:50
eoli3n_oh ok12:50
TJ-eoli3n_: the scripts inside the initrd are rooted from /usr/share/initramfs-tools - in there, the 'init' script is what is being executed when the system is booted12:51
TJ-that's the script the kernel executes, and is responsible for getting the root-fs ready12:51
eoli3n_but what i don't get is, to solve what do you want me to set it ?12:52
eoli3n_because my VM has network connectivity, if i ping google.fr , it goes12:52
eoli3n_so problem seems to be about the test12:52
eoli3n_HAS_NETWORK one12:53
eoli3n_do we agree ?12:53
TJ-eoli3n_: you said a few moments ago the boot-time i/f was wrong; this BOOTIF= is the way to solve that issue12:53
eoli3n_yep but i said also that ip=$if solved this too12:53
TJ-eoli3n_: no - because HAS_NETWORK is only a boolean, and as we've seen it is set to true, so that is the correct behaviour12:54
eoli3n_where do you saw that its set to true ?12:54
eoli3n_i saw that its set to $212:54
eoli3n_or maybe i missed something12:54
eoli3n_lets recheck12:54
eoli3n_TJ-: line 55/56 suggests your install HAS_NETWORK==true12:55
eoli3n_ok i get it now12:56
eoli3n_no network issue12:56
eoli3n_but it configure cdrom source in any cases12:56
eoli3n_so, no way to disable it12:56
TJ-eoli3n_: it's still not clear what causes the 'file not found' error for Packages.gz when Release/Release.gpg were read a moment before12:57
eoli3n_you're right12:57
eoli3n_but it looks on nfsroot, so maybe its related to this12:58
eoli3n_that's why i wanted to test by loading http the iso12:58
eoli3n_but i get stuck, and i don't want to debug this12:58
TJ-yeah. I'd run inotifywait on the NFS server and see what file accesses are attempted13:01
TJ-that way you'd know if reads were being attempted to those files on the server, or not13:01
eoli3n_(tried BOOTIF=ens6, do not did the trick)13:03
eoli3n_hm13:03
eoli3n_my english is from the futur13:04
eoli3n_didn't the trick* ?13:04
eoli3n_it sounds bad13:05
TJ-eoli3n_: you need to set BOOTIF=<MAC address>13:05
eoli3n_my macadress isn't predictible13:06
eoli3n_as vagrant creates VM13:06
eoli3n_maybe i could force the mac adress13:06
eoli3n_hm13:06
TJ-oh sheesh!13:06
eoli3n_sheesh ?13:06
TJ-yes; it is possible to set a fixed MAC address13:06
eoli3n_what does that strange word means ?ยต13:06
TJ-eoli3n_: that's an expression of exasperation :D13:06
eoli3n_huhu13:07
eoli3n_ip=ens613:07
eoli3n_it works well so lets go with that13:07
TJ-Yep13:07
eoli3n_the inotify test seems crazy13:09
TJ-eoli3n_: I use that frequently to prove a certain file access takes place, and its type13:09
TJ-eoli3n_: my approach is to prove each piece and not assume13:09
eoli3n_hm13:10
eoli3n_lets try to13:10
eoli3n_never did that13:10
luna_moved my irssi to Ubuntu instead of CentOS now13:10
eoli3n_https://x0.at/559.txt13:11
eoli3n_waiting13:11
eoli3n_catch !13:12
eoli3n_ /exports/focal/dists/focal/main/binary-amd64/Packages.gz ACCESS13:12
eoli3n_so yep it does access13:12
eoli3n_lets try to export rw13:16
eoli3n_i don't know why, but i don't have any other idea13:16
eoli3n_obviously, it didn't changed anything13:20
TJ-so at least we know Packages.gz is read AND apt-update in-target doesn't get to see it!13:31
technoobHey guys13:31
technoobI have ubuntu server on my nuc13:31
technoobI wanna know of i can use its wifi here13:32
technoobHow do i check13:32
TJ-eoli3n_: hang on... ACCESS isn't the same as READ if I recall correctly; that suggests there IS a permissions issue13:33
TJ-eoli3n_: ignore me - ACCESS does include a read13:35
technoobGuys13:36
technoobHow do i check if ubuntu server has support for the wifi13:36
TJ-technoob: it does13:36
TJ-technoob: assuming the wifi hardware has a driver and the interface is present, you can configure it via either netplan or directly with systemnd-networkd13:37
technoobCan you teach me how13:38
technoobHow do i activate the wifi13:38
technoobI also wanna know if it can be used as a hotspot13:39
technoobTJ-:13:39
technoobTj?13:40
technoobAnyone?13:40
lotuspsychje!patience | technoob13:42
ubottutechnoob: Don't feel ignored and repeat your question quickly; if nobody knows your answer, nobody will answer you. While you wait, try searching https://help.ubuntu.com or https://ubuntuforums.org or https://askubuntu.com/13:42
TJ-technoob: yes, as a hotspot you'd use 'hostapd'13:43
technoobCan i ask how to do this13:43
technoobTJ-:13:43
TJ-technoob: this is a few years old but should get you started: https://help.ubuntu.com/community/WifiDocs/WirelessAccessPoint13:44
technoobHow do i check iff i have hostapd installed already13:48
technoobIs there a way to connect to internet by plugging my phone which has data to my device running ubuntu server14:04
=== halvors1 is now known as halvors
SynfulAckI have two servers that seem to be getting the same ip via dhcp. I checked the netplan directory and one of the servers has something that looks like this https://imgur.com/a/W0jmVbd and all those files have dhcp set to yes. The other server just has the standard 00-installer-config.yaml also with dhcp set to yes.15:00
SynfulAckShouldnt each be getting its own ip. two vms with different mac addr too.15:00
SynfulAckwell thats annoying, looks like i needed `dhcp-identifier: mac` in my netplan yaml file. dunno why they decided to change the DUID method.17:15
=== ijohnson is now known as ijohnson|lunch
devster31hi guys, any suggestions on how to configure 4 interfaces with netplan?20:21
sarnoldprobably match blocks with macs20:22
devster31not sure I follow20:23
sarnolddevster31: well, now that I re-read the examples, matching by mac address is probably better reserved for cases where matching by name doesn't work20:39
sarnoldthere's a bunch of examples on https://netplan.io/examples/20:39
devster31this is what I tried, https://bpa.st/426Q because for some reason dhcp: true on the bond isn't working (the switch supports LAG), I was wondering if there's a better way to do it... ideally I'd also like the interfaces to be advertised with <interface>.<hostname>.<domain> but I'm not sure that's feasible20:47
sarnoldoh interesting, I hadn't seen a netplan config quite so generic before; does it generate systemd-networkd configs alright? do they look sane?20:54
=== ijohnson|lunch is now known as ijohnson
devster31seems so: https://bpa.st/EUXQ21:01
sarnoldinteresting interesting, systemd.network(5) does claim to support shell globs -- but only uses * in the examples. I wonder if the [3-4] syntax works21:04
devster31currently does work, for some reason... I was wondering if https://bpa.st/5TPA could work though21:34
FuZi0N How can I monitor the external IP connections for everything connected to local port 5572 on Ubuntu Server 18.04? I tried using glances and track but there was too much noise and it wouldn't let me filter by source port...21:37
devster31tcpdump port 5572?21:42
TJ-FuZi0N: please don't cross post in multiple channels!21:45
devster31sarnold what do you think, would https://bpa.st/5TPA be a functioning setup? or is there a better layout/way to configure them?22:14
sarnolddevster31: if you're still not getting it to go, I think I'd try breaking them apart a bit, set up each interface one at a time, etc22:15
devster31thank you, will try23:53

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