[xen-tools] Re: re-installation with xen-shell
Steve Kemp
steve at steve.org.uk
Sat Nov 17 03:11:33 CET 2007
On Sat Nov 17, 2007 at 03:04:03 +0100, Henning Sprang wrote:
> 1) Do I get it right, that the image.sh script, required for
> re-installation, can only be put into place by an admin, not the user
> himself?
That is correct.
> 2) I see one such script there for a user I created. The problem is,
> it hast the hostname <loginname> set.
> But as xen-shell isn't based on a login that controls a host with the
> same name as the login anymore, but I want to control multiple domains
> (as given in their config files), I need to give the hostname as
> parameter, don't I?
The xm-reimage script will be given two command line arguments:
1. $ACTIVE - The name of the instance the user is controlling.
2. $USER - The username of the person who is invoking the script.
That in turns passes on a single argument $ACTIVE to the
~$foo/reimage.sh script. So that should allow you to set
the hostname correctly, via
--hostname=$1
Or did I misunderstand? (i.e. if you add a new user to your
xen host *and* create image.sh in their home directory their
new guest can be called the same as their old one, and doesn't
have to match their username - that is just a default.)
(I'll reply to your rinse/fedora mail tomorrow when I've thought
more.)
Steve
--
More information about the xen-tools-discuss
mailing list