posts/netbootxyz-tutorial/ #282
Replies: 21 comments 31 replies
-
Thanks for the write up Tim. While I already had this implemented, I hadn't dug into the Windows portion yet. Now that I have a, a couple of comments I hope you'll find useful. I copied the lines with comments relevant to those lines below: 1.(Create working files) with command "copype amd64 C:\WinPE_amd64" |
Beta Was this translation helpful? Give feedback.
-
Hi Tim, |
Beta Was this translation helpful? Give feedback.
-
I was able to follow the steps for Windows installs, but when I try to perform the actual install I get the "This PC Can't Run Windows 11" dialog box, even though I setup the VM with a TPM and UEFI in Proxmox. Once I do the TPM Bypass steps with regedit the install goes through... |
Beta Was this translation helpful? Give feedback.
-
Tried to use netboot.xyz offline as you showed in https://www.youtube.com/watch?v=4btW5x_clpg&t=1132s but using Arch Linux instead of PopOS. I downloaded the three "archlinux-32" assets (airootfs.sfs / initramfs-linux.img / vmlinuz-linux) and also changed "set live_endpoint https://github.com/netbootxyz" to "set live_endpoint http://my.local.ip:8080". But it not worked, downloaded (slowly like a slug) the files from Internet instead of using the local assets... Any ideas of what I need to do/change to works like you showed for PopOS? |
Beta Was this translation helpful? Give feedback.
-
I have it loading Windows install - some trial and error Also setting it to EFI in the DHCP does not work keep getting access denied not sure why PS love the channel and work thank you |
Beta Was this translation helpful? Give feedback.
-
Windows mount automation info is as follows. Including bonus usage of Unattended.xml Where you have your Windows files like bootmgr, bootmgr.efi, setup.exe, Within winpeshl.ini put
Within your whatever.bat
|
Beta Was this translation helpful? Give feedback.
-
Honestly..... dissapointed. Your intro said that you had done all the hard work researching and this video will show me how to stop having to use usb keys for various ISO's however it didn't really. My typical day runs installing all sorts of OS's from truenas, VMWare, Windows pfsense etc. I do find myself daily creating a usb key for something new i haven't used before and i have a ton of them on a keyring. I was hoping this would be as easy as create a menu item and point it to an ISO but it actually looks like more work than that. Take the windows example. Having to create a pre-ex environment first. Think ill just keep imaging for now until someone makes a more detailed video on the subject |
Beta Was this translation helpful? Give feedback.
-
I saw your Youtube video of this literally one day too late for it to have been super helpful recovering a Ubuntu server that wouldn't boot. The only thing it would do was enter the iPXE menu, which I had no idea about because ubuntu is pretty stable, and iv'e never seen it unable to boot. since then I have been trying to get netbootxyz up and running in my homelab. I have the docker container running and can access the web gui and have gotten my router set up (edgerouter) per the instructions but for some reason, DHCP options are not being passed to the netboot server. I'm going to keep trying until I get it, but in the meantime, I noticed that there is a very short writeup about getting netbootxyz to run the TFTP sever. and it seems to work. BTW, I really like the look and feel of this gisgus. I use Disqus on my site and have been dissatisfied with it from the start. I will see if I can easily integrate it. I don't know if it's your speed, based on the quality of your content, but my site is also tech related--mostly focused on helping others access the world of networking technologies (Cisco and the like). Check it out if youre inclined. Here is a post I did a while back that aptly makes me look like I know what im doing, (I think) https://micah.cerasani.net/take-a-rest/ . Anyway, thanks for all your continued hard work and content |
Beta Was this translation helpful? Give feedback.
-
turns out, the documentation for edgeOS/vyos found here on the linux.io site (https://docs.linuxserver.io/images/docker-netbootxyz/?h=netboo#opnsense) is either worthless or my router doesn't support that particular configuration. instead, I used part of the config from the netbook.xyz site (https://netboot.xyz/docs/kb/networking/edgerouter) three set commands and I was off to the races. Here they are for anyone interested (You will need to adjust the ip addresses for you environment.): edit service dhcp-server shared-network-name LAN subnet 10.0.0.0/24 HTH |
Beta Was this translation helpful? Give feedback.
-
I just found something else odd, I have to change the NIC's MAC address when trying to start the same VM multiple times otherwise the command 'net use.....' does not work. Now that I got passed that, the next issue is that I get an error when the installer is "Copying files", error "Windows could not apply the unattend answer file's «DiskConfiguration> setting" |
Beta Was this translation helpful? Give feedback.
-
Hi Tim, I am sure you would make this look like child's play, like you do everything!!! Your videos have been extremely helpful, and I look forward to your new videos more than any other outlet I am subscribed to. I wanted to pass this along to all of the UDM Pro/SE users out there. (I actually switched to UDM because of your video, and I haven't looked back!) On the UDM Pro/SEChanges made to the "/run/dnsmasq.conf.d/" folder are not persistent. These are modified instructions to keep your configuration persistent on boot.First, SSH into your UNIFI Dream Machine.(Working as of version Network: 8.0.7 UniFi OS 3.1.16) 11/18/2023 It is ok to stay in your home directory for this first command. If you are not currently in the home folder, navigate there by doing:
note, the above step is not required, but it makes you feel more warm and fuzzy. Don't want to leave out any details. Instructions can be found here: Unifi-utilities on-boot-script Now that you are in your home directory, the next step is installing the on-boot-script provided by unifi-utilities. The easiest Method is to execute the following command:
There are also manual methods and upgrade methods if you have previously installed on-boot-script, or you are not comfortable using Now that on-boot-script has been installed, navigate to
Issue the next commands:
replace You are now in vi editor. Don't worry, I know it's not nano, but I'll walk you through it. You should be in a blank file unless you are modifying your script. To edit, simply press the Now enter the following for your PXE.conf file.
Replace The beginning of the syntax above is **Once you have changed your IP and made your edits, you need to press the Now type Your file should now be in your Your next step is to chmod the file so you can run the Now, you want to run your script.To do this, execute the following command. This will run the script you just created and create a file in the This will also automatically restart the dnsmasq process via the command: To verify the file is there, execute the following command:
This will write out the contents of your file in your terminal. Congratulations!You now have a persistent PXE.conf file that will be recreated on each reboot.Note, the on-boot-script doesn't always carry over after each firmware update. Though mine has been successful through the last 4 releases, and I am on the Release Candidate Release Channel. The only thing you need to do, unless unifi makes another breaking change, is to re-run the script: Your .sh files will still be in the /data/on_boot.d/ folder. Hopefully this helps someone!!!
|
Beta Was this translation helpful? Give feedback.
-
local assets can be served by editing the menu ipxe files vise the main boot.cfg so you have the best of both online and local assets as long as you have downloaded local copies. comment out the main link and hard code your local server into the asset link(s)... per below ... EX: for System Rescue CD set url ${live_endpoint}/asset-mirror/releases/download/10.02-a0627929/set url http://10.10.6.1:8080/asset-mirror/releases/download/10.02-a0627929/ |
Beta Was this translation helpful? Give feedback.
-
Hey Tim, thanks for this. As a totally minor comment, I think creating a volume and then using it is simpler, with this docker will create the dir for you and mount it (note that I remebered the convention docker uses for the volumes but used the wrong name as that created the /var/lib/docker/volumes/netboot_netboot_data/_data dir, so stackname_yourname/_data is what it creates). the yaml would be:
|
Beta Was this translation helpful? Give feedback.
-
Hi Tim, I've developed an automation script that handles the installation of Windows ADK and effortlessly builds the WinPE ISO. The entire process is automated, requiring no manual command inputs. (It is a menu where you can choose what to run) I believe this could be a valuable tool for many users. https://github.com/deffcolony/ai-toolbox/tree/main/etc/windows |
Beta Was this translation helpful? Give feedback.
-
Is secure boot supported? |
Beta Was this translation helpful? Give feedback.
-
Tim....Great tutorial! I have an Ubiquiti EdgeRouter where the router needed to be adjusted. The DHCP server configuration didn't work out of the box, so needed to be updated. Passing along to anyone that needs it. https://netboot.xyz/docs/kb/networking/edgerouter/ Ubiquiti EdgeRouterThis document covers how to setup netboot.xyz, a service that provides iPXE-based installation and live boot of a bunch of operating systems, on a Ubiquiti EdgeRouter. Thanks go to Sam Kottler for originally writing up this how-to. Improve setup robustness by using the embedded TFTP daemon from dnsmasq by Yan Grunenberger instead of external TFTP package. |
Beta Was this translation helpful? Give feedback.
-
Hello Tim, i want to run a script after the OS (Windows10/11) is installed. How can i do that with netboot.xyz? The script should install some software. Regards |
Beta Was this translation helpful? Give feedback.
-
compose.yaml
.env
samba.yml
haproxy.cfg
install.bat
winpeshl-windows-10.ini
... windows.ipxe
|
Beta Was this translation helpful? Give feedback.
-
For windows (which I was most interested in), I got it to the point where the command line pops up and executes "wpeinit". After that, I can't do anything as aparently my VM does not have an IPs. Can't ping my netboot machine obviously... Could anyone adise?? thanks |
Beta Was this translation helpful? Give feedback.
-
I was unable to get this to work. Initially I ran into the snag of not having network drivers included in my boot.wim. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the write up Tim. ---
version: "2.1"
services:
netbootxyz:
image: ghcr.io/netbootxyz/netbootxyz
container_name: netbootxyz
#environment:
# - MENU_VERSION=2.0.47 # optional, sets menus version, unset uses latest
volumes:
- ./config:/config # optional
- ./assets:/assets # optional
ports:
- 3000:3000
- 69:69/udp
#- 8088:80 #optional
network_mode: host # <--- NEEDED ON SYNOLOGY
restart: unless-stopped |
Beta Was this translation helpful? Give feedback.
-
posts/netbootxyz-tutorial/
Imagine all of your favorite operating systems in one place, available anywhere on your network, and you’ll never need to use your flash drive again. That’s the promise of netboot.xyz, a network boot service that lets you install or boot to any operating system simply by booting to the network.
https://technotim.live/posts/netbootxyz-tutorial/
Beta Was this translation helpful? Give feedback.
All reactions