AirborneHey everyone I was pointed here from #ubuntu, I'm trying to set up an hdd on ubunutu server 20.04. I've followed various guides and forum post on formatting and mounting the drive and adding it to fstab without success. Anyone able to help me trouble shoot my issue(s)?07:06
jrwrenAirborne: probably, but without an error message or unexpected behavior, no one would know13:59
=== MJCD is now known as ook
=== ook is now known as MJCD
Kilroycould I please have a hand fixing this error? I can ssh in but I just cant get out of my house with my server 20:13
Kilroykilroy@sturtz:~$ ping
Kilroyping: connect: Network is unreachable20:13
ahasenackdefault route20:18
ahasenackiptables OUTPUT rules?20:18
ahasenack(be sure to check both iptables-legacy and iptables-nft)20:18
Kilroyhow do I chech the router?20:19
tomreyn"ip route" will show how routing is setup on this computer20:20
Kilroy169.254.0.0/16 dev br-a4ad7a0ad07a scope link metric 1000 20:20
Kilroy172.17.0.0/16 dev docker0 proto kernel scope link src linkdown 20:20
Kilroy172.18.0.0/16 dev br-a4ad7a0ad07a proto kernel scope link src 20:20
Kilroy192.168.1.0/24 dev enp0s25 proto kernel scope link src metric 100 20:20
Kilroyenp0s25 is my network device20:21
tomreynKilroy: please use a pastebin for pasting multi-line output in the future.20:28
tomreynyou seem to have no default route set20:28
tomreynso your computer would not know where to send traffic to ip addresses / CIDRs not explicitly listed on this routing table20:29
tomreyn1.1.1.1 is not explicitly listed there20:29
KilroyOk I added a route and now I get this From icmp_seq=1 Destination Host Unreachable20:45
kenyonyou don't just add a route. if you don't have a route, it's probably because your network is misconfigured or doesn't have internet accesss20:47
tomreynwhat's the route you set / the routing table you have now?20:50
tomreynthat's an ip address, not a route20:51
Kilroyoh then what should I set it to?20:51
tomreyni don't know what "it" is20:52
Kilroythe route20:52
tomreynyou probably want to set a *default* route20:53
tomreynvia your upstream gateway on the network20:54
tomreynon the enp0s25 interface20:54
tomreyni am guessing this based on what you said so far20:54
Kilroyyea, how do I do that? 20:54
tomreynusing the "ip route" command20:55
tomreynthe syntax is: ip route add default {NETWORK/MASK} dev {DEVICE}20:57
tomreynor:  ip route add default {NETWORK/MASK} via {GATEWAYIP}20:57
Kilroylike this ip route add via
tomreynthis adds a static route for destinations in to be routed through probably not what you want.20:59
tomreyn(and a different syntax than the one i provided abive)20:59
Kilroylike this ip route add default via 192.168.1.?21:00
Kilroyor would the 0 be 6?21:00
KilroyI don't know what I messed up I did not change anything 21:00
tomreynyou probably started docker or something21:01
Kilroyyea 21:01
KilroyI use dcoker21:01
Kilroy*docker 21:01
Kilroyis that why I have 5 different devices? 21:01
tomreyni don't know what you mean there21:02
tomreyndo you mean network interfaces?21:02
tomreyni count 9 records there21:04
tomreyndocker most likely added the "docker0" interface, maybe the br-a4ad7a0ad07a interface, too21:05
tomreyni'm not sure whether the veth* interfaces are from, but those are probably either docker guests or other virtual network interfaces.21:06
ahasenackcan you paste your full `ip route` output?21:06
tomreynenp0s25 and ens1 are probably physical network interfaces (ens1 is down)21:07
tomreynlo is the loopback device21:07
KilroyI don't know what the veth* are21:09
ahasenackthose two default routes look wrong21:12
ahasenack192.168.1.6 is a local ip, right?21:12
ahasenack255.255.255.0 makes no sense, did you add that, or was it there already?21:12
Kilroyyea I added that 21:13
KilroyI thought that was the route21:13
ahasenackwhat system is this? ubuntu? what version?21:14
Kilroyubuntu 20.0421:15
ahasenackwhat do you have in /etc/netplan/*?21:15
ahasenackdid you add the gateway4 to that first file?21:16
ahasenackand the other files?21:17
KilroyI did not add it to the file directly, I have not touched the netplan files21:17
ahasenackcan you paste the whole files?21:18
Kilroythat is all there is in then21:18
Kilroythat is all there is in them21:18
ahasenackyou used tail21:18
ahasenackit did not truncate the output to the last few lines?21:18
Kilroythere is nothing there21:18
ahasenack /etc/netplan/00-installer-config.yaml should also start with "network:", like the one below21:19
ahasenackthe output is truncated21:19
ahasenackdo you know how tail works?21:19
Kilroyoh my mistake sorry21:19
ahasenackis "version: 2" the last line, or is the output truncated again?21:21
ahasenacksorry, I have to feed the cats21:22
ahasenackkeep in mind we don't know your network, but my guess is that your default route should be
ahasenackgood luck21:22
Kilroythanks, let me poke and screw around a bit more 21:22
Kilroythank you for your help ahasenack21:23
tomreynand gateway4 is probably not "", maybe that's your netmask21:23
Kilroyok I gtg, I am going to see what I have in backups21:30
chkimesI have a potentially misguided goal of booting Ubuntu Server via PXE21:38
chkimesI got all the DHCP mess stood up, started serving an EFI grub, stole the vmlinuz and initrd from my VM and put it behind TFTP21:38
chkimesand then struggled21:38
chkimesfirst issue was that I couldn't find any existing 20.04 server ISOs that don't immediately try to start installing21:39
chkimesso my hope of a Live Server ISO was dashed21:39
chkimesI flailed around with packing my own ISO and trying to boot into that, but I'm getting all sorts of busybox problems trying to chroot into it from the initramfs21:40
chkimesIt should also be heavily emphasized that I have no idea what I'm doing and have gotten this far through furious googling21:41
chkimesso my questions are: how bad of an idea is this and should I give up and try a different path? what are some good resources or documentation to learn about how to accomplish this?21:41
ahasenackthere is a link someone pasted the other day21:53
ahasenackI think it was this: https://www.molnar-peter.hu/en/ubuntu-jammy-netinstall-pxe.html21:53
ahasenackfor 22.04, but maybe relevant for 20.0421:54
chkimesawesome I'll give that a read, I'm not dead set on 20.04 it just seemed like a reasonable start21:58
tomreynthis documentation really ought to be here: https://ubuntu.com/server/docs22:00
chkimesso in reading through the Jammy doc, it seems geared towards autoinstall - however my goal is actually to be as stateless as possible and run the OS from RAM22:12
chkimesor write it to disk and rebuild it on every boot, either way22:12
chkimesI think this is actually possible using casper to boot the desktop livecd iso, since it has a "try" option that doesn't install22:15
chkimesbut desktop comes with a ton of junk so I'm trying to accomplish the same with server22:16
tomreynwouldn't this "write 'the OS' to disk and rebuild it on every boot" be very inefficient? the iso images are stateless, of course, but this also means they age (software updates do not persist). and, maybe more important, they still contain a lot of data to start with, i.e. not just kernel and initrd.22:25
tomreynchkimes: maybe it's worth to discuss your use case more, so other approaches could be considered.22:25
chkimeseffectively DHCP + PXE in a datacenter context, lots of hardware that needs bootstrapping22:26
chkimesthe goal would be to manage the boot images to match whatever we need, but I'm just trying to get to the point where anything works first22:27
tomreyni think the classic approach there is to load userspace (/root) via nfs22:31
chkimesso I was figuring that I could load an initramfs, download a custom iso of my /root, mount it, then switch_root to it22:32
chkimesbut so far I've been pretty unsuccessful at that22:32
tomreynsorry, i meant /, not /root22:35
tomreynand i don't have a recipe22:35
chkimesreporting back, I was able to get somewhere finally22:40
chkimesI've been messing with this since last night22:40
chkimesFollowing these steps here to generate an ISO: https://github.com/mvallim/live-custom-ubuntu-from-scratch22:40
chkimesI tried this route of using casper but it never quite worked22:41
chkimesthe trick was the ignore_uuid kernel param22:41
chkimeslinux (tftp)/vmlinuz.casper url= ip=dhcp root=/dev/ram0 ramdisk_size=2000000 ignore_uuid22:41
chkimescasper loaded my custom iso from the URL then brought me to a login screen22:42
chkimeslogin prompt, I should say - I axed all the UI22:45
tomreyndon't forget to write a blog post if you happen to work it all out.22:53
tomreynothers will appreciate22:53
chkimesany recommendation on where to post? I don't host a personal site or anything22:59
tomreynchkimes: hmm, no, not really, there sued to be debian-administration, but this is down now, and also this is really ubuntu specific. you could settle with community.ubuntu.com23:00
tomreynor just github pages or the like23:01
znfI'm actually quite curious what that guy wanted to do - nfs root?23:42
znfalso, Hetzner publishes their installimage stuff https://github.com/hetzneronline/installimage23:42

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