Giter VIP home page Giter VIP logo

Comments (4)

cloudymax avatar cloudymax commented on May 27, 2024 1

Hoi 👋 Thanks for the question!

A couple points:

  • Ive changed the example user-data.basic file, it's now much simpler and as such is now less error prone.

  • I've also moved the previous version of the user-data file to user-data.advance and removed the storage section. This avoids and error in VM settings where the drives are not properly detected during the Storage module's run.

  • I was able to re-create the described behavior by running the image-create script in the same way you did on a desktop iso. I saw a successful completion of the pxeless process, but was sent to the installation wizard. I then repeated the test with a server ISO and was sent through the autoinstaller process.

  • I don't believe that the desktop image uses the same installer as the server image (i could be mistaken through) which would cause the behavior you described. I'm basing this on these docs https://ubuntu.com/server/docs/install/autoinstall

While I can't provide a solution to the exact problem at hand, I can suggest that you install your desired desktop environment as part of the the server iso's cloud-init process. there is a great blog post by Pudget Systems that talks about how they use this process to image their laptops.

Dr Donald Kinghorn (Scientific Computing Advisor)
How-To: Make Ubuntu Autoinstall ISO with Cloud-init

And here is the gist with their config file: https://gist.github.com/dbkinghorn/c236aea31d76028b2b6ccdf6d3c6f07e

In their setup, they install a minimal desktop then switch the network to use network-manager so wifi will work. This creates a similar end-result to installing via one of the desktop iso, though it is not a live-image.

If it helps for parity of testing environments, I test these images using a QEMU setup with 2 drives (the ISO as a CD-ROM and a blank virtual disk) then attach over vnc using TigerVNC to control the grub selection/reboots that way.

# luanch the VM to install from ISO to Disk
 216   │ create_vm_from_iso(){
 217   │   log "💿 Creating VM from iso file"
 218   │   tmux new-session -d -s "${VM_NAME}_session"
 219   │   tmux send-keys -t "${VM_NAME}_session" "sudo qemu-system-x86_64 \
 220   │     -machine accel=kvm,type=q35 \
 221   │     -cpu host,kvm="off",hv_vendor_id="null" \
 222   │     -smp sockets="$SOCKETS",cores="$PHYSICAL_CORES",threads="$THREADS" \
 223   │     -m "$MEMORY" \
 224   │     -cdrom $ISO_FILE \
 225   │     -object iothread,id=io1 \
 226   │     -device virtio-blk-pci,drive=disk0,iothread=io1 \
 227   │     -drive if=none,id=disk0,cache=none,format=qcow2,aio=threads,file=hdd.img \
 228   │     $NETDEV
 229   │     $DEVICE
 230   │     -bios /usr/share/ovmf/OVMF.fd \
 231   │     -vga virtio \
 232   │     -usbdevice tablet \
 233   │     -vnc $HOST_ADDRESS:$VNC_PORT \
 234   │     $@" ENTER
 235   │     tmux_stream
 236   │ }

from pxeless.

Poeschl avatar Poeschl commented on May 27, 2024 1

Thanks a lot for this really details reply. 👍
I will try the server image to see if its an issue with the desktop iso. For my usecase I normally do not need a UI, but if needed it could be installed afterwards (as you said).

from pxeless.

Poeschl avatar Poeschl commented on May 27, 2024

Trying again with the server iso and it worked perfectly. So indeed the desktop variant is not supporting the autoinstall procedure. 😀

from pxeless.

cloudymax avatar cloudymax commented on May 27, 2024

Trying again with the server iso and it worked perfectly. So indeed the desktop variant is not supporting the autoinstall procedure. 😀

Happy to hear it worked for you - Cheers!

from pxeless.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.