Cool Solutions

How to create an integrated SLES11 SP1 + OES11 DVD image



By:

November 9, 2011 8:59 am

Reads: 8743

Comments:18

Score:0

Unless you’re using a network installation source when installing an OES server (which I can thoroughly recommend!) you will need to switch the SLES DVD for the OES one during the installation process.

As well as being inconvenient there are times when this can cause you some problems, most notably when you are installing an OES server in a virtual environment.

In this article I’ll go through the steps necessary to create a single DVD that contains both SLES11 SP1 and OES11 that you can use to install an OES11 server, physical or virtual, without having to change media.

Before we start I’ll firstly acknowledge that Glen Davis, the Product Manager for Open Enterprise Server, has previously created a Cool Tool[1] to handle creating a DVD image containing both SLES10 SPn and OES2 SPn. Unfortunately that can’t be used to create an equivalent DVD image for OES11 because of some changes in SLES11 although it is my intention, having spoken with Glen during BrainShare and gained his permission, to release an updated version of that tool based on this article.

To perform the following steps you will need a copy of the DVD1 image for SLES11 SP1 x86_64[2] (since OES11 is 64-bit only) and OES11[3].

Linux


# cd /tmp
# mkdir sles11sp1
# mkdir oes11
# mount -o loop /path/to/SLES-11-SP1-DVD-x86_64-GM-DVD1.iso sles11sp1/
# mount -o loop /path/to/OES11-addon-x86_64-CD1.iso oes11/
# mkdir sles11sp1_oes11
# cp -Rv sles11sp1/* sles11sp1_oes11/
# cp -Rv oes11/ sles11sp1_oes11/
# cd sles11sp1_oes11/
# vi add_on_products.xml

Copy and paste the following content to create the add_on_products.xml file

<?xml version="1.0"?>
<add_on_products xmlns="https://www.suse.com/1.0/yast2ns"
xmlns:config="https://www.suse.com/1.0/configns">
<product_items config:type="list">
<product_item>
<name>OES11</name>
<url>cd:///oes11</url>
<path>/</path>
<ask_user config:type="boolean">false</ask_user>
<selected config:type="boolean">true</selected>
</product_item>
<!-- Another product item -->
<product_item />
</product_items>
</add_on_products>

# mkisofs -R -o ../SLES11-SP1_with_OES11-x86_64-DVD.iso -b boot/x86_64/loader/isolinux.bin -c boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table .
# cd ..
# umount sles11sp1/
# umount oes11/
# rmdir sles11sp1/
# rmdir oes11/
# rm -rf sles11sp1_oes11/

You should now have a SLES11-SP1_with_OES11-x86_64-DVD.iso file in /tmp which you can either use to create a physical DVD or point your virtualization software at when installing a virtual machine.

Mac

It’s also possible to do this with Mac OS X although you’ll need to install MacPorts[4] (which in turn needs Xcode installed) to provide the missing mkisofs command. Once MacPorts is installed use ‘port install cdrtools’ to add the cdrtools Port that includes mkisofs.

# cd /tmp
# mkdir sles11sp1
# mkdir oes11
# hdiutil attach -mountpoint sles11sp1/ /path/to/SLES-11-SP1-DVD-x86_64-GM-DVD1.iso
# hdiutil attach -mountpoint oes11/ /path/to/OES11-addon-x86_64-CD1.iso
# mkdir sles11sp1_oes11
# cp -Rv sles11sp1/* sles11sp1_oes11/

Note no trailing slash on the following oes11beta folder name

# cp -Rv oes11 sles11sp1_oes11/
# cd sles11sp1_oes11/
# vi add_on_products.xml

As with the Linux solution above, copy and paste the following content to create the add_on_products.xml file

