@george1421 Yes, I can ping the 192.168.54.X network. The DHCP server is on the fog server, which is 192.168.52.X
Posts made by professorb24
-
RE: How to use fog with two different VLANs
-
RE: How to use fog with two different VLANs
@JJ-Fullmer Is it possible to use two different VLANs with the same fog server? If so, what are the steps? One VLAN is on 192.168.52.X, where the fog server is, and the other is on 192.168.54.X. for testing deployment with fog. I don’t know how to create a scope for the 192.168.54.X VLAN.
-
How to use fog with two different VLANs
Is it possible to use two different VLANs with the same fog server? If so, what are the steps? One VLAN is on 192.168.52.X, and the other is on 192.168.54.X.
-
RE: What's the best way to rename the computer before joining the domain
@george1421 Do I enable the fog client renamer service, and where’s the unattended.xml file? Yes I am talking about the Windows computers.
-
What's the best way to rename the computer before joining the domain
I wonder how best to rename the computer before or after joining the domain and what steps to take.
-
post-installation script
Is there a way for the fog server to run a post-installation script? For example, I need to inject the HP and Lenovo drivers into the image, and I already downloaded the drivers. Everything that I’ve tried post-installation script hasn’t worked.
#!/bin/bash # Path to Windows image file WINDOWS_IMAGE="/path/to/windows_image.wim" # Mount directory for Windows image MOUNT_DIR="/mnt/windows_image" # Path to HP drivers directory HP_DRIVER_DIR="/path/to/hp_drivers" # Path to Lenovo drivers directory LENOVO_DRIVER_DIR="/path/to/lenovo_drivers" # Mount the Windows image mkdir -p $MOUNT_DIR sudo mount -o loop $WINDOWS_IMAGE $MOUNT_DIR # Inject HP drivers sudo dism /Image:$MOUNT_DIR /Add-Driver /Driver:$HP_DRIVER_DIR /Recurse # Inject Lenovo drivers sudo dism /Image:$MOUNT_DIR /Add-Driver /Driver:$LENOVO_DRIVER_DIR /Recurse # Unmount the Windows image sudo umount $MOUNT_DIR rmdir $MOUNT_DIR echo "Driver injection complete."
mod note: fixed the code for readability
-
RE: Inject HP and Lenovo drivers, applications such as Office, Google Chrome, Mozilla Firefox, VLC media player and fonts like Garamond, and Avenir light, demi, and regular into the Windows 11 images
@Tom-Elliott i’ve tried this fog.custominstall
Create the following file named fog.custominstall in the following path on the FOG server /images/postdownloadscripts.
Copy the content into that newly created file
#!/bin/bash
. /usr/share/fog/lib/funcs.sh
[[ -z $postdownpath ]] && postdownpath=“/images/postdownloadscripts/”
case $osid in
5|6|7|9)
clear
[[ ! -d /ntfs ]] && mkdir -p /ntfs
getHardDisk
if [[ -z $hd ]]; then
handleError “Could not find hdd to use”
fi
getPartitions $hd
for part in $parts; do
umount /ntfs >/dev/null 2>&1
fsTypeSetting “$part”
case $fstype in
ntfs)
dots “Testing partition $part”
ntfs-3g -o force,rw $part /ntfs
ntfsstatus=“$?”
if [[ ! $ntfsstatus -eq 0 ]]; then
echo “Skipped”
continue
fi
if [[ ! -d /ntfs/windows && ! -d /ntfs/Windows && ! -d /ntfs/WINDOWS ]]; then
echo “Not found”
umount /ntfs >/dev/null 2>&1
continue
fi
echo “Success”
break
;;
)
echo " * Partition $part not NTFS filesystem"
;;
esac
done
if [[ ! $ntfsstatus -eq 0 ]]; then
echo “Failed”
debugPause
handleError "Failed to mount $part ($0)\n Args: $"
fi
echo “Done”
debugPause
. ${postdownpath}fog.copydrivers
# . ${postdownpath}fog.updateunattend
umount /ntfs
;;
*)
echo “Non-Windows Deployment”
debugPause
return
;;
esacSave and exit your text editor.
Make the script executable with chmod 755 /images/postdownloadscripts/fog.custominstall **this part i get chmod: cannot * chmod 755 ‘/images/postdownloadscripts/fog.custominstall’ :No such file or directory please help!!!
fog.copydriversCreate the following file named fog.copydrivers in the following path on the FOG server /images/postdownloadscripts.
Copy the content into that newly created file
#!/bin/bash
ceol=tput el
;
manu=dmidecode -s system-manufacturer
;
dots “Identifying hardware”
case $manu in
[Ll][Ee][Nn][Oo][Vv][Oo])
machine=$(dmidecode -s system-version)
;;
[Dd][Ee][Ll][Ll])
machine=$(dmidecode -s system-product-name)
;;
I[Nn][Tt][Ee][Ll])
# For the Intel NUC and intel mobo pick up the system type from the
# baseboard product name
machine=$(dmidecode -s baseboard-product-name)
;;
*)
# Technically, we can remove the Dell entry above as it is the same as this [default]
machine=$(dmidecode -s system-product-name)
;;
esacif the machine isn’t identified then no need to continue with this script, just return to caller
if [[ -z $machine ]]; then
echo “Unable to identify the hardware for manufacturer ${manu}”;
debugPause;
return;
fi
echo “${machine} Identified”;Removes Spaces in machine name, works better with path definitions
machine=“${machine%”${machine##*[![:space:]]}“}”;
14-Sep-23 Jeffrey Boulais posted that the above code did not work for his install. He
supplied this code as an alternative. If you run in to a problem using my code
comment out my code and see if his code works better for your installation. The
only right way is the one that works. Thank you Jeff for your input.
machine=“$(echo -e “${machine}” | tr -d ‘[:space:]’)”
03-Jan-24 marsface posted that he could not get either of the two above machine clean up commands to work correctly so he provided this one below which worked for him.
machine=“${machine//[[:space:]]/}”
dots “Verifying we’ve found the OS disk”
if [[ ! -d /ntfs/windows && ! -d /ntfs/Windows && ! -d /ntfs/WINDOWS ]]; then
echo “! OS root Not found !”;
debugPause
return;
fi
echo “Found”;dots “Verifying target Arch”
system64=“/ntfs/Windows/SysWOW64/regedit.exe”
[[ ! -f $system64 ]] && arch=“x86” || arch=“x64”
echo “${arch} found”;debugPause
set osn path names based on the osid set in the FOG WebGui
case $osid in
5) osn=“win7” ;;
6) osn=“win8” ;;
7) osn=“win8.1” ;;
9) osn=“win10” ;;
esacdots “Preparing Drivers”
clientdriverpath=“/ntfs/Drivers”
remotedriverpath=“/images/drivers/$machine/$osn/$arch”debugPause
if [[ ! -d “${remotedriverpath}” ]]; then
echo “failed”;
echo " ! Driver package not found for ${machine}/$osn/$arch ! ";
debugPause;
return;
fi
echo “Ready”;debugPause
[[ ! -d $clientdriverpath ]] && mkdir -p “$clientdriverpath” >/dev/null 2>&1
echo -n “In Progress”rsync -aqz “$remotedriverpath” “$clientdriverpath” >/dev/null 2>&1
[[ ! $? -eq 0 ]] && handleError “Failed to download driver information for [$machine/$osn/$arch]”
debugPause
-
inacessible boot device lenovo thinkbook laptop
I’ve tried everything from changing the host bios exit type, and still nothing works. The image works on an HP laptop that I tested out. Please help me out here. I get the stop code error inaccessible boot device on the Lenovo laptop.
-
PXEv4 couldn't find ip address
PXEv4 MAC address is 0800278BC141 and downloading NBP file, but it wouldn’t download NBP file and the IPv4 are all zero’s.
-
RE: Inject HP and Lenovo drivers, applications such as Office, Google Chrome, Mozilla Firefox, VLC media player and fonts like Garamond, and Avenir light, demi, and regular into the Windows 11 images
@george1421 I tried adding the applications to the FOG snapins, and none of them would install using the FOG snapin function on the FOG server GUI. Can you please show me an example of using the FOG Snapins function?
-
RE: img to iso
To deploy the image, yes, because I need the image to use PXE by the fog server, but I don’t know how.
-
Inject HP and Lenovo drivers, applications such as Office, Google Chrome, Mozilla Firefox, VLC media player and fonts like Garamond, and Avenir light, demi, and regular into the Windows 11 images
Is it possible to inject HP and Lenovo drivers, applications such as Office, Google Chrome, etc… Is there also a way to inject fonts such as Garamond and Avenir Pro light, demi, and regular into customized Windows 11 image that I could create using FOG?
-
img to iso
Is it possible to make the img files bootable, or do I need to make the (img) files into iso files? If so, which ones?
-
RE: bootable USB FOG image
@george1421: I cannot launch the FOS Linux engine.
-
RE: bootable USB FOG image
@george1421 I need to boot via USB because it’s a university/school office environment. I’m trying to get images off the FOG server I’ve captured from the FOG server to the USB stick. Any ideas on how to do that?
-
bootable USB FOG image
I’m trying to figure out how to make a bootable flash drive with the fog server images. I’ve tried to follow the online steps for creating a bootable flash drive with the FOG server on the FOGproject website, but no luck. I also tried using Clonezilla, but it’s not working either. Can you please guide me in the right direction?
-
RE: Can't get pxe boot on my VM (FOG)
I have a separate VLAN, and my networking team doesn’t want me to give out “fake” IP addresses on our network.
-
Can't get pxe boot on my VM (FOG)
I have my fog server set up, and it’s 192.168.52.11, and the gateway is 192.168.52.254. I’m trying pxe boot on my Windows 11 VM to get the fog server to recognize my Windows 11 VM, and it only boots into WDS, not pxe boot, and the IP for Windows is 192.168.52.9. I’m only allowed to use static IP and not can’t use DHCP. I’m also new at using FOG. Any help would be appreciated.
-
Can't deploy image with FOG and PXE FOR FOG
I captured windows 11 from the desktop and I am trying to deploy with fog it gives an error message of Failed to create tasking DESKTOP-4DIJVMR Failed to start tasking type Deploy Host is already a member of an active task and I tried to boot in PXE for FOG and I’ve downloaded FOG client on the target client for deploying but FOG isn’t popping up in the boot menu.