Title: [Sisuite-users] Deploy image over ssh
Hi Mike:
 
It appears that one important file regarding SSH support is missing from the RPM package, the file is README.ssh_support and you can read it here:

http://svn.systemimager.org/filedetails.php?repname=systemimager&path=%2Ftrunk%2FREADME.ssh_support&rev=0&sc=1
 
I will fix this in trunk and it will be added back in future releases.
 
These 2 files should also provide you with hints regarding how SSH support works.  Basically you need to enable the DHCP option and then the script will realize that and grab the files via wget (I assume via https?) instead of via rsync:

http://svn.systemimager.org/filedetails.php?repname=systemimager&path=%2Ftrunk%2Finitrd_source%2Fskel%2Fetc%2Finit.d%2Ffunctions&rev=0&sc=1

http://svn.systemimager.org/filedetails.php?repname=systemimager&path=%2Ftrunk%2Finitrd_source%2Fskel%2Fetc%2Finit.d%2FrcS&rev=0&sc=1
I hope this gets you further.  I'm just trying to figure this out myself too and I would appreciate it if you can post back your experiences if you manage to get it working.
 
Thanks!
 
Bernard


From: [EMAIL PROTECTED] on behalf of mike _
Sent: Thu 15/06/2006 07:42
To: [email protected]
Subject: [Sisuite-users] Deploy image over ssh

So I've got SystemImager 3.6.3 up and running with the regular rsync
set up. (I followed this guide
http://www.linux.com/article.pl?sid=06/04/24/1724216 incidentally.) So
far I'm just playing with one golden client, a server and a target
machine. Server is running CentOS 4.3 and the golden client is Kubuntu
606.

I'd like to get everything working over ssh. Trouble is, the ssh
functionality appears to be completely undocumented.

I'm currently stuck on how to deploy an image to a target machine over
ssh. Can anyone point me at a guide on how to do this or explain it?

I've been booting the target machine from a CD made using
si_mkautoinstallcd and selecting the 'standard' option. At the boot
prompt I type

kernel IMAGESERVER=theipaddresshere IMAGENAME=kubuntu606

I've tried blocking the rsync port on the server then adding
SSH_USER=root to the kernel options (yes I probably shouldn't be using
root, I'll deal with that later), but the target machine still tries
to connect to the rsync port on the server and of course that fails
because I block it. It gets as far as

get_boel_binaries_tarball
rsync -av serveripaddresshere::boo/i386/standard/boel_binaries/tar/gz
/tmp/boel_bonaries
rsync: failed to connect to... and so on.

Obviously I need to make the installer process connect using ssh not
to the rsync port but I can't work how to do that.

I've got si_getimage going using the --ssh-user option. On the golden
client I call si_prepareclient with --no-rsyncd then start rsync
daemon manually using a tweaked version of the rsyncd.conf file that
si_prepareclient uses that allow connection from localhost. Because
I'm using Kubuntu I also had to install the openssh-server package and
enable a password for the root account. I've made post-install scripts
which remove the openssh-server package and lock the root account on
the target machine.
I suspect I can get si_updateclient working over ssh by a similar
method but haven't tried yet.

My systemimager server is not the DHCP server btw. The target machine
gets it's networking settings via DHCP but from a different server.

thanks,

mike


_______________________________________________
Sisuite-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sisuite-users

_______________________________________________
Sisuite-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sisuite-users

Reply via email to