A common use case in Studio is the creation of hard drive images for preloading systems. This is great for setting up, say a computer lab or a server farm, where you want all systems to have the same software and configuration. It is also a step that system hardware vendors (OEMs/IHVs) often include in their production process.
SUSE Studio makes the creation of these images easy, but it's a bit more tricky to get them on to your target system. One way is to use a boot disk, like a Live CD/DVD or Live USB stick, and then dd the image to the target hard drive. This can be largely automated with a smart boot image (such as this) that can, with a bit of scripting and setup, automatically load the image from a server via the network and write it to the target drive (eg. dd over netcat). Unfortunately this does not work in networkless environments and may not be worth the effort if applied to just a couple of systems.
Fret not, for we have added the new Preload ISO build format to facilitate this process. A preload ISO is simply a Live CD/DVD that contains the preload hard disk image. When booted, it overwrites the target disk (after user confirmation), verifies the checksum, and then boots directly into the freshly loaded system. A word of warning - this format is meant for preloading and hence will overwrite all data on the target drive. Do not use this on your system unless you want to perform a clean installation! It is currently available for all base systems except SLE10.
Here's how it looks like in Testdrive. Choose the "Install/Restore" option when booting up:
There is a confirmation prompt before it overwrites the target drive:
If you have more than one disk available, you can choose it from the list:
We think this will be a very useful format for system admins, ISVs/IHVs, and other users that require preloading. For those who have been asking for this in Studio - we hear you, and now it's here!




