How to create an integrated SLES11 SP1 OES11 DVD image

0 Likes
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="http://www.suse.com/1.0/yast2ns"
xmlns:config="http://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="http://www.suse.com/1.0/yast2ns"
xmlns:config="http://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 integrated oes 2sles 10 sp1 dvd image
[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

Labels:

How To-Best Practice
Comment List
  • 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/
  • 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.

  • 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
  • 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.
  • 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?
  • 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.
  • cd:/content invalid signature

    How do I solve this problem?
Related
Recommended