mirror of
https://github.com/netbootxyz/netboot.xyz.git
synced 2026-04-25 23:25:54 +03:00
[GH-ISSUE #881] Ubuntu does not autoinstall as expected with auto-install. #1780
Labels
No labels
Hacktoberfest
Hacktoberfest
bootloader
bsd
bug
confirmed
documentation
duplicate
enhancement
enhancement
enhancement
eol
experimental-merged
freebsd
help wanted
invalid
investigate
ipxe
linux
live-os
memdisk
menu
no-issue-activity
no-issue-activity
pull-request
released
todo
upstream
windows
windows
work-in-progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/netboot.xyz#1780
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @nickkostov on GitHub (Apr 22, 2021).
Original GitHub issue: https://github.com/netbootxyz/netboot.xyz/issues/881
Describe the bug
A clear and concise description of what the bug is.
When installing with auto-install Ubuntu 20.04 does not work it starts downloading the .iso and it boots it.
Lead me to graphical experience but still can not install.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Ubuntu should autoinstall it self.
Screenshots
Sorry but I did not have my phone with me.
Thanks.
@nickkostov commented on GitHub (Apr 22, 2021):
I can confirm that Legacy installer does not work with preseeds.
Tested it right now in UEFI
@antonym commented on GitHub (Apr 25, 2021):
Is it the preseed method or the autoinstall method that isn't working for you? The updated subiquity installer uses the autoinstall method and downloads the iso during kernel boot up. The older legacy method uses the install kernels to do the install and looks for a preseed style file.
Can you detail which method you were trying and which one you were having problems with?
@andyloree commented on GitHub (May 3, 2021):
I am having the same problem, using autoinstall with UEFI vm's, have not tried preseed
@andyloree commented on GitHub (May 3, 2021):
Ignore, UEFI netboot with autoinstall is working. My issue was the naming convention Ubuntu has for autoinstaller...URL needs to be the path which has two files, named user-data and meta-data
@nickkostov commented on GitHub (May 4, 2021):
I will update you tomorrow regarding that, when I have access to the systems.
@nickkostov commented on GitHub (May 4, 2021):
I will try that one out, I think I made a mistake during the creation of the files.
@nickkostov commented on GitHub (May 5, 2021):
This is trying to use the Legacy installer with preseed.cfg over UEFI
Step one:
Here I try upload the preseed.cfg:
d-i debian-installer/locale string en_US.UTF-8
d-i clock-setup/utc boolean true
d-i clock-setup/utc-auto boolean true
d-i time/zone string Europe/Sofia
d-i base-installer/kernel/image string linux-generic
d-i grub-installer/only_debian boolean true
d-i console-setup/ask_detect boolean false
d-i keyboard-configuration/xkb-keymap select us
d-i keymap select us
d-i keyboard-configuration/layoutcode string us
d-i keyboard-configuration/modelcode string pc105
d-i keyboard-configuration/layout string "American English"
d-i netcfg/choose_interface select auto
d-i hw-detect/load_firmware boolean true
d-i netcfg/get_hostname string ubuntu
d-i partman-auto-lvm/guided_size string max
d-i partman-auto/method string regular
d-i partman-auto/choose_recipe select atomic
d-i partman/choose_partition select finish
d-i partman/confirm_nooverwrite boolean true
d-i partman/confirm boolean true
d-i mirror/country string auto
d-i mirror/suite string focal
d-i mirror/http/hostname string bg.archive.ubuntu.com
d-i mirror/http/directory string /ubuntu
d-i mirror/http/proxy string
d-i pkgsel/include string openssh-server build-essential ubuntu-desktop vim terminator htop
d-i pkgsel/install-language-support boolean false
d-i pkgsel/upgrade select full-upgrade
d-i pkgsel/update-policy select unattended-upgrades
d-i pkgsel/language-packs multiselect en, bg
d-i passwd/root-login boolean true
d-i passwd/root-password-crypted password PASSHASH
d-i passwd/user-fullname string OPERATOR
d-i passwd/username string user
d-i passwd/user-password-crypted password PASSHASH
d-i passwd/user-default-groups user
d-i finish-install/reboot_in_progress note
step two:
I get this:
It used to only prompt me for network adapters before and auto install everything it was told do.
@nickkostov commented on GitHub (May 5, 2021):
I tried the method with UEFI and just pointing the URL to the folder containing the autoinstall once --> I used the webserver public dir ( which could have lead to this result)
It just got stuck for that test I used meta-data and user-data from this repository: https://gist.github.com/anedward01/b68e00bb2dcfa4f1335cd4590cbc8484
( I did not have the time for the second test was making desks all day)
and is still stuck.
What I am looking for is a simple autoinstall for ubuntu --> desktop and a few packages, if you could advise what I do wrong and what is the correct way I will be really glad, the docs for autoinstall are not really clear for me or I just misunderstand something.
@andyloree commented on GitHub (May 5, 2021):
The VM console on the right shows you are the live ISO download, which is before the autoinstall or preseed part of installation. What is the memory size of the VM you are using? The live ISO actually has to load into memory before the installer, could be your VM doesn't have enough memory. With Hyper-V, I also noticed I could not use "dynamic memory" allocation for the VM, which is a typical default. I was able to get a 3GB VM on hyper-v to boot, not sure how much lower you can go.
@nickkostov commented on GitHub (May 6, 2021):
I understand what you are saying. I am using really small amounts of RAM I suppose. I use my VMs with 1GB. I will try to set them up with 3/4GB and see if this is going to make it happen.
@antonym commented on GitHub (May 6, 2021):
Yeah, one of the reasons I preferred the Debian style installer kernels. Ubuntu dropped that support for netbooting with the lightweight installer kernels, so now you have to load the entire ISO into ram now during the initrd load.
@nickkostov commented on GitHub (May 6, 2021):
I knew something was off with the drop for the installers but that big of a change is terrible. It almost looks like a downgrade instead of upgrade. If we are not really happy like that I will suggest to switch to Fedora or Debian. At least they are still working with the old once and they do not seem to go in that direction, correct me if I am wrong its real hard to track all distros these days.
@antonym commented on GitHub (May 6, 2021):
Yeah, so far the others haven't changed yet. This is where I posted about the Ubuntu changes, feel free to let them know your feelings upstream:
https://github.com/netbootxyz/netboot.xyz/discussions/729
@nickkostov commented on GitHub (May 11, 2021):
Hey there I am going to test another configuration which will do it in the following manner:
I will try to autoinstall it over a VM with 4GB RAM.
I will create a folder one the webserver that will store the meta-data and user-data.
Hopefully it will work.
I will post the config I used.
@nickkostov commented on GitHub (May 11, 2021):
I have tried once again without any success. Could advise with your way of auto-installing, I saw that desktop is not supported and tried to install using the packages option --> https://github.com/nickkostov/autoinstall/blob/main/autoinstall-subiquity/docs.md ( you can check out both the files used and the whole thing and what else I tried)
@nickkostov commented on GitHub (May 11, 2021):
@antonym why I am not able to preseed via the Legacy one?
@andyloree commented on GitHub (May 11, 2021):
Where is it stopping? If it is still during the ISO download as in your earlier screencap, the issue is not autoinstall, its your VM configuration and/or hypervisor. In the case of Hyper-V, I had to disable dynamic memory. I am not familiar enough with virtualbox to help troubleshoot.
@nickkostov commented on GitHub (May 11, 2021):
I will check if there are such options in vbox
It is not even stopping it directly gets me the graphical installator.
@nickkostov commented on GitHub (May 12, 2021):
I figured it out, so much fuss for nothing I had the ubuntu menu misconfigured. Updated the menus and reverted the change. Now it works. Preseeds work. I can sleep well now. Do you have any idea when will be the full deprication of the preseeds in order to know how much time I have before we need to work it out?
@antonym commented on GitHub (May 12, 2021):
20.04 LTS marked the transition to autoinstall, so preseeds will probably work until that LTS is EOL unless Ubuntu removes it sooner than later. Glad you got things figured out though!