/srv/irclogs.ubuntu.com/2022/09/28/#ubuntu-server.txt

=== Avago_Broadqual7 is now known as Avago_Broadqual
=== QNX is now known as EnchanterTim
=== y0sh- is now known as y0sh_
=== WaVeR` is now known as WaVeR
Odd_Blokexnox: Did you get a chance to review my deboostrap bug?13:56
xnoxOdd_Bloke:  what's the url?14:07
xnox(you are making an assumption that i ever open my debian/ folder in my email >_< )14:07
xnoxah https://bugs.launchpad.net/ubuntu/+source/debootstrap/+bug/199085614:09
ubottuLaunchpad bug 1990856 in debootstrap (Ubuntu) "Does not consider all versions in Packages files" [Undecided, New]14:09
xnoxfound it14:09
xnoxOdd_Bloke:  your bug is great; your patch is giving me a headache.14:12
Odd_Blokexnox: Imagine how my head felt after _writing_ it. :D14:35
xnoxi guess it should have no effect on existing repos/archives and that's easy to test (autopkgtest will catch it)14:43
xnoxbut sort of want to create a dynamic test that like takes the non-first package out of the packages file; prepends it first with a lower version; and then debootstrap should work fine.14:43
xnoxi.e. if i prepend libc6 version: 1.0-bogus14:44
imihi, how do I nstall ubuntu server headlessly?18:59
leftyfbimi: iDRac, IPMI, ILO, MAAS, cloud-init, autoinstall, custom installer19:00
leftyfbimi: it's a bit of a loaded question19:00
leftyfbimi: define headless. Why do you have a "headless server" and why can't you plug a monitor and keyboard into it?19:01
imiI don't have a monitor at hand. I want to ssh (or telnet) into and install it19:03
leftyfbimi: I don't think you can run through the installer over ssh, even if you were able to customize the initrd to enable dropbear and make your own installer image19:04
leftyfbimi: https://ubuntu.com/server/docs/install/autoinstall19:05
geniiimi: How will the server be accessing the install, are you plugging an USB or CD/DVD into it, is it PXE booting, some other thing?19:16
Odd_Blokexnox: My reproducer does something similar to that: it appends higher-versioned stanzas from -updates.19:18
imiinstall medium provided from usb19:18
Odd_BlokeBut I could definitely simplify it to generate a stanza based on the contents of the Packages file being downloaded.19:19
geniiimi: If it has a serial port you could modify the grub.cfg on the USB to append something like console=ttyS0,115200n8  ( or ttyUSB0 if you're using an USB to serial adapter) to the line which loads the kernel, and then connect to it with a nullmodem cable and use either screen or something like minicom 19:29
imithat could work as well19:29
leftyfbimi: what model server? Are you sure it doesn't have some sort of BMC you can access remotely?19:33
patdk-lapif the server is new enough, and you install using efi, you could install a custom efi boot that would help you do that, as you can select what efi boot option to boot from on next boot from the os19:37
geniiimi: If it's a machine which is an actual server-class machine it may have other methods of remote access as leftyfb is saying19:38
imirock pi x19:38
sarnoldis that an arm thing? I think those are often installed by dd'ing a filesystem image onto their filesystem19:39
leftyfb:/19:39
sarnolds/their filesystem/their storage/19:39
leftyfbimi: there no installer for that19:39
patdk-lapswapping sd cards :)19:39
leftyfbimi: you just write the image file to the sd card and the OS is "instaled"19:39
iminormal x64 installer should work19:39
leftyfb"installed"*19:39
patdk-lapI have one that I left setup for an installer19:39
patdk-lapsetup the serial consol connected to one of my servers19:40
patdk-lapI can reinstall via it19:40
leftyfbimi: false. That is an ARM SBC19:40
patdk-lapwould be insanely slow, but19:40
leftyfbimi: you load the sd card with a preinstalled OS19:40
patdk-lapit's managing my out-of-band access to the rack19:40
imileftyfb: false, it is an intel based board19:40
waveformleftyfb, the rock pi x is actually x86 (https://wiki.radxa.com/RockpiX) but it's ... small :)19:40
leftyfbhttps://rockpi.org/rockpi419:41
leftyfb"ROCK 4 has a modern and powerful hexa-core ARM based processor, RK3399 inside, it offers significantly improved performance versus other popular SBC boards. All models are equipped with LPDDR4 3200Mb/s RAM and optional high performance eMMC modules, boost all applications."19:41
patdk-lapx != 419:41
imiI used to use a raspberry pi 2 so I kind of know what to expect19:41
leftyfbso it is, my bad19:42
waveformimi, with that I might be tempted to look at the cloud images which could use cloud-init to do a simple first-time setup (ssh-import-id etc.)19:42
waveformimi, https://cloud-images.ubuntu.com/jammy/current/19:42
imiwaveform: can you provide an rtfm url please?19:44
waveformimi, I'm afraid I don't have one (I usually work on the Pi images, but they're derived from the cloud images so should be *fairly* similar), but looking at the rock pi x specs, it can boot off uSD? If that's the case I'd try dd'ing https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img to a uSD card and see if that can boot19:46
waveformoh ... or maybe it can't boot off uSD ... not clear from the instructions (or specs); well, if not, dd to a USB drive and see if that works19:48
waveformoh, and I'm evidently unfamiliar with the cloud-images format -- that one's QCOW2 which is not going to work as a disk image. Urgh. Let me see ...19:49
sarnoldI think the .img one might be the right choice19:52
waveformokay, assuming you've got another ubuntu box you could do something like qemu-img convert -f qcow2 -O raw jammy-server-cloudimg-amd64.img /dev/sdb (this assumes /dev/sdb is your target device -- be very sure before trying this!)19:52
=== xispita is now known as Guest8040
=== xispita_ is now known as xispita
=== xispita is now known as Guest1011
=== xispita_ is now known as xispita
imiwaveform: I have a desktop ubuntu20:28
imiwith virtualbox working20:28
imiare there only daily cloud images? what if I want a stable cloud image?20:33
imiwhat does the cloud image contain?20:34
sarnoldcheck the .manifest file, it reports the packages20:36
waveformimi, afaik there are only daily's because generally people want to spin up (potentially ephemeral) instances, and have them online with the current security patches without having to wait for an update (this is one of the differences with the pi images, which are derived from the cloud-images, but go through the regular release process like the PC server & desktop images)20:37
imiI see20:37
waveformas to their content: similar to a basic install of Ubuntu Server but a bit more lightweight (as sarnold has pointed out -- you can check the manifest for specific packages)20:38
imiwhich one is for vmware?20:45
sarnoldtry the vmdk; I haven't used vmware in 15-ish years, so I'm not positive, but it has the right chars :)20:47
waveformI'm guessing jammy-server-cloudimg-amd64.ova but only because it says "VMwave/Virtualbox OVA" next to it on https://cloud-images.ubuntu.com/jammy/current/ -- I have precisely 0 hours of VMware experience so this is an entirely uneducated guess!20:47
sarnoldohhhhh hmmm good point20:48
konstruktoidova or ovf is supported by vmware20:49
Odd_BlokeThere are release cloud images: https://cloud-images.ubuntu.com/releases/jammy/20:51
Odd_BlokeA daily image is promoted to a release image if one of a few select packages gets a version bump (most notably the kernel, but the guiding principle is that you shouldn't have to reboot an image as soon as you launch it).20:52
Odd_Blokeimi: ^^20:53
imithanks20:53
sarnoldOdd_Bloke: nice, thanks20:56
imiok so I booted up this cloud image, is it available via ssh?21:24
imican I login from tty1?21:24
sarnoldgood questions :) you probably can login via tty1, try ubuntu/ubuntu, but I'm not positive of that..21:26
sarnoldmost people who use cloud images also use cloud-init userdata blobs to configure it while it's loading, to create users, add ssh keys, etc21:26
imilogin incorrect21:26
sarnold:(21:27
imiI can't tell if it's connected to my network21:28
imiwhere do I find doc about how do I log into the cloud image?21:42

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