Bypass host registration and password
-
Hi all,
I’m looking for a fully automatic solution to deploy one image on several machines.
At this moment, the only thing that prevent it from my goal is the need to registrar every host, and enter the FOG credentials to deploy an image.
There is any way to bypass those tow?
I’m on the 1.5.4 version and the server is running on centos 7 machine.Thanks
-
Are you functioning as a PC repair shop where once you image a machine yo will never see it again or need to manage it with fog once its imaged?
If so, on the FOG iPXE menu there is an option to Deploy Image. From that menu you can select any image in the catalog and push that out to the target computer registration in FOG is not required. You will have to enter a user ID and Password in that menu, but there is a way to bypass that password requirement too.
- Edit the
fog.deployimage
iPXE menu entry in the fog configurations menu. - In the
Parameter
fields remove thelogin
action. - In the
Parameters
field replace
param username ${username} param password ${password}
with
param username <username> param password <password>
Where
<username>
and<password>
are the correct for your installation of fog.
4. Save the Changes
5. Done - Edit the
-
Thank you for your answer George, and for your blessing work here in the forum.
Somehow it didn’t solved this issue.After the change, I manged to pass the user login screen to the images select screen, but right after I choose the image to deploy I’m getting a screen with the error “invalid login! … restart in 10sec”…
Any other suggestions?
Btw, I don’t need the option to mange the hosts after the deployment.
Thanks
-
@gozalitos Hmmm that’s strange it should work.
Here is another example: https://forums.fogproject.org/topic/4433/is-it-possible-to-remove-the-fog-quick-image-password/30
This one is using the
set
command to assign the variable before theparams
command. Maybe I missed that one. -
@george1421 This one solved it.
Thanks! -
Hello i tried the approch
original parameter file
login
params
param mac0 ${net0/mac}
param arch ${arch}
param username ${username}
param password ${password}
param qihost 1
isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
isset ${net2/mac} && param mac2 ${net2/mac} || goto bootmenow i changed this to
params
param mac0 ${net0/mac}
param arch ${arch}
param username myusername
param password mypassword
param qihost 1
isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
isset ${net2/mac} && param mac2 ${net2/mac} || goto bootmewhen i select deploy image now i see all the avalieble images
but if i select on of those i got the a invalid login -
@daniel4567 The user and password should be set to that of a user who can actually login to the fog ui.
You should follow the information here as well:
https://forums.fogproject.org/topic/4433/is-it-possible-to-remove-the-fog-quick-image-password/22 -
thanks @Tom-Elliott
worked for me in the fog.deployimage option
like this
params
param mac0 ${net0/mac}
param arch ${arch}
set username myuser
set password mypassword
param username ${username}
param password ${password}
param qihost 1
isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
isset ${net2/mac} && param mac2 ${net2/mac} || goto bootmeThe Problem with my previous approach was i tried do set this in one line
likeparams
param mac0 ${net0/mac}
param arch ${arch}
param set username myuser
param set password mypassword
param qihost 1
isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
isset ${net2/mac} && param mac2 ${net2/mac} || goto bootmemake obviously no sense when i look at it now