• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. rado
    3. Posts
    R
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 49
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by rado

    • RE: Support for multiple nics / subnets

      OK, so here is what’s needed to switch FOG 1.2.0 between networks (interfaces):

      • FOG System Settings -> FOG Configuration:
        * General Settings: FOG_WOL_HOST (change ip); FOG_WOL_INTERFACE (change iface)
        * Multicast Settings: FOG_UDPCAST_INTERFACE (change iface)
        * NFS Server: FOG_NFS_ETH_MONITOR (change iface)
        * TFTP Server: FOG_TFTP_HOST (change ip)
        * Web Server: FOG_WEB_HOST (change ip)
      • Storage Management -> DefaultMember:
        * IP Address (change ip)
        * Interface: (no changes)
      • /tftpboot/default.ipxe: change ip in last line
      • change default gateway using ip command (to make wake on lan work - it uses default gw for broadcasts):
        * ip r del default - delete current
        * ip r add default via <gw for second network>
      posted in Feature Request
      R
      rado
    • RE: Sysrep win 7 join samba NT domain

      Ok, sorry for delay, here is what we use to make win7 join Samba NT4 domain (maybe it helps somebody):

      • after sysprep, fog automatically renames host (it’s done fairly early after sysprep, so there is little or perhaps no chance that computer will join domain with bad name), then it restarts and
      • downloads associated snapin - I named it setup_complete_snapin - which contains 2 scripts:
        [LIST=1]
        []setupcomplete.cmd
        [
        ]join_domain.ps1 (powershell script)
        [/LIST]
        SETUPCOMPLETE.CMD:
        [CODE]
        @echo off

      rem delete unattend files
      del /Q /F c:\windows\system32\sysprep\unattend.xml
      del /Q /F c:\windows\panther\unattend.xml

      rem delete dir with additional drivers (those which win didn’t install automatically - needs registry update for win to look here)
      rd /S /Q c:\Drivers

      rem win activation
      cscript //b c:\windows\system32\slmgr.vbs /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
      cscript //b C:\windows\system32\slmgr.vbs -ato

      rem office 2010 activation
      cscript “c:\Program Files\Microsoft Office\Office14\ospp.vbs” /act

      rem registry changes
      :: enable self deffense (registry protection) for NOD Endpoint Antivirus 5.0 - disabled before sysprep, because of sysprep crashes with this enabled
      REG ADD “HKLM\SOFTWARE\ESET\ESET Security\CurrentVersion\Plugins\01000001\Profiles@My profile” /v selfdefense /t REG_DWORD /d 0x1 /f
      :: for win7 to join Samba NT4 domain
      REG ADD “HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanManWorkstation\Parameters” /v DomainCompatibilityMode /t REG_DWORD /d 0x1 /f
      REG ADD “HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanManWorkstation\Parameters” /v DNSNameResolutionRequired /t REG_DWORD /d 0x0 /f
      :: fixes problems with login (source: https://lists.samba.org/archive/samba/2010-October/158591.html)
      REG ADD “HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Netlogon\Parameters” /v DisablePasswordChange /t REG_DWORD /d 0x1 /f

      rem domain join
      :: didn’t work without cd
      cd \windows\temp\setup_complete_snapin
      powershell set-executionpolicy remotesigned
      powershell .\join_domain.ps1
      powershell set-executionpolicy allsigned

      rem extends partition to whole disk
      diskpart /s .\diskpart.txt

      :: sleep a la MS Windows 🙂
      ::ping -n 10 1.1.1.1

      rem restart
      shutdown -r -f -t 120

      Exit
      [/CODE]
      For domain join, really needed are only sections: domain join, registry changes (for win7 to join Samba NT4 domain) and perhaps restart.

      JOIN_DOMAIN.PS1:
      [CODE]

      user and pass - pass has to be in apostrophes, quotation marks didn’t work

      $User = “DOMAIN\USER”
      $Pass = ConvertTo-SecureString ‘PASSWORD’ -AsPlainText -Force

      create credentials

      $Credentials = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $User,$Pass

      join domain with loggin to file

      #add-computer -domain DOMAIN -credential $Credentials 2>&1 > join_domain.log

      join domain

      add-computer -domain DOMAIN -credential $Credentials
      [/CODE]

      posted in Windows Problems
      R
      rado
    • RE: Windows 7 Deployment FOG- SAD2 Driver tool

      Ok, sorry for the delay, thanks for reply.

      In the end we used our previous image - for which, afaik, there was never used audit mode and everything was installed via (normal) administrator account - and it seems there are no issues.

      [quote=“Jaymes Driver, post: 35201, member: 3582”]No, OOBE is for making the machine into a Like new Out Of Box Experience. Audit Mode is a tool to use during an Image setup process, that requires the finalization of the OS so it can (if you supply an unattend.xml) make your Installation autonomous.

      The Audit mode is where you get to windows BEFORE the OOBE process happens. You are suppose to install all your software at this point then sysprep and upload, On first deploy the installation will answer the installation questions with your provided unattend.xml and complete the OOBE process (generalizing the installation so that new drivers can be applied to the system, cleaning some registry values and other secretive windows type things).

      Really, there isn’t much difference in if you just install the software as a user and push your image, except the generalization processes which allows the machine that you are imaging to have their own hardware identifiers and unique strings which will be required for activation. This is only really important if you activate to a KMS server or if you join to an active directory environment (speculation have not tested I am not AD).

      Try it, tell us what does and does not work if you don’t sysprep, that’s really the only thing I can recommend.
      [/quote]
      And just for clarification - we do use sysprep, we just don’t install stuff via audit mode admin account.

      [quote=“Jaymes Driver, post: 35201, member: 3582”]
      Personally, I read many tutorials before I began pushing windows 7. each one mentioned using Audit Mode to install my software and drivers before completing the generalization process, and I have had marginal success in doing so.

      Hope this helps![/quote]

      posted in Tutorials
      R
      rado
    • RE: Windows 7 Deployment FOG- SAD2 Driver tool

      Hi all, I have one question regarding audit mode. As far as I understood, it’s equivalent mode to OOBE (or Windows Welcome) but it’s meant more for technically skilled and for corporations than for end users. But in the end, it has the same use: to prepare freshly installed win.

      Now, is it problem to not do (2nd and n-th) image preparation in audit mode (of course, the 1st we did this way)? Is it ok to update windows, update/upgrade/install/remove software, change profile, etc. via logged in administrator and then start sysprep oobe with generalize from here (before capturing image)? Had anybody problems doing it this way or do you see any potential problems?

      I read, that audit mode is needed for auditSystem and auditUser passes to happen (if I got it right). But since we based our unattend.xml on this tutorial, we don’t use auditSystem or auditUser.

      Does anybody know some (perhaps official) text, which explains if there is any difference between doing sysprep in audit mode and normally from logged in administrator account?

      Thanks.

      posted in Tutorials
      R
      rado
    • RE: Sysrep win 7 join samba NT domain

      Hi, bit delay, but I’m almost in the end (will post howto - maybe it helps somebody), but would like to know how this snapin subsystem works. It seems that when FOG client starts first time (after deploying), it automatically downloads associated snapins and run them (without creating snapin task).

      How does FOG client know it starts first time? And, will this work?: I create master image, upload it, deploy it (with snapins automatically downloaded and applied), then next semester use this same image (with updates and perhaps software changes), upload it, deploy it with snapins (again) correctly applied. If yes, it would be really nice 🙂

      I tried to search here this but didn’t find anything - if this was already discussed, feel free just to post link.

      Thanks.

      posted in Windows Problems
      R
      rado
    • RE: Sysrep win 7 join samba NT domain

      Hi X23, I discarded this way (scripts in c:\windows\setup\scripts) - I forgot about renaming before joining, so when I finally made these scripts working I realized this and since I didn’t figure out how to accomplish this renaming using powershell or sysprep, I decided that I make snapin which consists of these scripts and will run after FOG client renames hosts. It seems to work, I just need to test it all together with sysprep.

      And what do you mean by using fog client for joining? Is it possible to join win 7 to NT4 based (samba v 3.6) domain? I initially thought I will try it, but then just took the snapin way.

      Thanks, Rado.

      posted in Windows Problems
      R
      rado
    • RE: Sysrep win 7 join samba NT domain

      Thanks for reply. I know, but I’m bit afraid of converting to Samba 4 (lot of work and uncertain results?). I know I will have to do it someday, but I just wanted to try it with my current setup since manual joining works (and if nothing works, just convert to AD). Now, I’m almost in the end - not using sysprep, but Power Shell script in c:\windows\setup\scripts\ which is called by setupcomplete.cmd - it works when I’m normally logged in as Administrator, but not during (or after?) sysprep process…

      posted in Windows Problems
      R
      rado
    • Sysrep win 7 join samba NT domain

      Hi all, is here somebody who is able to join win 7 automatically via sysprep (or maybe other way) to samba based NT domain (samba ver. 3.6)? I can do it manually, but am not sure how to automate this. Is it possible using sysprep?

      Or, is FOG client able to join only AD domain or can it join NT domain also?

      I searched this forum and didn’t found others with this issue.

      Thanks.

      posted in Windows Problems
      R
      rado
    • RE: Support for multiple nics / subnets

      It seem to work - svn 2014 - creates udp-sender processes with right interface no matter what’s in /var/www/fog/lib/fog/Config.class.php. Didn’t test deploying.

      posted in Feature Request
      R
      rado
    • RE: Support for multiple nics / subnets

      So, if I upgrade to SVN 2004, it should no longer use config and there will by only database (via FOG Configuration web interface) as configuration storage?

      And what’s “dynamics”?

      Thanks.

      posted in Feature Request
      R
      rado
    • RE: Support for multiple nics / subnets

      Hi, thanks. I tried this already, but tried it once again and the same result. Then I realized, that maybe it needs /etc/init.d/FOGMulticastManager restart and yes, now the interface is changed 🙂

      Few questions however - what is that setting - FOG_UDPCAST_INTERFACE - in FOG Configuration for? And why are there 2 configuration places - database and config file? Is it for some legacy reasons, or?

      posted in Feature Request
      R
      rado
    • RE: Support for multiple nics / subnets

      So, finally I’ve time to look at this again. I decided that I at first try to tinker with interface settings. But I can’t find right setting which affects udp-sender’s interface - I tried settings in FOG Configuration (FOG_WOL_INTERFACE, FOG_UDPCAST_INTERFACE, FOG_NFS_ETH_MONITOR), in Storage Management and in /var/www/fog/lib/fog/Config.class.php, and some combinations of these, but nothing works.

      What’s the right way to change it? Is there some other setting I missed?

      Thanks.

      posted in Feature Request
      R
      rado
    • RE: "Successfully created tasks...", but erros in multicast.log

      I started 1 task for whole group (around 80 clients) and it ended up with 4 (and second time with 5) tasks with the same number of udp-sender processes, logs etc. The tasks had variable number of clients (around 20 in average)…
      Last time it ended in a mess - made few tasks (I think 3 or 4) and then it couldn’t find clients or what:

      [CODE]
      [07-02-14 1:59:50 pm] | Task (20) cpu is new!
      [07-02-14 1:59:50 pm] | Task (20) /images/cpunew image file found.
      [07-02-14 1:59:50 pm] | Task (20) cpu failed to execute, no clients are included!
      [07-02-14 2:00:00 pm] | Task (15) cpu is already running PID 19255
      [07-02-14 2:00:00 pm] | Task (16) cpu is already running PID 19448
      [07-02-14 2:00:01 pm] | Task (17) cpu is already running PID 19639
      [07-02-14 2:00:01 pm] | Task (18) cpu is already running PID 19831
      [07-02-14 2:00:01 pm] | Task (19) cpu is already running PID 20015
      [07-02-14 2:00:01 pm] | Task (20) cpu is new!
      [07-02-14 2:00:01 pm] | Task (20) /images/cpunew image file found.
      [07-02-14 2:00:01 pm] | Task (20) 1 client(s) found.
      [07-02-14 2:00:01 pm] | Task (20) cpu sending on base port: 62908
      [07-02-14 2:00:01 pm] CMD: cat “/images/cpunew/d1p1.img”|/usr/local/sbin/udp-sender --min-receivers 1 --portbase 62908 --interface eth1.212 --full-duplex --ttl 32 --nokbd;cat “/images/cpunew/d1p2.img”|/usr/local/sbin/udp-sender --min-receivers 1 --portbase 62908 --interface eth1.212 --full-duplex --ttl 32 --nokbd;
      [07-02-14 2:00:01 pm] | Task (20) cpu has started.
      [/CODE]

      I don’t know what went wrong - I was testing change of multicast interface, so was changing interface, creating task, looking if it works, killing the task few times until this mess… then I just restarted server, because everything was too slow (which I observe since upgrade to 1.1.1, but I’m not sure if the problem is in FOG or my server)… strange things :)… maybe the creating and killing of tasks made a bit mess in the database or what…

      BTW: is this ok? (it’s from code excerpt above):

      [CODE]
      [07-02-14 2:00:00 pm] | Task (15) cpu is already running PID 19255
      [07-02-14 2:00:00 pm] | Task (16) cpu is already running PID 19448
      [07-02-14 2:00:01 pm] | Task (17) cpu is already running PID 19639
      [07-02-14 2:00:01 pm] | Task (18) cpu is already running PID 19831
      [07-02-14 2:00:01 pm] | Task (19) cpu is already running PID 20015
      [/CODE]

      posted in FOG Problems
      R
      rado
    • RE: "Successfully created tasks...", but erros in multicast.log

      Well, I crated new image and everything seems ok - except it created 4 tasks (with 4 udpcast processes and multicast logs) with 24 clients per udpcast session (one is 13). It’s around 80 computers (all together). Is it ok? And if yes why is it now creating multiple tasks?

      And regarding the old image - what could be wrong? I think I read in release info that old images are supported. I’m just asking - I’ve not lot of images, so it’s not much problem for me.

      posted in FOG Problems
      R
      rado
    • RE: "Successfully created tasks...", but erros in multicast.log

      No, on 0.32 installation it’s Win XP - this was at first Single Partition (NTFS Only, Resizable) and didn’t work; after reuploading it as Multiple Partition Image - Single Disk (Not Resizable) it works.

      On 1.1.2 it’s Win 7 it’s Multiple Partition Image - Single Disk (Not Resizable) and doesn’t work. But it’s older image, made (I think) using FOG 0.33 (or 0.32).

      I’m not sure if these both are related but they have the same symptom - missing command in multicast.log.

      posted in FOG Problems
      R
      rado
    • RE: "Successfully created tasks...", but erros in multicast.log

      Interestingly, I’ve had this same problem with 0.32 FOG - no command on CMD: line in multicast.log, the task automatically deleted immediately after it was created, even it said the task was successfully started… the cause was image type - Single Partition (NTFS) - when I reuploaded the image using Multiple Partition - Single Disk type, the task started successfully and now I’m deploying.

      But in 1.1.2 FOG I used older image - Multiple Partition - Single Disk - not Single Partition (NTFS)… I’ll try other image and create fresh new image and see if it helps.

      posted in FOG Problems
      R
      rado
    • "Successfully created tasks...", but erros in multicast.log

      Hi, this is fresh 1.1.2 install (but I’ve had this issue also with 1.1.1) after uninstalling previous (I think it was 0.33) FOG version. Just installed it, imported clients (from ohter, 0.32, install), created image (I’ve older image files - not sure if partclone or partimage version - how can I find it out?), created group (called “cpu”), associated image with clients (through group setting), created multicast task and it said “Successfully created tasks for deployment to the following Hosts” with list of hosts, but there was no udpcast process and in multicast.log I found this:

      [CODE]
      [06-26-14 9:28:33 am] | Task (1) cpu is new!
      [06-26-14 9:28:33 am] | Task (1) /images/cpu image file found.
      [06-26-14 9:28:33 am] | Task (1) 16 client(s) found.
      [06-26-14 9:28:33 am] | Task (1) cpu sending on base port: 63100
      [06-26-14 9:28:33 am] CMD:
      [06-26-14 9:28:33 am] | Task (1) cpu failed to start!
      [06-26-14 9:28:33 am] | * Don’t panic, check all your settings!
      [06-26-14 9:28:33 am] | even if the interface is incorrect the task won’t start.
      [06-26-14 9:28:33 am] | If all else fails run the following command and see what it says:
      [06-26-14 9:28:33 am] |
      [06-26-14 9:28:33 am] | Task (1) cpu has been cleaned.

      [06-26-14 9:28:43 am] | Task (2) cpu is new!
      [06-26-14 9:28:43 am] | Task (2) /images/cpu image file found.
      [06-26-14 9:28:43 am] | Task (2) 23 client(s) found.
      [06-26-14 9:28:43 am] | Task (2) cpu sending on base port: 52558
      [06-26-14 9:28:43 am] CMD:
      [06-26-14 9:28:43 am] | Task (2) cpu failed to start!
      [06-26-14 9:28:43 am] | * Don’t panic, check all your settings!
      [06-26-14 9:28:43 am] | even if the interface is incorrect the task won’t start.
      [06-26-14 9:28:43 am] | If all else fails run the following command and see what it says:
      [06-26-14 9:28:43 am] |
      [06-26-14 9:28:43 am] | Task (2) cpu has been cleaned.
      [06-26-14 9:28:53 am] | Task (3) cpu is new!
      [06-26-14 9:28:53 am] | Task (3) /images/cpu image file found.
      [06-26-14 9:28:53 am] | Task (3) 24 client(s) found.
      [06-26-14 9:28:53 am] | Task (3) cpu sending on base port: 54650
      [06-26-14 9:28:53 am] CMD:
      [06-26-14 9:28:53 am] | Task (3) cpu failed to start!
      [06-26-14 9:28:53 am] | * Don’t panic, check all your settings!
      [06-26-14 9:28:53 am] | even if the interface is incorrect the task won’t start.
      [06-26-14 9:28:53 am] | If all else fails run the following command and see what it says:
      [06-26-14 9:28:53 am] |
      [06-26-14 9:28:53 am] | Task (3) cpu has been cleaned.
      [06-26-14 9:29:03 am] | Task (4) cpu is new!
      [06-26-14 9:29:03 am] | Task (4) /images/cpu image file found.
      [06-26-14 9:29:03 am] | Task (4) 22 client(s) found.
      [06-26-14 9:29:03 am] | Task (4) cpu sending on base port: 50724
      [06-26-14 9:29:03 am] CMD:
      [06-26-14 9:29:03 am] | Task (4) cpu failed to start!
      [06-26-14 9:29:03 am] | * Don’t panic, check all your settings!
      [06-26-14 9:29:03 am] | even if the interface is incorrect the task won’t start.
      [06-26-14 9:29:03 am] | If all else fails run the following command and see what it says:
      [06-26-14 9:29:03 am] |
      [06-26-14 9:29:03 am] | Task (4) cpu has been cleaned.
      [06-26-14 9:29:13 am] | Task (5) cpu is new!
      [06-26-14 9:29:13 am] | Task (5) /images/cpu image file found.
      [06-26-14 9:29:13 am] | Task (5) 3 client(s) found.
      [06-26-14 9:29:13 am] | Task (5) cpu sending on base port: 64736
      [06-26-14 9:29:13 am] CMD:
      [06-26-14 9:29:13 am] | Task (5) cpu failed to start!
      [06-26-14 9:29:13 am] | * Don’t panic, check all your settings!
      [06-26-14 9:29:13 am] | even if the interface is incorrect the task won’t start.
      [06-26-14 9:29:13 am] | If all else fails run the following command and see what it says:
      [06-26-14 9:29:13 am] |
      [06-26-14 9:29:13 am] | Task (5) cpu has been cleaned.
      [/CODE]

      Sometimes it doesn’t quit nicely but keeps logging something like this:

      [CODE][06-26-14 9:54:34 am] | Task (13) cpu is no longer running.[/CODE]

      I had (I think) default value in storage node interface setting - eth0, but changing it (to eth1.212) didn’t help.

      Why there is no command in the log and why is it creating multiple tasks and not just 1 like it was in 0.32?

      Thanks in advance.

      posted in FOG Problems
      R
      rado
    • RE: Latest Development FOG

      Hi, not sure if this is good place, but I was just looking at the new FOG and found this - shouldn’t there be “?>” at the end of service/FOGImageReplicator/FOGImageReplicator (as the other files in the service dir have it)?

      posted in General
      R
      rado
    • RE: Support for multiple nics / subnets

      Ok, thanks.

      posted in Feature Request
      R
      rado
    • RE: Support for multiple nics / subnets

      Thanks much Tom. I will look at it when time permits (I suppose in few weeks).

      [quote=“Tom Elliott, post: 22323, member: 7271”]The multicast works based on three areas.
      The first part: (The actual classes)
      [/quote]

      What’s the second part, is there any? Thanks.

      posted in Feature Request
      R
      rado
    • 1 / 1