philpagel / debian-headless Goto Github PK
View Code? Open in Web Editor NEWCreate a debian headless/remote installation image
License: BSD 3-Clause "New" or "Revised" License
Create a debian headless/remote installation image
License: BSD 3-Clause "New" or "Revised" License
Hello nice project. But i do not get it to run with arm hf.
sed "s/ARCH/armv7/" isolinux.cfg.template > tmp/isolinux/isolinux.cfg /bin/sh: 1: cannot create tmp/isolinux/isolinux.cfg: Directory nonexistent make: *** [Makefile:41: isolinux] Fehler 2
Thanks
Hello, I've tried to use this on macOS and ran into several issues and I feel like it's best if I document them here.
First off all, make install-depends
doesn't work on macOS because apt-get doesn't exist. Ignoring that, I ran into a couple of problems.
I ran into cpio: Append mode not yet supported.
, because the cpio version (bundled?) in macOS seems to be outdated. I installed cpio via homebrew and adjusted this line to the new path
- echo preseed.cfg | cpio -H newc -o -A -F ${TMP}/install.${ARCHFOLDER}/initrd
+ echo preseed.cfg | /opt/homebrew/Cellar/cpio/2.14/bin/cpio -H newc -o -A -F ${TMP}/install.${ARCHFOLDER}/initrd
It seems like genisoimage doesn't exist for macOS, but with some AI-assistance I found that mkisofs
is supposedly almost a drop-in replacement, minus the missing -e
flag.
So I changed this command to the following:
mkisofs -V ${LABEL} \
-r -J -b isolinux/isolinux.bin -c isolinux/boot.cat \
-no-emul-boot -boot-load-size 4 -boot-info-table \
-eltorito-alt-boot \
-eltorito-platform efi -eltorito-boot ${tmp} boot/grub/efi.img \
-no-emul-boot \
-o ${TARGET} ${TMP}
Finally, isohybrid
also doesn't exist, but once again I consulted phind which presented hdiutil
as an alternative.
So I changed this line to the following:
- isohybrid --uefi ${TARGET}
+ hdiutil convert -format UDRW -o ${TARGET}.img ${TARGET}
It finally seemed to finish executing successfully, and I am left with a... .dmg
file??? Not what I expected and I honestly don't feel like troubleshooting any more, I guess I'll just search for that wireless keyboard dongle that I haven't seen in a while and install it the normal way...
I hope that this at least helped someone else to get closer though.
MfG
Since 11.3.0 the remastered image no longer auto-boots into the installer. Investigation ongoing.
It would be nice if there was a make download
target that automatically downloads the latest Debian netinst image.
i geht the Error
"Loading /install.i386/vmlinuz failed: No such file or directory"
possible to have a problem with the relative/absolut path?
Hope to get help on this one
Thanks great Tutorial
The image produced changes the text of Grub on the serial console, but the Debian installer still appears on the VGA.
While running make download
it is throwing 404 not found error. Please update the url
HTTP request sent, awaiting response... 404 Not Found
make: *** [Makefile:36: download] Error 8
Apparently, make FAT
wipes the iso9660 signature from the stick causing subsequent boot to fail.
Currently no support for uefi boot. However this is widespread today, so I should get around to add that eventually.
trying to use this on Raspbian will cause some problems with the following missing:
I cannot get this working, i.e. after running qemu-bios
or qemu-uefi
the VM boots and briefly shows "Booting Install" before switching to a blank screen with a single underscore character in the top-left corner. If I launch ssh installer@localhost -p22222
it times out. Using telnet localhost 33333
also doesn't show anything.
What options do I have to troubleshoot this?
This is the initial part of my Makevars
file:
SOURCE = debian-12.0.0-amd64-netinst.iso
TARGET = debian-12.0.0-amd64-netinst-hl.iso
LABEL = Debian-12.0.0-amd64-headless
ARCH = amd64
USBDEV = /dev/sda
Everything below that is left as-is.
And this is my preseed.cfg
file:
#_preseed_V1
d-i debconf/language string en
d-i debian-installer/country string US
d-i debian-installer/language string en
d-i debian-installer/locale select en_US.UTF-8
d-i keyboard-configuration/layoutcode string us
d-i keyboard-configuration/xkb-keymap select us
d-i netcfg/choose_interface select auto
d-i netcfg/disable_autoconfig boolean true
d-i netcfg/get_domain string somenetwork.lan
d-i netcfg/get_gateway string 192.168.1.250
d-i netcfg/get_hostname string nas
d-i netcfg/get_ipaddress string 192.168.1.203
d-i netcfg/get_nameservers string 192.168.1.250
d-i netcfg/get_netmask string 255.255.255.0
d-i netcfg/hostname string nas
d-i netcfg/confirm_static boolean true
d-i anna/choose_modules string network-console
d-i network-console/start select continue
d-i network-console/password password r00tme
d-i network-console/password-again password r00tme
I verified this preseed.cfg indeed ends up in initrd.gz
, which it does.
Any help would be greatly appreciated! :-)
Wonderful project!
I have a very old laptop with a dying keyboard and when I ran across this, I decided to try this out to use it as a server. Everything works except that the boot process stops at the boot prompt. Fortunately, CTRL-M gets the boot process to continue. Two possible sources for this problem are 1) the laptop is 32 bit and 2) it only has legacy USB support.
Interestingly, it works fine on a newer laptop so perhaps this is a Debian problem.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.