Very nice! Thanks for continuing to improve and your dedication to this project.
ReplyDeleteAnd what to do, if instead of the problem of missing network, I dont have bootable CD/DVD drive? And from USB the machine doesn't boot ? What kind of image should I write into a partition? And how ?
ReplyDelete@renszarv
ReplyDeleteIf the system you wish to build does not support USB Key booting nor USB FD/HDD emulation booting AND doesn't have a boot CD/DD drive and is without a Network ... How do you expect anyone to make a boot-able image without using the system's HD in another computer?
Sounds like a job for Magic (or at least find a compatible system that has hardware very close if not similar to your target system and place the HD in the net-workable/CD/DVD boot-able system .. a little HD gyrations and you should have a reasonable facsimile of a system which when you take the HD out should work in the target system. :P
Should work doesn't mean will work so YMMV ...
Cheers! :)
floppy?
DeleteThis is what I was looking for ... thanks
ReplyDeleteThis is a good feature. However it is creating a small partition for home directories /home/ and rest of the harddrive is consuemed by root directories. This is very difficult to work with assuming that we do not know what would be the disk size when appliance gets installed on. I would expect this appliance to create only one partision unless it is specified some place.
ReplyDeleteGreat work.
ReplyDeleteThank's a lot!
This is a great feature but it isn't available for SLE.
ReplyDeleteHowever those of us using Novell Open Enterprise Server would really, really like this feature for SLES10SP3.
Documentation on where the installation script ends up, so that we can tailor it in test drive (different partitioning, etc) would be a good addon to this - it's a great feature that we've eagerly been awaiting.
ReplyDeleteVery good!I am developing ellinux via suse studio and I will sharw a preload iso soon!
ReplyDeleteOne thins is worse. On a harddisk [ e.g. 150 GB ] you'll build one root partition with 140X GB, one swap and one /home partition which is ever to small for working so I've to remove it from with a little shelltool.
ReplyDeleteIs it possible to change this, I think it's enough to build / and swap???
I've serveral questions to you.
ReplyDeleteIs it possible to remove the /home partition. It's to small and nobody need such a smlaa prtition. Now I have to remove /home via a shellscript and that's not good.
How does your prebuild iso works? Is it possible to modify your startskript, which copies all thinks to the new hd?
I''ve some questions to you.
ReplyDeleteDoes preload iso let me load third party drivers before proceeding?
I have a LSI Megaraid SAS controller that must have driver loaded before my hard disks could be identified by various linux installer, so is it possible?
thanks for your answer.
The same problem. When installed on old machine with 40Gb HDD, got less than 0.5Gb /home partition. Something is wrong in automatic partition strategy.
ReplyDeleteIt will be great if partition strategy could be controlled somehow. For example, by definition of recommended percentage and absolute minimum/maximum root partition size.
It would be great if this was supported in SLE 10. Heck, even live iso support would be great in SLE 10. Having to use kiwi for anything OES/SLE 10 related is painful compared to Studio.
ReplyDeleteNever change a running model. Now the preload image works bad because I cann't use it for my user. ( Until now an installation was very easy, but now it is to complicated )
ReplyDeleteNever get an answer from my questions above????
How is it possible to load the preload iso image on to a usb stick. Tried with dd_rescue appliance.iso /dev/sdb. But it dosen't boot. I have also tried with grub2 and booted the iso from there but it says it cannot find the livecd a bit down in the boot process.
ReplyDelete@renszarv: You can use PXE boot, which is unfortunately only available in Studio Onsite at the moment. If you have more than one disk in the target system, you can also boot from one of them and then dd over netcat to write the image to the other. Then boot from that.
ReplyDelete@Paul Rock: It is available in SLE 11, but not SLE 10 at the moment.
ReplyDelete@J. Mischke: The change wasn't intentional -- it is now fixed. Apologies for the breakage and confusion.
ReplyDelete@Troels: Preload ISO is only targeted for CD/DVD. It will not work on USB sticks.
ReplyDeleteThis is a great feature. But several modern notebooks don't have CD/DVD ROM drives. Do you plan to add the ability to write and boot the Preload iso from a USB stick?
ReplyDeleteThanks
@greenMan: Not at the moment, though that's possible down the road. For now you could use dd over netcat.
ReplyDeleteI have made a config script for kiwi so I can make a preload image and write it to a usb stick. I don't think this is the place to analyze it further so if someone needs this information please contact me. In fact the only thing you have to do is to alter the type of the image at the config.xml downloaded from the suse studio and then build the image your own using kiwi. At least this is the way it worked for me.
ReplyDeleteVagelis,
ReplyDeleteI'm very interested in how you did that. Please elaborate :-)
Didn't work for me. I didn't work in the virtual machine.
ReplyDeleteI apologize for the delay but I just received the email alerts from this thread. The basic difference from the script downloaded from suse studio is the following:
ReplyDeletetype image="oem" filesystem="ext4" format="usb" boot="oemboot/suse-11.3" installstick="true"
I hope I helped.
Can preload ISO split disc to same partition? For example partiton / 15 Gb, swap 4 GB and /home max.
ReplyDeleteReally nice feature - thanks a lot.
ReplyDeleteWould be awesome if changes made during testdrive could be applied to the pre-load ISO image.. is that planned?
@Anonymous: You can work with testdrive on another image format and when you are done build the preload ISO.
ReplyDeleteHi
ReplyDeleteIf i use preload iso in susestudio it wont install on my notebook. After transfer of the image is says that the checksum is incorrect. Think it's because it cant partition the disk as intended. My image i 5GB install disk and the notbook has 120GB...
booting with a usb cdrom stops at grub prompt... why?
ReplyDeletehonestly I don't see what's good about this preloaded iso. It's much better in my opinion to be able to partition and install to partitions that I choose, with the size the I want (as long as install fits). If I have 10 partitions on a disk and multiboot different distros can I choose the partition? to install grub or not? on MBR or root partition? If not, it's very limiting in relation to live DVD. Pity it crashed during install...
ReplyDeletedarman
Booting with a USB CDROM stops at grub prompt. Also, connecting an LED/LCD monitor throws an:
ReplyDeleteOut of range
53.7khz/85hz
when it tries to boot up (right after the grub screen vanishes off). I am using SLES 11 SP1 with base, X11 and gnome patterns. The size of the iso is 1.4GB. Any workarounds or hints to fix this would be greatly appreciated.
Hi Veerapuram, please try using an appliance based on SLES 11 SP2 instead. It has newer kernel and drivers so it's more likely to work on your system.
ReplyDeleteThanks, James. I can definitely give it a try. Meanwhile, will it be possible to provide a workaround for the monitor issue? As the media has been delivered to a remote location and its unlikely that they will be able to get another media delivered within time.
DeleteThis looks related to the hardware, so there's not much I can do remotely without knowing more details. You could try to build a Live USB stick with openSUSE 12.2 and boot up from that, then manually DD the image on in the Preload ISO to the target disk.
DeleteIf you need more help, let's move the discussion to the Studio forum (http://susestudio.com/forum) so that others on there can help or learn from this discussion.