<?xml version="1.0"?>
<add_on_products xmlns="https://www.suse.com/1.0/yast2ns"
xmlns:config="https://www.suse.com/1.0/configns">
<product_items config:type="list">
<product_item>
<name>OES11</name>
<url>cd:///oes11</url>
<path>/</path>
<ask_user config:type="boolean">false</ask_user>
<selected config:type="boolean">true</selected>
</product_item>
<!-- Another product item -->
<product_item />
</product_items>
</add_on_products>

The following step is where MacPorts steps in to provide the mkisofs command because you can’t use hdiutil makehybrid.

# mkisofs -R -o ../SLES11-SP1_with_OES11-x86_64-DVD.iso -b boot/x86_64/loader/isolinux.bin -c boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table .
# cd ..
# hdiutil detach sles11sp1/
# hdiutil detach oes11/
# rmdir sles11sp1/
# rmdir oes11/
# rm -rf sles11sp1_oes11/

Again you should end up with SLES11-SP1_with_OES11-x86_64-DVD.iso in /tmp that you can use to create physical media or install a virtual machine.

Windows

At this point some of you may be asking what about Windows? Whilst I also use a Windows desktop I haven’t worked through a process because I have both Macs and Linux machines to hand. If you’re looking for a free solution then I believe it’s possible to achieve the above using Cygwin otherwise there are many commercial CD imaging tools that you could use.

[1] http://www.novell.com/communities/node/2613/create%20integrated%20oes%202sles%2010%20sp1%20dvd%20image
[2] http://download.novell.com/Download?buildid=x4q3cbksW7Q~ (DVD1 only, also available with OES11 at the following link)
[3] http://download.novell.com/Download?buildid=hPn9_LMecxQ~
[4] http://www.macports.org/

Update history:
2011-12-15 Updated to reflect release of OES11

VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)

Tags: , ,
Categories: Open Enterprise Server, Technical

Disclaimer: This content is not supported by Novell. It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test it thoroughly before using it in a production environment.

