This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-devel] Communicating with the Guest Os before the network comes up.

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Communicating with the Guest Os before the network comes up.
From: Ligesh <xen@xxxxxxxxxx>
Date: Tue, 18 Jul 2006 07:54:11 -0400
Delivery-date: Mon, 17 Jul 2006 19:26:43 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Reply-to: Ligesh <xen@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.6i
 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 

  $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.

:: Ligesh :: http://lxlabs.com 

Xen-devel mailing list

<Prev in Thread] Current Thread [Next in Thread>