• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. lebrun78
    3. Topics
    L
    • Profile
    • Following 1
    • Followers 1
    • Topics 53
    • Posts 314
    • Best 11
    • Controversial 0
    • Groups 0

    Topics created by lebrun78

    • L

      Solved Kernel panic -not syncing: VFS: Unable to mount root fs on unknown-block(1,0)

      FOG Problems
      • • • lebrun78
      6
      0
      Votes
      6
      Posts
      3.3k
      Views

      L

      @george1421
      I had Pxelinux.0 in my dhcp, the new code replace it now.

    • L

      Unsolved snappin doesn't work

      FOG Problems
      • • • lebrun78
      39
      0
      Votes
      39
      Posts
      9.4k
      Views

      JJ FullmerJ

      Also, for debugging.
      If you put the script into a function and add [cmdletBinding()] you can run it with -debug
      which means you can add lines like Write-Debug “variables is $variable”; that will only show up when -debug is specified and will pause for you. You can also add Write-Verbose “messages”; that only show
      i.e. to do it while still running it as a ps1 script with arguments you’d have to be a little tricky. If you mad the script a .psm1 and added a export-modulemember -function funcName; line at the end and then ran this in a ps console ipmo -Force -Global \path\to\psm1; you could then run your script as a function that you can import into any script or console and add the -Debug and or -Debug lines directly when running the function

      param ( [String]$programme, [switch]$debug, [switch]$verbose ) function installProgramme { [CmdletBinding()] param ( [String] $programme ) $user = "install" $pwd = "1234500000000000000000000000000000000000000000000000000000AAAA=" $serveur = "\\fileserver.istic.univ-rennes1.fr\partage" $cert = $(Get-ChildItem cert:\CurrentUser\TrustedPublisher | where {$_.Subject -eq "CN=ISTIC/ESIR Signature"}) $tab_key = @() foreach ($i in $cert.SerialNumber.ToCharArray()){$tab_key += [convert]::ToInt16($i,16)} $password = ConvertTo-SecureString -key $tab_key -string $pwd $credential = New-Object -TypeName system.management.Automation.PSCredential -ArgumentList $user, $password Write-Verbose "Attempting to mount $serveur..."; #net use p: $dossier_partage /p:n /u:$($credential.GetNetworkCredential().username) $($credential.GetNetworkCredential().password) if (!(Test-Path -Path p:)){ $net = new-object -ComObject WScript.Network $net.MapNetworkDrive("p:", $serveur, $false, $credential.GetNetworkCredential().UserName,$credential.GetNetworkCredential().password) } Write-Debug "Check if P is mounted..."; #lorsque l'on lance un script powershell, si il y avait des espaces dans le nom, cela ne passait pas #lorsque l'on faisait un start-process et ce nom en argument. Donc on utilise plutot le nom court $prog_court = (New-Object -ComObject Scripting.FileSystemObject).GetFile($programme).ShortPath write-host "$(hostname):Dossier de l'installer $($dossier_installer)" write-host "" write-host "$(hostname):lancement de $($programme)" write-host "$(hostname):lancement de $($prog_court)" #start-process -FilePath $programme -wait -NoNewWindow $dossier_installer = $((get-item -path $programme).DirectoryName) if (!(Test-Path -Path "$dossier_installer\logs_fog_install")){New-Item -ItemType directory -Path "$dossier_installer\logs_fog_install"} $extension = (get-item -path $programme).Extension if ($extension -eq ".bat" -or $extension -eq ".cmd") { #write-host "$env:COMPUTERNAME:C'est un script bat" start-process -FilePath $prog_court -wait -NoNewWindow -RedirectStandardOutput ${dossier_installer}\logs_fog_install\${env:COMPUTERNAME}_log.txt -RedirectStandardError ${dossier_installer}\logs_fog_install\${env:COMPUTERNAME}_error.txt } if ($extension -eq ".ps1") { #write-host "$env:COMPUTERNAME:C'est un script powershell" $policy = Get-ExecutionPolicy Set-ExecutionPolicy AllSigned start-process -FilePath PowerShell -Arg $prog_court -wait -NoNewWindow -RedirectStandardOutput ${dossier_installer}\logs_fog_install\${env:COMPUTERNAME}_log.txt -RedirectStandardError ${dossier_installer}\logs_fog_install\${env:COMPUTERNAME}_error.txt Set-ExecutionPolicy $policy } #net use p: /delete $net.RemoveNetworkDrive("p:") } #create string to run function $runFunc = "installProgramme $programme"; if($debug){ $runFunc += " -Debug"; } if($verbose) { $runFunc += " -Verbose"; } $runFunc += ";"; Invoke-Expression $runFunc;
    • L

      Solved store a login account in a ipxe menu

      FOG Problems
      • • • lebrun78
      8
      0
      Votes
      8
      Posts
      2.8k
      Views

      L

      thanks, it works

    • L

      Unsolved Host Product changer

      FOG Problems
      • • • lebrun78
      5
      0
      Votes
      5
      Posts
      1.2k
      Views

      L

      This morning, I checked a new time, reboot the machine, and I got the same error in the log.

      Remark, when I change the status of the “Reboot host on hostname changes and AD changes even if users are logged in?” check box, the Host Product Key is blanked.

    • L

      Unsolved iPXE New Menu Entry with authentication

      FOG Problems
      • • • lebrun78
      4
      0
      Votes
      4
      Posts
      2.0k
      Views

      L

      Ok thank you

    • L

      Solved Unable to register host: Invalid MAC adddress (2) (/bin/fog/man.reg)

      FOG Problems
      • • • lebrun78
      21
      0
      Votes
      21
      Posts
      4.9k
      Views

      Tom ElliottT

      @jeremy-kou I still think installing the latest will help fix this for you.

      Per our chat, it seems you are not running the FOG Version 1.2.0 as the error messages you’re seeing were not present in the 1.2.0 release to begin with.

      I don’t know if it will install nicely on Redhat 5.3 or not because I’ve been working with CentOS 6 ever since I started working with FOG. That said, I already am aware you have PHP 5.6 which leads me to think your server is pretty much capable.

    • L

      Choising a storage management

      General
      • • • lebrun78
      7
      0
      Votes
      7
      Posts
      1.6k
      Views

      Wayne WorkmanW

      @lebrun78 said in Choising a storage management:

      if i rename /images to /imagesold and create a new /images where is mount //fog032/images and then copy the contents of /imagesold to the new /images, it should works, no ?

      It will work. I’ve done a lot of stuff like this before. Dedicating an entire physical partition on a physical disk is the simple way to go about it but it’s not exactly flexible by design. LVM solves those problems. If you’re using logical volume groups and logical volumes, you don’t have to do all of that mess you were talking about (transferring, renaming), you just add space to the volume group, then the logical volume.

    • L

      Solved postdownloadscripts not found during installation

      Bug Reports
      • • • lebrun78
      5
      0
      Votes
      5
      Posts
      1.5k
      Views

      Tom ElliottT

      @sudburr Nope.

      It’s just an error and will be fixed very shortly.

    • L

      Unsolved Boot menu configuration document

      FOG Problems
      • • • lebrun78
      21
      0
      Votes
      21
      Posts
      5.4k
      Views

      L

      @Tom-Elliott said in Boot menu configuration document:

      @lebrun78 I don’t understand your question.

      fog.quickimage is a login option. You can change it right in the GUI to whatever you’re wanting though.

      I didn’t find it, where is it ?

    • L

      Solved Error upgrading from 1.2 to 1.3 rc 25

      FOG Problems
      • • • lebrun78
      13
      0
      Votes
      13
      Posts
      2.4k
      Views

      S

      Ok, thanks for letting us know. Marking this as solved then.

    • L

      Deploy wim images with fog

      General
      • • • lebrun78
      11
      0
      Votes
      11
      Posts
      6.2k
      Views

      A

      @Sebastian-Roth
      1.
      This is a very new idea. Did not have chance to test wimlib yet. Next week will do so for sure.
      I have Samba NAS , will try with centos.
      2.
      Another interesting wim usage scenario:
      WIM keeps in the A-image base Windows + B-snaphot with drivers + C-snaphot with sql server.
      And you decide what you want to restore after the Base. So for a host1 u have A+B. For host2 A+B+C.
      Instead of 3 images you must keep only one image +2 deltas.

    • L

      Solved boot PXE issue check if .mntcheck exist

      FOG Problems
      • • • lebrun78
      4
      0
      Votes
      4
      Posts
      4.9k
      Views

      Tom ElliottT

      @lebrun78 No clue. But glad it works.

    • L

      Unsolved Add several option in boot menu with fog 1.2.0

      FOG Problems
      • • • lebrun78
      7
      0
      Votes
      7
      Posts
      3.2k
      Views

      Tom ElliottT

      @lebrun78 There are no files to change.

      The advanced menu is purely a GUI item. From the GUI goto FOG Configuration Page->PXE Settings->Advanced Menu

    • 1
    • 2
    • 3
    • 3 / 3