[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] virtual machines, DHCP, and ssh?



Just curious if anyone knows if there is a way to get
ssh host keys set by DHCP?

We've got a limited number of IP addrs for VMs (because
there are a limited number of VMs that can boot at the
same time before we run out of memory on the host :-).

But we have a gazillion or so VMs for testing different
linux distributions and wot-not.

I'd love to setup DHCP on the Xen host and just allocate
whatever IP is available to whatever new VM was just booted,
but with different VMs reusing the same IP addrs, everyone's
ssh clients will constantly be honking at them about the
host keys changing.

Anyone encountered this and have a nifty work-around?

Is my best bet to invent a new init script that runs before
sshd is started to check what IP I have and copy the appropriate
ssh host keys into /etc/ssh? (Then try and remember to get that
init script installed on all the VMs :-).

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.