0

I am trying an unattended install of ubuntu-server-18.04.1 from within windows. Below are the steps I have tried. I am trying all these from within VirtualBox. I have tried with VMWare as well. Both have the same end result.

  1. Create an unattended iso from a linux machine using the steps provided by https://github.com/netson/ubuntu-unattended
  2. Copy the iso to windows.
  3. Shrinked the volume of windows partition from 60 GB and created an unallocated space of 10 GB.
  4. Created a new FAT32 partition.
  5. Used Universal USB installer to use the ubuntu server unattended iso and write the necessary content to the newly FAT32 partitioned drive.
  6. After reboot, the Universal USB installer loads and auto loads ubuntu unattended installer.

However, it does not use the seed file. I have to manually select each option and answer questions in Ubuntu installation. The same setup works when mounting the iso as DVD in VirtualBox.

The boot params are listed below for reference.

label autoinstall
  menu label ^Autoinstall NETSON Ubuntu Server
  kernel /install/netboot/ubuntu-installer/amd64/linux
  append file=/cdrom/preseed/ubuntu-server.seed cdrom-detect/try-usb=true noprompt initrd=/install/netboot/ubuntu-installer/amd64/initrd.gz auto=true priority=high preseed/file=/cdrom/preseed/netson.seed preseed/file/checksum=36325a6ee7170e69668ebfcc611091b9  /home/andy/iso_new/preseed/netson.seed --

What could be the possible reasons for it?

0

After a lot of testing and trial and error, I have figured out that an install from USB does not use the same boot cfg file that a CD or ISO do.

Instead of /cdrom/isolinux/txt.cfg it uses /cdrom/boot/grub/grub.cfg. However you need to edit this file a bit differently as they are formated differently.

I ended up adding this just under the 'Set timeout=30'

menuentry "Autoinstall Netson Ubuntu Server" { set gfxpayload=keep linux /install/vmlinuz append file=/cdrom/preseed/ubuntu-server.seed initrd=/install/initrd.gz auto=true priority=high preseed/file=/cdrom/preseed/neetson.seed quiet --- initrd /install/initrd.gz }

I am not sure this is 100% the correct way to do it as I am very new to all this and only recently started using Linux due to requirements.

If anyone has a better answer please do share.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.