Comments (4)
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.
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.
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.
Trying again with the server iso and it worked perfectly. So indeed the desktop variant is not supporting the autoinstall procedure. 😀
from pxeless.
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)
- Not a bug, just an FYI to anyone using subdirectories HOT 7
- Update dockerhub readme HOT 1
- Versioned docker images HOT 1
- Wrong module in user-data.advanced file HOT 3
- GUIDE: Testing your ISO with QEMU HOT 1
- BUG: extra files not copied to live system during install when using `-x` HOT 4
- [Question] Offline package installation HOT 2
- [Advice] Unable to log-in to newly created image using user-data.basic config? Try this: HOT 4
- [FEATURE] Add a user account with sudo access in container
- Make sudo conditional to user/env HOT 1
- stat /data/image-create.sh: no such file or directory: unknown. HOT 6
- [FEATURE] Customize boot parameters HOT 2
- An issue within the readme example HOT 5
- switch combinations HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pxeless.