Skip Opsi installer Question
Skip Opsi installer Question
Hello there,
Im trying around with OPSI, and its working like a charm.
I am trying to install Win7-x64 completely autoamtic via PXE. That means that no interaction should be required.
This works good so far, Ive got some scripts which create a link within PXE which uses the mac address, this link points to a file which installs WIn7:
KERNEL opsi/install
APPEND initrd=opsi/miniroot.bz2 service=172.22.xxx video=vesa:ywrap,mtrr vga=791 quiet splash hn=opsi2 pckey=xxx product=win7-x64 ask_conf=False
But every time, the OPSI installer asks me, if he should install Win7-x64 and I have to confirm that, after that everything works great.
SO my qestion:
How to I disable/skip/autoanswer this question, so really no interaction is required?
The second question would be:
How can I check the state of a machine on command line? If i see the installations is running so far I would use a script which will delete the mentioned PXE link and point it to localboot. (I am using a dedicated DHCP and TFTP Server and not the one on the OPSIserver machine).
Thanks a lot and best regards!
Im trying around with OPSI, and its working like a charm.
I am trying to install Win7-x64 completely autoamtic via PXE. That means that no interaction should be required.
This works good so far, Ive got some scripts which create a link within PXE which uses the mac address, this link points to a file which installs WIn7:
KERNEL opsi/install
APPEND initrd=opsi/miniroot.bz2 service=172.22.xxx video=vesa:ywrap,mtrr vga=791 quiet splash hn=opsi2 pckey=xxx product=win7-x64 ask_conf=False
But every time, the OPSI installer asks me, if he should install Win7-x64 and I have to confirm that, after that everything works great.
SO my qestion:
How to I disable/skip/autoanswer this question, so really no interaction is required?
The second question would be:
How can I check the state of a machine on command line? If i see the installations is running so far I would use a script which will delete the mentioned PXE link and point it to localboot. (I am using a dedicated DHCP and TFTP Server and not the one on the OPSIserver machine).
Thanks a lot and best regards!
Re: Skip Opsi installer Question
1. set the productproperty askbeforeinst=falseproductShaggy hat geschrieben: SO my qestion:
How to I disable/skip/autoanswer this question, so really no interaction is required?
The second question would be:
How can I check the state of a machine on command line? If i see the installations is running so far I would use a script which will delete the mentioned PXE link and point it to localboot. (I am using a dedicated DHCP and TFTP Server and not the one on the OPSIserver machine).
Thanks a lot and best regards!
2. I would recommend using the tftp-Server on the opsi-server
regards
Bardo Wolf
Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.
Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.
uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de
Re: Skip Opsi installer Question
I can answer your first question.
You have two options for disabling the installation confirmation question.
1. You can set the option “askbeforeinst” to false in the Opsi confed webgui, but then you have to do it every time you install a client.
2. The second option is to edit the install template and set the “askeforeinst” option to false then repack the template to a opsi package and install it.
To edit the template unpack the .opsi package with this command.
Note. unpack the template in the /home/opsiproducts folder.
Then cd into the folder containing the extracted content and then into the OPSI folder her edit the control file using your favorite editor and change the following section
Then save and exit. now cd back one time and run the following command
This makes you a new .opsi package that you can install with
I hope this anwsers your question, otherwise feel free to ask again.
You have two options for disabling the installation confirmation question.
1. You can set the option “askbeforeinst” to false in the Opsi confed webgui, but then you have to do it every time you install a client.
2. The second option is to edit the install template and set the “askeforeinst” option to false then repack the template to a opsi package and install it.
To edit the template unpack the .opsi package with this command.
Note. unpack the template in the /home/opsiproducts folder.
Code: Alles auswählen
opsi-package-manager -x packagename
Code: Alles auswählen
[ProductProperty]
type: bool
name: askbeforeinst
description: -
default: False <-- change this from true to false
Code: Alles auswählen
opsi-makeproductfile
Code: Alles auswählen
opsi-package-manager -i packagename
Re: Skip Opsi installer Question
Thanks a lot, the repackaging method solved my problem!
Unfortunatelly I can not use the tftp or dhcp on the opsi server, because we have got an infrastructure which forbids nother tftp/dhcp server.
Any other Ideas concerning point nr 2?
Bests!
Unfortunatelly I can not use the tftp or dhcp on the opsi server, because we have got an infrastructure which forbids nother tftp/dhcp server.
Any other Ideas concerning point nr 2?
Bests!
Re: Skip Opsi installer Question
Another thing!
Whe I add a client within configed its okay, but when i add the client on commandline:
opsi-admin -d method host_createOpsiClient opsi4.xxx.xxx.xxx
There is an entry within /etc/opsi/pckeys but I can not see the client within configed and when I try to install the mashine, it say the client is not known.
Any idea what I am doing wrong?
EDIT:
Okay its because the clientconfig.depot.id is not set ? But i have a default value?! Any idea?
EDIT2:
I reinstalled the original win7-x64 package. The he asked me again if i want to install (As expected). Another method to disable it is within the deposerver.ini file, there I just set asbeforeinst to false. This was enough!
Whe I add a client within configed its okay, but when i add the client on commandline:
opsi-admin -d method host_createOpsiClient opsi4.xxx.xxx.xxx
There is an entry within /etc/opsi/pckeys but I can not see the client within configed and when I try to install the mashine, it say the client is not known.
Any idea what I am doing wrong?
EDIT:
Okay its because the clientconfig.depot.id is not set ? But i have a default value?! Any idea?
EDIT2:
I reinstalled the original win7-x64 package. The he asked me again if i want to install (As expected). Another method to disable it is within the deposerver.ini file, there I just set asbeforeinst to false. This was enough!