[10:34] Hello Everyone, need some help with user creation [10:34] My user-data file looks like this: [10:34] identity: [10:34]     hostname: snsr [10:34]     password: "$6$rounds=4096$sHfjZ5atZB1QJUOv$FGJHkHRSBIP/2yzQR449nuh84DQtbk.4yasF6hEMDw1hzxWivTumjW622dkdmPqliRXZi/NmWyCP8YTK0bzz7/" [10:34]     realname: snsradmin [10:34]     username: snsradmiin [10:34]   #user-data: [10:34]     #users: [10:34]     #- name: snsr [10:34]       #passwd: "$6$rounds=4096$rW3V4/wxxwA8rvzG$F704daG5i9V1fjsYPQ9xHuzv714oQeombq31LRbdQnYFOTdqCs3YXgw6DdON4z14M6Bq7xy1XvpWrUUP.YWkg1" [10:34]       #sudo: ALL=(ALL) NOPASSWD:ALL [10:34]       #create_groups: true [10:34]       #lock_passwd: true [10:34]       #shell: /bin/bash [10:34]       #home: /var/lib/snsr [10:34]     #- name: snsradmin [10:34]       #passwd: "$6$rounds=4096$mzqVdykKa3Y58Sp.$13rd0J.ZunHzj061Hb0U4kKJU9QDy2yLv5VGv75nU8B6A2Y7Gm4Sc8vBge4AxUm7reVeQ7iOTakkfZDUQQ4xR." [10:35] It works only when identity is enabled. users not created using user-data:/users: [12:44] Srijan20: for autoinstall with subiquity, it is invalid to create a user both with identity and in the user-data section. We don't attempt to do merging. If you have more complex user creation needs than what identity can do, I suggest doing user creation entirely using the user-data section [12:49] Let me comment out the identity section and create using the user-data section and will update in some time [15:51] hi [15:55] i'm trying to automatise an install of ubuntu 22 LTS server on a physical server remotely with iLO. so i downloaded the ISO, i copied it into local disk on another machine, then i created a file iso/etc/cloud/cloud.cfg.d/99_customer.cfg with autoinstall parameter, then created iso with mkfs and put it on iLO. the install starts but it always failed with "cloud init" which failed and after 10mn, [15:55] i got a prompt for opening a shell [15:56] s/mkfs/mkisofs [15:56] s/mkfs/mkisofs/ [15:56] is there any way to disable cloud init ? [16:01] nico1: sounds like it's looking for different sources, like OpenStack [16:05] nico1: you may be interested in https://github.com/mwhudson/livefs-editor, which has support for injecting autoinstall data into an existing ISO [16:19] why openstack ? [16:22] this is the conf i created: https://pastebin.com/kt5Cyvzx [16:22] i thought it would be very straight forward to automatise the install [16:22] maybe i should disable cloud init somewhere but no idea where [16:23] what is autoinstall-v3 and autoinstall-verbose? [16:23] it was arg to have verbosity (i added that on last chance but it didn't do anything) [16:23] i guess it was ignored at the end [16:24] cloud-config files want a `#cloud-config` header, so I'm not sure this file was processed [16:26] when booting on iso, i don't have the questions anymore at least [16:26] but i can try adding the header [16:26] system-installation is not a recognized keyword for autoinstall, is that a more general cloud-init concept? I may have missed that in the search [16:29] oops, what would be the parameter to tell autoinstall to install "server" and not desktop ? [16:29] subiquity can only install stuff on the iso, so if you're booting the live server iso you're going to get server [16:30] the ssh_pwauth bit is not quite correct unfortunately, https://ubuntu.com/server/docs/install/autoinstall has an example with a ssh section, you need that allow-pw keyword [16:30] ok great [16:31] there is a concept of a "source" in autoinstall, that's how you choose full or minimal, but it's going to be server either way [16:34] dbungert: https://pastebin.com/TsXAZqSU <== better ? [16:35] do you think some bad keyword could affect the install ? when running a shell, i saw a process running related to md5sum and casper. i noticed also the running syst has no ip adress configured [16:35] I think the storage section is still not quite right. This part is so verbose. [16:35] You may find it easier to do a manual install with the partition layout you want and look at /var/log/install/autoinstall-user-data and get the storage section from there [16:35] for storage, i want 2 partitions, 512M for /boot and 20G for / [16:36] right, but in that config nothing formats partition-0 [16:37] I suspect the rest of the autoinstall is valid if the storage section is fixed [16:37] you mean i should add type:format for partition-0 and -1 ? [16:37] oh it is already there for -1 === NightMonkey_ is now known as NightMonkey [16:37] right, you have a format and mount for -1, you need one for -0 [16:38] i can duplicate the line and just replace -1 by -0 right ? [16:40] if i put a section ssh: with install-server:yes then no need of packages: with -openssh-server ? [16:43] https://paste.ubuntu.com/p/qdCW673MNp/ I think for storage, and yes install-server:yes should handle openssh [16:43] though there is a bug right now where openssh-server gets installed anyhow [16:47] i don't have login on paste.ubuntu.com to see your pastbin :/ [16:49] https://pastebin.com/SaxcU2ub [16:50] should i also mmodify grub.cfg ? for now i added autoinstall and md5sums=noverify: [16:50] linux /casper/vmlinuz autoinstall md5sums=noverify --- [16:50] the pastebin storage is the one that i should put instead of mine ? [16:51] I think the pastebin storage is what you want, yes. I added some missing elements curtin is going to want. Review it carefully though, I was quick about it. [16:53] I don't know who processes a md5sums=noverify argument [16:54] casper has a fsck.mode=skip ? https://manpages.ubuntu.com/manpages/jammy/man7/casper.7.html [16:54] i joined the line that were split on 2 [16:54] you can rejoin those lines, I don't think it matters [16:55] i see it is almost the same about what i had. you put the format after each declaration, and corrected the path [16:55] let me try to boot with that [16:56] md5sums=noverify <= the intention was to not do a md5sum on all files on the iso when installing [16:56] there is this file on the root of the iso: md5sum.txt [16:57] right, that's the fsck.mode item to control that [16:57] it's failing because you modifed it :) [16:57] i can delete all the files i want from this file ? [16:58] i mean all the files declared in md5sum.txt [16:58] I presume that would work but have never tried [17:00] great, i just did it and a generated an new iso... now booting [17:16] dbungert: i got always a strange error about useradd and uid out of range :https://imgur.com/a/tBg1rmW [17:18] and got error with Snap Daemon and Disk Manager: https://imgur.com/a/T78a6MJ [17:22] hmm, if you don't get those snap and disk problems with the unmodified iso, I wonder about the iso creation process you're using [17:22] dbungert: and it finishs with this screen: https://imgur.com/a/k0RZWKJ [17:23] dbungert: mkisofs -r -V "Ubuntu server 22.04 custom" -cache-inodes -J -l -b boot/grub/i386-pc/eltorito.img -no-emul-boot -boot-load-size 4 -boot-info-table -o /var/www/html/ubuntu-server-22.04-custom-ALE-node2v2.iso /opt/ubuntu-server-22-ALE/subiquity-iso/ [17:29] nico1: building custom isos is hard. I don't know the contents of your subiquity-iso, and I'm not going to be able to verify it. please consider the livefs-editor tool I linked before for modifying ISOs, which I use heavily for this sort of task. [17:29] dbungert: for now, it is just a copy of the /mnt/iso which was where i mounted the original iso files [17:29] i didn't modify anything [17:30] livefs-editor, let me check it