Figured I should add, my speed issue was related to running PHPIPAM (a ip management tool) on my storage node server. It was slowing my image deploys down, not the zstd. It’s crazy fast at compression level 19 now.
Best posts made by JJ Fullmer
-
RE: ZSTD Compression
-
RE: FOG API add snapin, run task and then delete
@sebastian-roth Hey that’s me!
@Chris-Whiteley I do this all the time. So 100% yes you can do this. I even have some pre-built helper functions for it in the published powershell module FogApi.
So step one is install and setup the fogapi powershell module (check the links in my signature)I actually do pretty much that exact process in my provisioning of machines.
Check outSet-fogsnapins
for setting a list of snapins to a host https://fogapi.readthedocs.io/en/latest/commands/Set-FogSnapins/
(I just noticed I forgot to remove the $dept parameter in that function, that was for my internal use, you can just ignore it)Start-FogSnapins
for starting the deploy all snapins task on a host
https://fogapi.readthedocs.io/en/latest/commands/Start-FogSnapins/Remove-FogObject
for removing the snapins from a host, looks like I haven’t published a helper function for removing the snapins just yet.
https://fogapi.readthedocs.io/en/latest/commands/Remove-FogObject/- here’s an example of how you would remove the snapins. To remove them you have to remove the snapinassociation object.
#create a list/array of the snapins you want to remove $snapinsToRemove = @('snapin','names','here'); #get all the snapin associaion objects $AllAssocs = (Get-FogObject -type object -coreObject snapinassociation).snapinassociations # Get the snapins associated with your host $AllHostSnapins = Get-FogAssociatedSnapins -hostId $hostID; #get the ids of the snapins you want to remove, from the list of snapins attached to your host. $snapinIds = ($AllHostSnapins | Where-Object name -in $snapinsToRemove).id #Get a list of the snapinassociation ids that match your host id and are in the list of snapin ids attached to your host $assocsToRemove = $allAssocs | Where-Object { $_.hostID -eq $hostID -AND $_.snapinID -in $snapinIds} # loop through the found associations and remove them $assocsToRemove | ForEach-Object { Remove-FogObject -type object -coreObject snapinassociation -IDofObject $_.id; }
That should do the trick.
-
RE: What is the different between Host Bios Exit type and Host EFI Exit Type?
@amerhbb
I’m pretty sure there’s definitions of this elsewhere in the forum or in documentation/wiki that is more thorough.But here’s a quick overview
Exit Types
EFI exit type
- Used for computers in EFI/UEFI mode. This is used in all modern computers for the last few years
- Setting the efi exit type is the behavior fog will use when ‘booting to hard drive’ the pxe menu was booted to via an efi/uefi boot option
Bios
- For older computers or computers using legacy/bios mode
- This defines the behavior when the fog boot menu is accessed via a legacy/bios boot option and then ‘boot to hard drive’ is selected
SANBOOT
- Works for bios exits by issuing a sanboot command to boot to hard drive
Doesn’t work with efi in my experienceEDIT: iPxe has since updated the behavior of SANBOOT and it now works with EFI and is the recommended option.- This is a good standard default for bios exit type
GRUB
- Uses a grub boot loader hosted on fog to attempt to boot to the OS
- This can work with efi or bios, but it isn’t always super reliable in my experience. It’s a good option to use when troubleshooting a computer that is having trouble exiting the fog boot menu to get to the hard drive
GRUB Sub options
- The sub options like first_HDD, first_windows etc. attempt to do exactly what they say. They are just GRUB bootloader options
rEFInd
- This uses a tool called rEFInd, which re-finds all efi boot options
- The fog refind conf just boots to the harddrive/os option it finds. It can be configured to give a menu of options
- This can work with bios options in theory, but it’s meant for EFI exit
This is a good default for efi boot optionsYou can now use SANBOOT instead and it should work properly in EFI, though rEFInd is still a powerful tool
Hope that helps.
-
RE: Capture not the entire disk but more than one partition
As a side note:
The image type description in the wiki (I got there from the balloon help: https://wiki.fogproject.org/wiki/index.php?title=Managing_FOG#Images) points to a non-existing page (404): https://docs.fogproject.org/en/latest/management/image-management.htmlThanks! @JJ-Fullmer would you find the time to fix that quickly?
Fixed!
@medchemii thanks for letting us know. We changed the structure of the new docs page a bit and it affected the links. We’re working on getting redirection working for old links still -
RE: Problem with FOG Service …
@Laurent said in Problem with FOG Service …:
I use an encrypted password because I don’t want other fog users to see my password in plain text
I would recommend using a separate domain admin account rather than any 1 user’s domain account. Partly because of the issue you describe (though that’s not something that can be seen in the web gui) but also so that it’s a password that won’t expire with a user leaving and it’s a password that can be rotated without affecting other services.
Just my 2 cents.
-
RE: Odd NFS issue
I mount my /images from an attached array straight into the /images folder and it works without issue. But I’m using ubunutu 14.04 and the drive is formatted as ext4. But regardless I imagine it would still work.
What does your /etc/exports look like?
cat /etc/exports
what does your /etc/fstab say? That’s where the options for mounting it in the os would be
cat /etc/fstab
what are the permissions currently on /images?
ls -l /images
Are you on the latest trunk of FOG 1.2? I think FOG 1.2 had a fogstorage user that needed permissions to the storage nodes and its password needs to be set correctly in the gui storage node settings.
Does the graph of the space usage display on the fog gui homepage?
Are you able to mount the nfs drive elsewhere?
for example if you happen to have an enterprise version of windows install the
“client for NFS” in the “turn windows features on and off” found in the “add or remove programs” control panel.If that client is installed you can mount an NFS share in windows by either
running this command in a run prompt…\fog-server\images
or
In command linemount \\fog-server\images Z: cd /d Z: Z:\>dir images directory listing pops up
Granted @Wayne-Workman is probably right saying you should add it as a separate storage node since its hosted on a different machine and a different OS and all. But some of this might help troubleshoot this if getting it to work is possible through your current configuration
-
RE: FOG 1.5.10 officially released
@Sebastian-Roth I have a work in progress concept for permanent links. But things have gotten busy and I haven’t had much free time to get it working in full.
Short version is that we’ll be able to create uuids for all pages and that can be used as a permanent link even if it moves elsewhere in the doc. -
RE: Client boot to HD goes to memtest.
@AlexMaxwell I don’t suppose you’d be willing to share how you got winPE to work through pxe using an iso? I tried to do that many moons ago to no avail.
Please and thank you =D -
RE: dnsmasq breaks apt-get
If you want to make it so you don’t have to comment out port=0 then you can fix this by fixing the resolvconf missing dns server issue.
See this old post for a ton of detail…
https://forums.fogproject.org/topic/2799/dnsmasq-kills-dns-lookup-on-fog-server/6
I know I’ve posted it in a more readable form more recently, but found that one first.TL:DR
just edit the interface-order at/etc/resolvconf/interface-order
to have your main ethernet adapter at the top and be sure to have nameserver lines defined in your static ip definitions if not using dhcp. -
RE: MSI Silent install
Although I imagine you figured this out by now, I also wanted to do this and found this post. I figured this is as good a spot as any to post it.
I’ve noticed that the service works better when it’s installed on each computer after imaging rather than trying to include it as part of an image.
So the idea of this script is to download the latest version and install it silently right after imaging, so I would suggest adding it as a snapin that you put on all clients. The only change you should need to make is changing the fogip variable to your fog server ip.@ECHO off set fogip=192.168.100.100 echo "downloading latest client..." powershell -Command "wget http://%fogip%/fog.client/download.php?newclient -OutFile C:\FOGService.msi;" echo "installing client..." msiexec /i C:\FOGService.msi /quiet WEBADDRESS=%fogip% echo "starting service..." net start FOGService echo "Done!" exit
-
RE: No Resizable partitions found
@Tom-Elliott oh duh, pita, tee hee. I thought you might have just had something against pita’s the food or something.
I’m upgrading now and trying again. -
RE: Client boot to HD goes to memtest.
@AlexMaxwell You are a beautiful and wonderful person.
-
RE: Cortana/Windows Search breaks in default profile
@Wayne-Workman
Well it’s not technically a fog issue, but it is an imaging issue and I figured that my fellow image making peers might have some thoughts. I would love to see your documentation on that process -
RE: MSI Silent install
@Jbob oh sorry, that was kind of vague.
It starts and all that but it doesn’t seem to do anything when I set the client to a task on the server.
This could be just me and I need to test more though. -
RE: No Resizable partitions found
@Tom-Elliott Oh good, I was about to post a horrifying screenshot of errors I just got.
Trying again -
RE: Unable to Register Optiplex 780
How is your FOG server configured for dhcp?
Do you use a dnsmasq dhcp proxy?
Is fog the dhcp server?
Do you have a linux or windows dhcp server externally? -
RE: Active directory Join issue
Just to answer some of your questions. The delayed task time thing is a bug that I have had too, haven’t actually found a solid fix for it. But with a little testing you can figure out how many hours it’s off and get delayed tasks working. However, this time issue doesn’t effect active directory joining.
Also the fog server not being on the domain is also not an issue. My fog server isn’t on the domain and the AD joining works no problem.
Can you show us a screenshot of the active directory default settings you have set in the fog gui?
-
RE: FOG With BASH
So you can do these things in the gui with much ease. I’m guessing you’re trying to write a script of some sort to automate it further?
If you run a debug session then you can run any of those commands on the computer you’re imaging with things like fog.wipe and fog.download.Since the actions you make in the gui are essentially doing things in the database, I suppose that it would be possible to manually edit the database with a script to queue the actions you want on the computers you want. But I don’t know the database well enough to help much more than point you in that direction.
What exactly are you trying to do though? You can set up cron style jobs in the gui if you are trying to just have wipes and restores done regularly, you could set that up in the gui without custom code. Just select cron style deployment when you queue a job in the gui.
Hopefully that’s helpful in some way.