18 Comments

  1. By:hangarbait

    Well done Simon. I’ll be using is straight away.

    VN:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
  2. By:eustice

    cd:/content invalid signature

    How do I solve this problem?

    VN:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    • By:smflood

      At which point do you see/get this?
      How are you creating the ISO?

      I’ve just created a combined SLES11 SP1 + OES11 DVD ISO from openSUSE 12.1 Linux using the first set of (Linux) steps and have then used that ISO to install a virtual machine under VMware Player 4.0.1 with no problems.

      VN:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
      • By:queenw

        Thanks for publishing this info!

        I’m also seeing the “invalid signature” error and I’m not sure how you’ve gotten around it using the procedure you described. On both the SLES11sp1 and OES11 media there is a “content” file which contains product information and what appears to be checksums for the various packages contained on the media. So when the media are combined the “content” file from OES11 overwrites the original SLES11sp1 file. The “invalid signature” error occurs at the time the “content” file is being read as the SLES11sp1 installation begins. I’ve tried combining the two “content” files but get the same error so I suspect the format of the file isn’t correct after simply combining them. Any ideas on how this can be overcome?

        VN:F [1.9.22_1171]
        Rating: 0.0/5 (0 votes cast)
      • By:smflood

        Sorry for late reply.

        I think the clue here is when you say “So when the media are combined the “content” file from OES11 overwrites the original SLES11sp1 file”. If you followed my steps exactly then the contents of the OES11 CD are copied to a sub-directory and no SLES11 SP1 files are overwritten with OES11 ones.

        Note that the following two steps are subtly different – the first copies all files and folders from the mounted SLES11 SP1 ISO to sles11sp1_oes11 folder whereas the second copies the directory where the OES11 ISO is mounted into the sles11sp1_oes11 folder (so becomes a sub-directory)


        # cp -Rv sles11sp1/* sles11sp1_oes11/
        # cp -Rv oes11/ sles11sp1_oes11/

        VN:F [1.9.22_1171]
        Rating: 0.0/5 (0 votes cast)
      • By:max_dale

        Hi

        I have exactly the same problem. I created the ISO image exactly as described and that all worked perfectly. Then I copied it to a Windows m/c which has a DVD writer and made the ISO exactly as I normally do (Burn4Free)

        I am trying to install onto a qemu-kvm virtual machine running on OpenSuSE 11.4.

        Get this error as soon as the installation starts.

        Exactly what was the solution?

        Thanks.

        Max

        VN:F [1.9.22_1171]
        Rating: 0.0/5 (0 votes cast)
      • By:max_dale

        I have a slight difference in the DVD from that which has been listed. My DVD contains a folder called oes11 and not OES11-addon-x86_

        Thanks.

        VN:F [1.9.22_1171]
        Rating: 0.0/5 (0 votes cast)
      • By:smflood

        Not sure where you’ve picked up a folder name of OES11-addon-x86_ as the instructions I’ve posted use a folder called oes11 for the mounted OES11 ISO.

        VN:F [1.9.22_1171]
        Rating: 0.0/5 (0 votes cast)
  3. By:dshrum

    I am trying to create the DVD iso and keep getting the error below. For the file name I have tried using your exact example of ( ../SLES11-SP1_with_OES11x86_64DVD.iso ) , (/tmp/SLES11-SP1_with_OES11x86_64DVD.iso ) and the one below shorting the name. The one below is a copy and paste from my terminal.

    oes-sti:/tmp/sles11sp1_oes11 # mkisofs -R -o /tmp/OES11x86_64_integrated.iso -b boot/x86_64/loader/isolinux.bin -c boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table
    INFO: UTF-8 character encoding detected by locale settings.
    Assuming UTF-8 encoded filenames on source filesystem,
    use -input-charset to override.
    mkisofs: Missing pathspec.
    Usage: mkisofs [options] file…

    Use mkisofs -help
    to get a list of valid options.
    oes-sti:/tmp/sles11sp1_oes11 #

    I am on an OES2 SP2 system and have created the OES2 integrated DVDs in the past with no problem. Any ideas?

    VN:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    • By:smflood

      It looks, from the command and output you’ve posted, that you are missing a space then full stop character from the end of the command.

      VN:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
      • By:dshrum

        You are right. I am still new to linux and have learned a lot and thought I was coping your cammand exactly. Also I was on a very high res screen and the period was just a speck. After I posted the comment, I scaled the sreen up and saw the period and tried it and it worked.

        Thanks for the response and I can say it worked perfectly and I have a running server on vmware.

        Don

        VN:F [1.9.22_1171]
        Rating: 0.0/5 (0 votes cast)
  4. By:lbartlett

    Would be helpful to know what the dir structure in the destination /tmp/sles11sp4_oes11 looks like because I’m creating iso by mounting dvd in a vm machine and from what I can tell the cp for oes11 will overwrite the files in root of /tmp/sles11_oes11/

    Don’t want to have to do a three copy trial and error… nice recipe too few details.

    VN:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    • By:smflood

      If you look carefully you’ll see that the two cp commands to copy each of mounted ISOs (for SLES11 SP1 and OES11) are subtly different – the one to copy the mounted OES11 ISO will copy the mounted directory (and it’s contents) into the folder.

      VN:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
  5. By:lbartlett

    I assume this is what is should look like:

    drwxr-xr-x 7 root root 4096 2012-01-26 17:09 ./
    drwxrwxrwt 12 root root 4096 2012-01-26 17:00 ../
    -rw-r–r– 1 root root 510 2012-01-26 17:09 add_on_products.xml
    -r–r–r– 1 root root 5054688 2012-01-26 16:49 ARCHIVES.gz
    dr-xr-xr-x 3 root root 4096 2012-01-26 16:49 boot/
    -r–r–r– 1 root root 5795466 2012-01-26 16:49 ChangeLog
    -r–r–r– 1 root root 14099 2012-01-26 16:49 content
    -r–r–r– 1 root root 307 2012-01-26 16:49 content.asc
    -r–r–r– 1 root root 613 2012-01-26 16:49 content.key
    -r–r–r– 1 root root 55168 2012-01-26 16:49 control.xml
    -r–r–r– 1 root root 17992 2012-01-26 16:49 COPYING
    -r–r–r– 1 root root 25733 2012-01-26 16:49 COPYING.de
    -r–r–r– 1 root root 1455 2012-01-26 16:49 COPYRIGHT
    -r–r–r– 1 root root 1620 2012-01-26 16:49 COPYRIGHT.de
    -r–r–r– 1 root root 456 2012-01-26 16:49 directory.yast
    dr-xr-xr-x 17 root root 4096 2012-01-26 16:49 docu/
    -r–r–r– 1 root root 877 2012-01-26 16:49 gpg-pubkey-0dfb3188-41ed929b.asc
    -r–r–r– 1 root root 1032 2012-01-26 16:49 gpg-pubkey-1d061a62-4bd70bfa.asc
    -r–r–r– 1 root root 613 2012-01-26 16:49 gpg-pubkey-307e3d54-4be01a65.asc
    -r–r–r– 1 root root 1694 2012-01-26 16:49 gpg-pubkey-3d25d3d9-36e12d04.asc
    -r–r–r– 1 root root 938 2012-01-26 16:49 gpg-pubkey-7e2e3b05-4be037ca.asc
    -r–r–r– 1 root root 1698 2012-01-26 16:49 gpg-pubkey-9c800aca-4be01999.asc
    -r–r–r– 1 root root 1803 2012-01-26 16:49 gpg-pubkey-a1912208-446a0899.asc
    -r–r–r– 1 root root 1348 2012-01-26 16:49 gpg-pubkey-b37b98a9-4be01a1a.asc
    -r–r–r– 1 root root 30391 2012-01-26 16:49 INDEX.gz
    -r–r–r– 1 root root 110070 2012-01-26 16:49 license.tar.gz
    -r–r–r– 1 root root 48162 2012-01-26 16:49 ls-lR.gz
    dr-xr-xr-x 2 root root 4096 2012-01-26 16:49 media.1/
    -r–r–r– 1 root root 111657 2012-01-26 16:49 NEWS
    dr-xr-xr-x 6 root root 4096 2012-01-26 17:08 OES11-addon-x86_/
    -r–r–r– 1 root root 6774 2012-01-26 16:49 pubring.gpg
    -r–r–r– 1 root root 3246 2012-01-26 16:49 README
    dr-xr-xr-x 6 root root 4096 2012-01-26 16:51 suse/

    VN:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    • By:smflood

      Unless you have specifically altered my instructions to use OES11-addon-x86_ as the name of the oes11 folder then you’ve done something wrong as OES11-addon-x86_ should not be there (seemingly in place of oes11).

      I’ll post a working directory listing later today.

      VN:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
  6. By:dschaldenovell

    mkisofs -R -o ../SLES11-SP1_with_OES11-x86_64-DVD.iso -b boot/x86_64/loader/isolinux.bin -c boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table

    I tried to copy and paste in the information, also tried to enter it in by hand, but I receive a similar error.

    This is one of the output messages that I’m receiving.

    I: -input-charset not specified, using utf-8 (detected in locale settings)
    genisoimage: Missing pathspec.
    Usage: genisoimage [options] -o file directory …

    Use genisoimage -help
    to get a list of valid options.

    Report problems to debburn-devel@lists.alioth.debian.org.

    VN:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    • By:smflood

      Sorry for late reply.

      As per my reply in January to dshrum it looks like you’re also missing a space followed full-stop (.) character at the end of your mkisofs command.

      VN:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
  7. By:yymlam

    google for “genisoimage examples”
    genisoimage -o cd.iso -R cd_dir/

    VN:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)

Comment

RSS