XenServer: Editing clone configuration before boot

Posted by Jeff Ferland on Server Fault See other posts from Server Fault or by Jeff Ferland
Published on 2012-03-22T12:53:19Z Indexed on 2012/03/23 5:32 UTC
Read the original article Hit count: 483

Filed under:
|

Upon cloning a base image, I need to reconfigure basic settings. Regenerating the ssh host key, changing static IP assignments, setting the host name, etc.

Because of the network setup, DHCP is not an option. That more or less rules out SSHing in with a predefined key or running a startup script since I can't provide the IP externally.

I'd most like to mount the filesystem of the new machine on Dom0, but the lvm volumes are exported and it appears to be Bad Form to import them so the Dom0 machine can see them.

What's your best suggestion for altering files in a cloned VM before boot? Must be non-interactive, and I'm going to guess out the gate that scripting access via xe console is not going to work well.

© Server Fault or respective owner

Related posts about xen

Related posts about xenserver