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@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2009-Dec-05 04:56 UTC
Re: [Xen-users] UnknownHostException on Xen Guest OS
On Sat, Dec 5, 2009 at 11:52 AM, Yuzhe Tang <tristartom@gmail.com> wrote:> 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.How do you install Ubuntu? Generally you need to configure it the same way you do on normal system. Check things like /etc/resolv.conf, /etc/hostname, /etc/hosts -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Yes, that is true. thx. I have modified the etc/hosts, and the prob solved. richard On Fri, Dec 4, 2009 at 11:56 PM, Fajar A. Nugraha <fajar@fajar.net> wrote:> On Sat, Dec 5, 2009 at 11:52 AM, Yuzhe Tang <tristartom@gmail.com> wrote: > > 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. > > How do you install Ubuntu? > Generally you need to configure it the same way you do on normal > system. Check things like /etc/resolv.conf, /etc/hostname, /etc/hosts > > -- > Fajar >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users