Seite 1 von 1

Skip Opsi installer Question

Verfasst: 29 Feb 2012, 08:24
von Shaggy
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!

Re: Skip Opsi installer Question

Verfasst: 29 Feb 2012, 09:21
von wolfbardo
Shaggy 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!
1. set the productproperty askbeforeinst=falseproduct
2. I would recommend using the tftp-Server on the opsi-server

regards
Bardo Wolf

Re: Skip Opsi installer Question

Verfasst: 29 Feb 2012, 09:31
von piet4220
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.

Code: Alles auswählen

opsi-package-manager -x packagename
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

Code: Alles auswählen

[ProductProperty]
type: bool
name: askbeforeinst
description: -  
default: False <-- change this from true to false
Then save and exit. now cd back one time and run the following command

Code: Alles auswählen

opsi-makeproductfile
This makes you a new .opsi package that you can install with

Code: Alles auswählen

opsi-package-manager -i packagename
I hope this anwsers your question, otherwise feel free to ask again.

Re: Skip Opsi installer Question

Verfasst: 29 Feb 2012, 13:20
von Shaggy
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!

Re: Skip Opsi installer Question

Verfasst: 29 Feb 2012, 15:44
von Shaggy
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!