[opensuse] Help with KIWI
![](https://seccdn.libravatar.org/avatar/7b4d33ff23a0d9237c1c8457f9fbbb95.jpg?s=120&d=mm&r=g)
Hi, struggling with this software. I've followed the guides and installed the Kiwi packages & templates (this is on a 32 bit 10.2 machine). I run kiwi -p /usr/share/kiwi/images/netboot/suse-10.2 with the default template file. This prepares the image. I then run kiwi -c /tmp/kiwi.X -d /tmp which creates the initrd & kernel files. I call these from a TFTP/DHCP server (it makes no diff). I then boot the machine It loads the kernel and boots up with the following: /init: line 88: IncludeKernelParameters: command not found /init: line 125: setupnetwork: command not found /init: line 132: checkTFTP: command not found -----> Checking TFTP Server name: tftp. -----> TFTP Server: tftp. not found -----> Using: from dhcpd-info -----> Checking for config file: config /init: line 174: searchAlternativeConfig: command not found -----> Registering new network client... -----> Registered As: -----> Waiting for configuration... -----> Checking for config file: config. /init: line 227: searchAlternativeConfig: command not found -----> Couldn't get image configuration -----> sleeping [60 sec]... -----> Lookup network client config file again... etc... So it's obviously looking for some additional files from the TFTP server but the notes are very vague as to what they are. If I change the config.xml file at the preparation stage so that the preferences section read: <preferences> <type filesystem="ext3" boot="netboot/suse-10.2">pxe</type> ... </preferences> The kiwi -p command just spits out continuous images until you hit cancel. Think I'm going to have to bin this software as I've been fiddling for days with it and just can't make head nor tail of it. Could anyone shed some light? Kindest regards Matthew -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/9e43be527cfcab47c376653bdfdb61e9.jpg?s=120&d=mm&r=g)
On 10/2/07, Matthew Stringer
Hi, struggling with this software.
I've followed the guides and installed the Kiwi packages & templates (this is on a 32 bit 10.2 machine).
I run kiwi -p /usr/share/kiwi/images/netboot/suse-10.2 with the default template file.
Hi, can you tell us what you are aiming to do? Thanks -J -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/7b4d33ff23a0d9237c1c8457f9fbbb95.jpg?s=120&d=mm&r=g)
On Tuesday 02 October 2007 14:38:41 CyberOrg wrote:
On 10/2/07, Matthew Stringer
wrote: Hi, struggling with this software.
I've followed the guides and installed the Kiwi packages & templates (this is on a 32 bit 10.2 machine).
I run kiwi -p /usr/share/kiwi/images/netboot/suse-10.2 with the default template file.
Hi, can you tell us what you are aiming to do?
Thanks
-J
I want to be able to boot a diskless server via PXE into linux with DHCP that will then run a simple bash script that uses SSH (tagged onto the startup scripts), once run I want the machine to shut down, don't want it to attempt to install anything onto the machine or do anything fancy. As this will be repeated with various servers I want the boot kernel to be as generic as possible so to maintain compatibility. Regards Matthew -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/9e43be527cfcab47c376653bdfdb61e9.jpg?s=120&d=mm&r=g)
On 10/2/07, Matthew Stringer
I want to be able to boot a diskless server via PXE into linux with DHCP that will then run a simple bash script that uses SSH (tagged onto the startup scripts), once run I want the machine to shut down, don't want it to attempt to install anything onto the machine or do anything fancy. As this will be repeated with various servers I want the boot kernel to be as generic as possible so to maintain compatibility.
See http://en.opensuse.org/LTSP Install kiwi-ltsp packages, remove ldm, and ltsp-client from the config.xml, put your scripts in /usr/share/kiwi/image/ltsp/suse-10.3/root/etc/init.d, insserv your script through config.sh. After configuring /etc/sysconfig/kiwi-ltsp according to your server config, run kiwi-ltsp-setup -s. Boot up your client. Cheers -J -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/7b4d33ff23a0d9237c1c8457f9fbbb95.jpg?s=120&d=mm&r=g)
On Tuesday 02 October 2007 15:17:55 CyberOrg wrote:
On 10/2/07, Matthew Stringer
wrote: I want to be able to boot a diskless server via PXE into linux with DHCP that will then run a simple bash script that uses SSH (tagged onto the startup scripts), once run I want the machine to shut down, don't want it to attempt to install anything onto the machine or do anything fancy. As this will be repeated with various servers I want the boot kernel to be as generic as possible so to maintain compatibility.
See http://en.opensuse.org/LTSP
Install kiwi-ltsp packages, remove ldm, and ltsp-client from the config.xml, put your scripts in /usr/share/kiwi/image/ltsp/suse-10.3/root/etc/init.d, insserv your script through config.sh.
After configuring /etc/sysconfig/kiwi-ltsp according to your server config, run kiwi-ltsp-setup -s.
Boot up your client.
Cheers
-J
Promising cheers, however: kasumi:~ # kiwi-ltsp-setup -s KIWI-LTSP: 2007-10-02 16:49:36: ====== Starting ====== KIWI-LTSP: 2007-10-02 16:49:36: Setting up the destination path KIWI-LTSP: 2007-10-02 16:49:36: /srv/kiwi-ltsp exists. Moving to "/srv/kiwi-ltsp.0710021649" KIWI-LTSP: 2007-10-02 16:49:36: Setting up the hosts file and lts.conf KIWI-LTSP: 2007-10-02 16:49:36: Running the KIWI LTSP creation. KIWI-LTSP: 2007-10-02 16:49:36: /srv/kiwi-ltsp-nfs exists. Moving to "/srv/kiwi-ltsp-nfs.0710021649" Warning: XML::LibXML compiled against libxml2 20630, but runtime libxml2 is older 20629 Oct-02 16:49 <1> : Setting log file to: terminal Oct-02 16:49 <1> : Reading image description... done Oct-02 16:49 <2> : local URL path not found: /media/sr1 skipped Oct-02 16:49 <1> : Setting up package manager: smart done Oct-02 16:49 <1> : Setting RPM signature check to: False done Oct-02 16:49 <1> : Adding local smart channel: kiwi1-12479 done Oct-02 16:49 <1> : Initializing image system on: /srv/kiwi-ltsp-nfs...Loading cache... Updating cache... ############################################################################ [100%] Updating cache... ############################################################################ [100%] Channels have no new packages. Saving cache... Loading cache... Updating cache... ############################################################################ [100%] error: 'devs' matches no packages done Oct-02 16:49 <1> : Removing smart channel(s): kiwi1-12479 done Oct-02 16:49 <1> : Reset RPM signature check to: False done Oct-02 16:49 <1> : Mounting required file systems done Oct-02 16:49 <1> : Mounting local channel: kiwi1-12479 skipped Oct-02 16:49 <2> : Couldn't mount read-only, using bind mount done Oct-02 16:49 <1> : Setting RPM signature check to: Falsechroot: cannot run command `bash': No such file or directory failed Oct-02 16:49 <3> : Oct-02 16:49 <3> : Image installation failed failed Oct-02 16:49 <1> : Umounting path: /srv/kiwi-ltsp-nfs//base-system/usr/share/kiwi/image/ltsp/suse-10.3/extra-packages Oct-02 16:49 <1> : Umounting path: /srv/kiwi-ltsp-nfs/dev/pts Oct-02 16:49 <1> : Umounting path: /srv/kiwi-ltsp-nfs/sys Oct-02 16:49 <1> : Umounting path: /srv/kiwi-ltsp-nfs/proc Oct-02 16:49 <3> : KIWI exited with error(s) done KIWI-LTSP: 2007-10-02 16:49:47: Setting up the SSH keys Setting up ssh_known_hosts in: /srv/kiwi-ltsp-nfs.0710021649 WARNING: /srv/kiwi-ltsp-nfs.0710021649/etc/ssh not found. skipping... /srv/www WARNING: /srv/www/etc/ssh not found. skipping... /srv/tftpboot WARNING: /srv/tftpboot/etc/ssh not found. skipping... /srv/git WARNING: /srv/git/etc/ssh not found. skipping... /srv/kiwi-ltsp-nfs WARNING: /srv/kiwi-ltsp-nfs/etc/ssh not found. skipping... /srv/kiwi-ltsp.0710021649 WARNING: /srv/kiwi-ltsp.0710021649/etc/ssh not found. skipping... /srv/ftp WARNING: /srv/ftp/etc/ssh not found. skipping... Warning: XML::LibXML compiled against libxml2 20630, but runtime libxml2 is older 20629 Oct-02 16:49 <1> : Setting log file to: terminal Oct-02 16:49 <1> : Reading image description... failed Oct-02 16:49 <3> : Cannot open control file: /srv/kiwi-ltsp-nfs/image/config.xml failed Oct-02 16:49 <3> : KIWI exited with error(s) done KIWI-LTSP: 2007-10-02 16:49:48: Could not create KIWI LTSP Image. Aborting! kasumi:~ # I'll try it again on a 10.2 machine. Matthew -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/9e43be527cfcab47c376653bdfdb61e9.jpg?s=120&d=mm&r=g)
On 10/2/07, Matthew Stringer
Promising cheers, however:
error: 'devs' matches no packages
Whatever media you are using it is missing packages that are required. You need 10.3 RC1 and above i386 DVD media/iso. Put the path where you mount the image in /etc/sysconfig/kiwi-ltsp before running kiwi-ltsp-setup.
I'll try it again on a 10.2 machine.
10.2 will not work.
Matthew
Cheers -J -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/7b4d33ff23a0d9237c1c8457f9fbbb95.jpg?s=120&d=mm&r=g)
On Tuesday 02 October 2007 16:52:44 Matthew Stringer wrote:
On Tuesday 02 October 2007 15:17:55 CyberOrg wrote:
On 10/2/07, Matthew Stringer
wrote: I want to be able to boot a diskless server via PXE into linux with DHCP that will then run a simple bash script that uses SSH (tagged onto the startup scripts), once run I want the machine to shut down, don't want it to attempt to install anything onto the machine or do anything fancy. As this will be repeated with various servers I want the boot kernel to be as generic as possible so to maintain compatibility.
See http://en.opensuse.org/LTSP
Install kiwi-ltsp packages, remove ldm, and ltsp-client from the config.xml, put your scripts in /usr/share/kiwi/image/ltsp/suse-10.3/root/etc/init.d, insserv your script through config.sh.
After configuring /etc/sysconfig/kiwi-ltsp according to your server config, run kiwi-ltsp-setup -s.
Boot up your client.
Cheers
-J
Promising cheers, however:
Matthew
What kind of machine do I need for this, although I'm not getting an error it sits there for about 90 minutes on my 2GHz machine and the crashes, need to reset the PC to get back up and running? Anyone recommend an alternative to this (even if it's not running SUSE), need to find a solution that works. Matthew -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/9e43be527cfcab47c376653bdfdb61e9.jpg?s=120&d=mm&r=g)
On 10/9/07, Matthew Stringer
What kind of machine do I need for this, although I'm not getting an error it sits there for about 90 minutes on my 2GHz machine and the crashes, need to reset the PC to get back up and running?
You are able to network boot the client and it crashes after 90 minutes? It should not take more than a minute to boot up a client with even 128 MB ram.
Anyone recommend an alternative to this (even if it's not running SUSE), need to find a solution that works.
You just want to run some scripts after booting, so you need to modify kiwi squashfs/nfs image to do that, as explained earlier, remove ldm/ltsp specific scripts and put the ones you need to run. Other solution that performs better than what we have is ltsp5 on ubuntu, but you would have to do the same(change scripts) there too. Ciao -J -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/7b4d33ff23a0d9237c1c8457f9fbbb95.jpg?s=120&d=mm&r=g)
On Tuesday 09 October 2007 15:50:35 CyberOrg wrote:
On 10/9/07, Matthew Stringer
wrote: What kind of machine do I need for this, although I'm not getting an error it sits there for about 90 minutes on my 2GHz machine and the crashes, need to reset the PC to get back up and running?
You are able to network boot the client and it crashes after 90 minutes?
No I don't get that far, creating the image causes my PC to crash. Sorry if I wasn't clear. Matthew -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (2)
-
CyberOrg
-
Matthew Stringer