Displaying 2 results from an estimated 2 matches for "getostype".
Did you mean:
get_ostype
2014 Jan 29
1
Re: How to find domain os type and ip address
Hi All,
I am using the libvirt-0.5.1.jar and downloaded from this link
ftp://libvirt.org/libvirt/java.
1) To find the os type of domain I use this method getOSType(). But it
returns the kvm or hvm instead of windows and linux. Is the any way to find
the original os type of domain?
2) Please give is there any option or method available to find the ipaddress
of domain?
Thanks & Regards
Rathidevi
2012 Apr 09
0
virsh works but libvirt-java throws a 'No route to host'
...omain testDomain=conn.domainLookupByName("DeviceSimulator
(192.168.1.150)");
System.out.println("Domain:" + testDomain.getName() + " id " +
testDomain.getID() + " running " +
testDomain.getOSType());
} catch (LibvirtException e) {
System.out.println("exception caught:"+e);
System.out.println(e.getError());
}
}
}
Does anyone know what's going on here? Any help or advice would be greatly
appreciated. Thanks!
--
Jon Drews
jondrews.co...