Srijan20 | Hello Everyone, need some help with user creation | 10:34 |
---|---|---|
Srijan20 | My user-data file looks like this: | 10:34 |
Srijan20 | identity: | 10:34 |
Srijan20 | hostname: snsr | 10:34 |
Srijan20 | password: "$6$rounds=4096$sHfjZ5atZB1QJUOv$FGJHkHRSBIP/2yzQR449nuh84DQtbk.4yasF6hEMDw1hzxWivTumjW622dkdmPqliRXZi/NmWyCP8YTK0bzz7/" | 10:34 |
Srijan20 | realname: snsradmin | 10:34 |
Srijan20 | username: snsradmiin | 10:34 |
Srijan20 | #user-data: | 10:34 |
Srijan20 | #users: | 10:34 |
Srijan20 | #- name: snsr | 10:34 |
Srijan20 | #passwd: "$6$rounds=4096$rW3V4/wxxwA8rvzG$F704daG5i9V1fjsYPQ9xHuzv714oQeombq31LRbdQnYFOTdqCs3YXgw6DdON4z14M6Bq7xy1XvpWrUUP.YWkg1" | 10:34 |
Srijan20 | #sudo: ALL=(ALL) NOPASSWD:ALL | 10:34 |
Srijan20 | #create_groups: true | 10:34 |
Srijan20 | #lock_passwd: true | 10:34 |
Srijan20 | #shell: /bin/bash | 10:34 |
Srijan20 | #home: /var/lib/snsr | 10:34 |
Srijan20 | #- name: snsradmin | 10:34 |
Srijan20 | #passwd: "$6$rounds=4096$mzqVdykKa3Y58Sp.$13rd0J.ZunHzj061Hb0U4kKJU9QDy2yLv5VGv75nU8B6A2Y7Gm4Sc8vBge4AxUm7reVeQ7iOTakkfZDUQQ4xR." | 10:34 |
Srijan20 | It works only when identity is enabled. users not created using user-data:/users: | 10:35 |
dbungert | 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:44 |
Srijan20 | Let me comment out the identity section and create using the user-data section and will update in some time | 12:49 |
nico1 | hi | 15:51 |
nico1 | 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 |
nico1 | i got a prompt for opening a shell | 15:55 |
nico1 | s/mkfs/mkisofs | 15:56 |
nico1 | s/mkfs/mkisofs/ | 15:56 |
nico1 | is there any way to disable cloud init ? | 15:56 |
meena | nico1: sounds like it's looking for different sources, like OpenStack | 16:01 |
dbungert | nico1: you may be interested in https://github.com/mwhudson/livefs-editor, which has support for injecting autoinstall data into an existing ISO | 16:05 |
nico1 | why openstack ? | 16:19 |
nico1 | this is the conf i created: https://pastebin.com/kt5Cyvzx | 16:22 |
nico1 | i thought it would be very straight forward to automatise the install | 16:22 |
nico1 | maybe i should disable cloud init somewhere but no idea where | 16:22 |
dbungert | what is autoinstall-v3 and autoinstall-verbose? | 16:23 |
nico1 | it was arg to have verbosity (i added that on last chance but it didn't do anything) | 16:23 |
nico1 | i guess it was ignored at the end | 16:23 |
dbungert | cloud-config files want a `#cloud-config` header, so I'm not sure this file was processed | 16:24 |
nico1 | when booting on iso, i don't have the questions anymore at least | 16:26 |
nico1 | but i can try adding the header | 16:26 |
dbungert | 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:26 |
nico1 | oops, what would be the parameter to tell autoinstall to install "server" and not desktop ? | 16:29 |
dbungert | subiquity can only install stuff on the iso, so if you're booting the live server iso you're going to get server | 16:29 |
dbungert | 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 |
nico1 | ok great | 16:30 |
dbungert | 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:31 |
nico1 | dbungert: https://pastebin.com/TsXAZqSU <== better ? | 16:34 |
nico1 | 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 |
dbungert | I think the storage section is still not quite right. This part is so verbose. | 16:35 |
dbungert | 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 |
nico1 | for storage, i want 2 partitions, 512M for /boot and 20G for / | 16:35 |
dbungert | right, but in that config nothing formats partition-0 | 16:36 |
dbungert | I suspect the rest of the autoinstall is valid if the storage section is fixed | 16:37 |
nico1 | you mean i should add type:format for partition-0 and -1 ? | 16:37 |
nico1 | oh it is already there for -1 | 16:37 |
=== NightMonkey_ is now known as NightMonkey | ||
dbungert | right, you have a format and mount for -1, you need one for -0 | 16:37 |
nico1 | i can duplicate the line and just replace -1 by -0 right ? | 16:38 |
nico1 | if i put a section ssh: with install-server:yes then no need of packages: with -openssh-server ? | 16:40 |
dbungert | https://paste.ubuntu.com/p/qdCW673MNp/ I think for storage, and yes install-server:yes should handle openssh | 16:43 |
dbungert | though there is a bug right now where openssh-server gets installed anyhow | 16:43 |
nico1 | i don't have login on paste.ubuntu.com to see your pastbin :/ | 16:47 |
dbungert | https://pastebin.com/SaxcU2ub | 16:49 |
nico1 | should i also mmodify grub.cfg ? for now i added autoinstall and md5sums=noverify: | 16:50 |
nico1 | linux /casper/vmlinuz autoinstall md5sums=noverify --- | 16:50 |
nico1 | the pastebin storage is the one that i should put instead of mine ? | 16:50 |
dbungert | 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:51 |
dbungert | I don't know who processes a md5sums=noverify argument | 16:53 |
dbungert | casper has a fsck.mode=skip ? https://manpages.ubuntu.com/manpages/jammy/man7/casper.7.html | 16:54 |
nico1 | i joined the line that were split on 2 | 16:54 |
dbungert | you can rejoin those lines, I don't think it matters | 16:54 |
nico1 | i see it is almost the same about what i had. you put the format after each declaration, and corrected the path | 16:55 |
nico1 | let me try to boot with that | 16:55 |
nico1 | md5sums=noverify <= the intention was to not do a md5sum on all files on the iso when installing | 16:56 |
nico1 | there is this file on the root of the iso: md5sum.txt | 16:56 |
dbungert | right, that's the fsck.mode item to control that | 16:57 |
dbungert | it's failing because you modifed it :) | 16:57 |
nico1 | i can delete all the files i want from this file ? | 16:57 |
nico1 | i mean all the files declared in md5sum.txt | 16:58 |
dbungert | I presume that would work but have never tried | 16:58 |
nico1 | great, i just did it and a generated an new iso... now booting | 17:00 |
nico1 | dbungert: i got always a strange error about useradd and uid out of range :https://imgur.com/a/tBg1rmW | 17:16 |
nico1 | and got error with Snap Daemon and Disk Manager: https://imgur.com/a/T78a6MJ | 17:18 |
dbungert | 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 |
nico1 | dbungert: and it finishs with this screen: https://imgur.com/a/k0RZWKJ | 17:22 |
nico1 | 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:23 |
dbungert | 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 |
nico1 | dbungert: for now, it is just a copy of the /mnt/iso which was where i mounted the original iso files | 17:29 |
nico1 | i didn't modify anything | 17:29 |
nico1 | livefs-editor, let me check it | 17:30 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!