WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] UnknownHostException on Xen Guest OS

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] UnknownHostException on Xen Guest OS
From: Yuzhe Tang <tristartom@xxxxxxxxx>
Date: Fri, 4 Dec 2009 23:52:38 -0500
Delivery-date: Fri, 04 Dec 2009 20:53:21 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=X/0n+0Gi2WbgH+3s2wsKNat6FlqIJ3LDZSwtIW3I/2k=; b=w7s5i+QoiLrdM7LVRFGgyu7GTfTSfmDHyXOYjSScqdN9E3GdZqfLFcfkPIZzDs2Miy ijTLTdiJEtMnA/qEfB1JpGG6wQisLIar9sb35/L9POzHOeU28hPqELbMGzhSYAUKq3W2 4IU5WD/NxKIJH5oxmruoaymcTPhr48l7ZCvzg=
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
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
<Prev in Thread] Current Thread [Next in Thread>