PDA

View Full Version : Auto installation of SLES11-SP2



severus21
27-Sep-2012, 07:50
Hi,

I face a issue while automating SLES11-SP2 installation on a VM (Xen).

I am doing automated installation of Sles-sp2 on a Virtual machine. I do installation by booting from cdrom.
The ISO file i use is a scaled down version, where i don't have repositories.

I have my repositories in the network and i point to it using "install=http://<ip>/repo" inside info file.
I kept both my info and autoinst.xml file inside the top directory of the iso.Then added "info=cd:/info" in the kernel line of iso and also AutoYaST: file:///autoinst.xml in the info file.
It reads info file properly, but Yast fails to read autoinst.xml file kept in the iso.

I also tried specifying AutoYaST: default option, again it failed. In both the cases it throws same error as shown below

An error occured while fetching the profile:
Reading file on /var/adm/mount//autoinst.xml failed.
Reading file on /autoinst.xml failed.
Reading a file on CD failed. Path: /tmp/YaST2-03347-nLdD5U/tmp_mount//autoinst.xml

Please help me in resolving this issue.

Thanks

ramesh_hewitt
29-Sep-2012, 19:35
In the installation screen, under Boot Options, have you given path of the autoinst.xml in the following format:

autoyast=http://ipaddress/suse11/autoinst.xml

While I did autoyast installation, I created auto installation server first and created a sles11 sp1 repository with that on a remote server and at the same path I kept my autoinst.xml file. Then, on the installation screen I pressed F3 button and specified http method and provided complete path of the repository along with ip address of the remote auto installation server and under Boot options I specified my autoinst.xml file path.

Please try with above option and I am sure it will work for you also.

Thanks....RD

severus21
01-Oct-2012, 07:19
But I wanted to keep my autoyast file inside iso image itself, not on a network.
When i changed my autoyast option as "AutoYaST: device://sr0/autoinst.xml" , it fetched autoyast file and performed installation properly.
If this could work properly then AutoYaST: file:///autoinst.xml" should also work since both points to same file.

smflood
01-Oct-2012, 10:47
On 01/10/2012 07:24, severus21 wrote:

> But I wanted to keep my autoyast file inside iso image itself, not on a
> network.
> When i changed my autoyast option as "AutoYaST:
> device://sr0/autoinst.xml" , it fetched autoyast file and performed
> installation properly.
> If this could work properly then AutoYaST: file:///autoinst.xml" should
> also work since both points to same file.

According to
https://www.suse.com/documentation/sles11/book_sle_deployment/data/sec_deployment_autoinst_simple.html#sec_deployment _autoinst_simple_dist
and http://www.suse.de/~ug/autoyast_doc/Invoking.html#invoking_autoinst
file:///autoinst.xml should work if autoinst.xml is in the root
directory of the boot CD but I wonder if using install= to specify the
installation directory is confusing things. Is autoinst.xml found if you
(temporarily as a test) copy autoinst.xml to the install directory path?

The second link also suggest that using autoyast=default would cause the
install process to check the root directory of the floppy disk, the root
directory of the install medium, and the root directory of the initial
RAM disk used to boot the system so perhaps that would find it from the
CD ISO?

HTH.
--
Simon
Novell/SUSE/NetIQ Knowledge Partner

------------------------------------------------------------------------
Do you work with Novell technologies at a university, college or school?
If so, your campus could benefit from joining the Novell Technology
Transfer Partner (TTP) program. See novell.com/ttp for more details.
------------------------------------------------------------------------

severus21
01-Oct-2012, 12:20
On 01/10/2012 07:24, severus21 wrote:

> But I wanted to keep my autoyast file inside iso image itself, not on a
> network.
> When i changed my autoyast option as "AutoYaST:
> device://sr0/autoinst.xml" , it fetched autoyast file and performed
> installation properly.
> If this could work properly then AutoYaST: file:///autoinst.xml" should
> also work since both points to same file.

According to
https://www.suse.com/documentation/sles11/book_sle_deployment/data/sec_deployment_autoinst_simple.html#sec_deployment _autoinst_simple_dist
and http://www.suse.de/~ug/autoyast_doc/Invoking.html#invoking_autoinst
file:///autoinst.xml should work if autoinst.xml is in the root
directory of the boot CD but I wonder if using install= to specify the
installation directory is confusing things. Is autoinst.xml found if you
(temporarily as a test) copy autoinst.xml to the install directory path?

I tried by keeping autoinst.xml file in the installation directory. Again failed. Only by mentioning Autoyast=http://ip/repo/autoinst.xml it picked the file properly.


The second link also suggest that using autoyast=default would cause the
install process to check the root directory of the floppy disk, the root
directory of the install medium, and the root directory of the initial
RAM disk used to boot the system so perhaps that would find it from the
CD ISO?

As I said in my first post, I tried specifying autoyast=default option also. It failed to read autoinst.xml file from the installation medium.

ISO image usually gets mounted on /dev/sr0. When i specified sr0 as autoyast=device://sr0/autoinst.xml it took autoinst.xml. I also checked /dev/sr0 by mounting it on temp directory. I can autoinst.xml file and info there.
Then why by specifying file:///autoinst.xml option alone it fails ? What could be the reason???