That will get messy when I have more than 16 stations, but that sounds like it is what I need, thanks!
Latest posts made by mootsfox
-
RE: FOG for Testing Hardware
-
FOG for Testing Hardware
I have a production FOG server that has been up and running (100%) for about 8 months now. It images around 50-100 computers daily and has been a champ this whole time. Excellent software. I want to move forward with this project and into other departments. I have a rack with sixteen computers to do RAM and HDD testing, I’d like to have those computers default to memtest or my HDD testing .iso, while still having the standard PXE boot -> menu option for computers that need to be re-imaged. It has been awhile since I have actually done administration on my FOG system (no need, it’s stable) so I’m not sure how to go about doing, or if it is possible. The machines will be static, with non-changing MAC addresses, if I have to manually configure them, I’m not concerned about that. Ideally they would PXE boot and go to a different menu than the computers getting reimaged. I’m curious if this is possible.
-
RE: FOG Status
I agree to that, Andy. My FOG server and Unix storage server have around 180 days of uptime in production. If I don’t power cycle the Windows servers once a week or so they start to get stale.
-
RE: Deduplication issues
I had the same problem when running dedup on FreeNAS under ZFS.
In the end, I decided that the RAM hit and risk was not worth the savings.
-
RE: FOG, NFS and FTP
So I figured it out. Capone adds an option to the PXE boot menu, which is great, but my menu is not stock, and the automatic entry it adds was failing. Fix that and it boots fine.
So, it is possible to set Capone to use a different NFS/TFTP/Web server if you want to. The script calls on what is defined in the PXE boot option, not what FOG uses for settings.
-
RE: Where are you located ? Please Reply..
Our states are also the size of countries in Europe… Not to mention, they often act like they are separate countries :rolleyes:
-
RE: FOG, NFS and FTP
I believe that the Capone script is finishing as it should, because it looks like it runs the fog script at the end, “fog”.
Opening up the fog script, I tried to read through it following along with what the client outputs on the screen and got to Line 122
[code]echo -n " * Mount File System…“;
mkdir /images $debugstring 2>/dev/null;
mount -o nolock, proto=tcp $storage /images 2>/tmp/mntfail
mntRet=”$?";
if [ ! “$mntRet” = “0” ]
then
blame=wget -q -0 - "http://${web}service/blame.php?mac=$mac" 2>/dev/null
if [ ! “$blame” = “##” ]
then
echo “Failed”;
echo “”;
echo -n " * ";
cat /tmp/mntfail
echo “”;
echo “Error during failure notification: $blame”;[/code]And so on.
The mount is failing. What makes Capone deploy differently? The mount should be the same. It loads and selects an image, then loads the FOG script. I don’t understand why it would work through task management but not through Capone…
Anyone know what tmp/mntfail is referring to?
-
RE: FOG, NFS and FTP
You are correct in me not wanting to use MAC addresses. The goal is to plug a computer in, have Capone decide which image to send, and push it as fast as possible. Then move onto the next unit. Registration is not used at all in my deployment. Only to create the master image.
I’m running into such confusion because I know Capone works, and well, as I have tested it with the previous build of this system. That was when the FOG server controlled everything though. There is some hiccup between the FOG server, client and/or FreeNAS system during deployment, which leads me to believe that the hand off is different, or Capone changes the way it works.
There is such great documentation on FOG and FreeNAS, but only a few lines for Capone, and I can’t seem to find anyone else who uses it…
EDIT:
I found the script for Capone. I don’t know bash(?), I can’t read the script beyond the general idea of what it does. The script is wherever fog was extracted then
[code]fog_0.32/src/buildroot/package/customize/fog/scripts/bin/fog.capone[/code]The script runs almost to the end, I pasted the from last echo that shows on the client machine to the end of the script.
[code]echo " * Setting up environment to deploy image…";
export type=down
export mac = “00:00:00:00:00:00”; #Not important for Capone
export img;
export osid;
export imgType;
sleep 2;clearScreen;
fog[/code] -
FOG, NFS and FTP
I have having troubles with FOG connecting to my NAS. I have created this thread here instead of FOG Problems, because I am curious as to how FOG works, and want to understand this before trying to fix my problems. I am relatively new to *nix, especially when dealing with permissions, and completely self taught. I have no one and nothing but the internet (and some books) to learn from. There is no one locally I can ask to clearify or explain some concept to me. Please excuse holes and lapses in my understanding.
[U]My setup[/U]
[LIST]
[]FOG Server - 192.168.15.72 - (dual core Xeon, 2GB RAM, 500GB HDDs in RAID 1) - Ubuntu 11.04 (natty)
[]FreeNAS Server - 192.168.15.15 - (quad core Xeon, 24GB RAM, 62TB HDDs in RAIDZ1) - 8.3.1-RELEASE-p2-x64
[]Cat5e patch cables
[]24 port unmanaged Gigabit switch
[]Client machines
[/LIST]No AD, no DNS, no internet, nothing else connected.
FOG Server handles for the network DHCP and TFTP.
FreeNAS has a NFS share with NFS and FTP services running.There is a mount for FreeNAS into the /images directory. /images and /images/dev are owned by fog:root, with full user/group/other permissions. My goal is to make this as open as possible until I understand it and narrow the permissions down later for security.
I can see FreeNAS mounted in my file system on the Ubuntu server. I can read and write to this directory. I can register a host, and create an image. The image successfully moves from /images/dev to /images and is renamed with the image name. I can even deploy to that unit/MAC address with no trouble.
My problem comes into play when I try to image the unit with Capone. For those that have not read about Capone, it is a supported plugin that removes the need for the client to have a MAC address when deploying an image. Instead, it pulls DMI data from the client computer and matches that to definitions that are set within the plugin. This plugin is essential to what I am using FOG for. When I try to image a computer using the Capone plugin, the system fails to mount the NFS share. For clarity, I am posting in the code below, the output on the client machine. For reference, this is an IBM T400 with Windows 7, imaged as multiple partition, single disk. The DMI key used in 6475MC2, which is shared across this model.
[code]* Loading Capone…
-
Looking up DMI field…Done
-
Using Key Value: 6475MC2
-
Looking for images…Done
ID 1) OS: Windows 7 Image: IBMT400 -
Setting up environment to deploy image…
-
Checking Operating System…Windows 7
-
Checking CPU Cores…2
-
Send method…NFS
-
Mounting File System…Failed
-
mount: mounting 192.168.15.72/images on /images failed: No such file or directory
Error during failure notification: Unable to find a valid task ID or host ID based on the clients mac address of : 00:00:00:00:00:00
Unable to find a valid task ID or host ID based on the clients mac address of: 00:00:00:00:00:00
[/code]
Note, that I can deploy an image to this machine with no trouble if I do it as a task within the FOG management console.All this leads me to the questions of;
[LIST]
[]How does FOG connect to a separate NFS and FTP server?
[]What user/group does it assign to a client so that it can talk to the system?
[]How does FOG manage NFS shares and FTP access?
[]How is the data for creating an image routed, does each bit move through the FOG server, or does it hand the connection off to the client and NFS?
[]Is this different from when it deploys an image?
[]How does deploying with Capone change that?
[*]Capone seems to assign a MAC address of 00:00:00:00:00:00, how does this affect the ability of FOG to deploy?
[/LIST]
If there are any Capone/FOG experts out there, I would love to hear any additional notable nuggets of information that I missed as well. -
-
RE: Applying .gho and .img files, manually selecting image from client machine
[quote=“Jaymes Driver, post: 11763, member: 3582”]There is a way to incorporate *.iso images to boot from maybe something similar can be done with the images your have?
Unfortunately I think that using a spare hard drive and uploading the image would be the best bet, just don’t actually BOOT the refreshed image so it doesn’t change any drivers and turn around and immediately upload it to FOG. This would probably be the fastest work around, but I’d start with one i have the hardware for to make sure nothing gets mucked up in the process. From what you have explained I agree with you and I’m on the same page, the images SHOULD be good, but do a test on one just to make sure!
Here’s that post on booting ISO images. [url]http://fogproject.org/forum/threads/how-to-modify-the-pxe-boot-menu-to-allow-the-booting-of-iso-files.154/page-2[/url][/quote]
Thanks for the link James. I actually want to load diags and other such things from .iso files as well.
I think I found a dirty workaround here to select images: [url]http://fogproject.org/wiki/index.php/Bypass_Host_Registration[/url]