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

[Xen-users] UnknownHostException on Xen Guest OS


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: Yuzhe Tang <tristartom@xxxxxxxxx>
  • Date: Fri, 4 Dec 2009 23:52:38 -0500
  • Delivery-date: Fri, 04 Dec 2009 20:53:21 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=pVwoeVl9XC0rOaQZSOKiY3UZ9lWTb9XPqXa/FovcuqNP5waLF11eIpk7szPjM0hmdX TkI2Dq1MM6WDUpYbqyGN00/vqYlFoZIcbSb4e9NYJAwXINUFBBS4CYJ9OfWwfifIdW7K +jS4glbFC7k+txW0gchDoDTEl5BzlGDzw4TEI=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Hi,
I have successfully installed Xen on a desktop, and now running two Ubuntu as guest os on Xen. However, it has some problems on hostNames. I have written a test java file, as follows

A.java

import java.net.InetAddress;
class A
{
public static void main(String[] args)
{
try
{
String hostName = InetAddress.getLocalHost().getHostName();
System.out.println(hostName);
} catch(Exception e) {
e.printStackTrace();
}
}
}

And java.net.UnknownHostException is thrown. I would like to know how I can configure the guest os to avoid this error? Does anyone have same experiences here? I appreciate it if s/he could share w me. thanks

Richard
_______________________________________________
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®.