From: Ligesh <xen@lxlabs.com>
To: xen-devel@lists.xensource.com
Subject: Communicating with the Guest Os before the network comes up.
Date: Tue, 18 Jul 2006 07:54:11 -0400 [thread overview]
Message-ID: <20060718115411.GA3210@lxlabs.com> (raw)
Hi folks,
I would like to know if it is possible to add a mechanism to send a simple string into the Virtual Machine. For instance, in the case of Vmware, we can define a variable called as machine.id in the config file, and this can be accessed from inside the VM using the /etc/vmware/vmware-guestd on linux or VmwareService.exe on Windows. The main purpose of this is to setup static ip address for the Virtual Machine. What you do is:
In the config file you define the variable:
----------
machine.id = "Mtx <ipaddress>"
----------
Now from inside the VM you can acess this machine.id by executing vmware-guestd
----------------
$string = `vmware-guestd --cmd machine.id.get`
$ip = `echo $string | cut -f 1`
ifconfig eth0 $ip
----------------
This is portable across platforms, and would actually help a lot in the management of the VM. Now, as far as remote management is concerned, we have to depend on the network to have any type of interaction with the VM, which is a serious limitation. With this mode, it becomes sort of a backup, since a wide variety of commands can be passed to a daemon that will start at the bootup. For instance, you can ask it to execute an arbitrary command at the bootup using this method, which can help in recovering the machine in case one of the network services fails.
Thanks.
--
:: Ligesh :: http://lxlabs.com
next reply other threads:[~2006-07-18 11:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-18 11:54 Ligesh [this message]
2006-07-18 20:02 ` Communicating with the Guest Os before the network comes up Jacob Gorm Hansen
2006-07-19 5:45 ` Ligesh
2006-07-19 6:45 ` Gerd Hoffmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060718115411.GA3210@lxlabs.com \
--to=xen@lxlabs.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.