<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
<br><br>> Date: Tue, 24 Nov 2009 10:33:48 +0000<br>> From: berrange@redhat.com<br>> To: x_k_123@hotmail.com<br>> CC: crobinso@redhat.com; libvirt-list@redhat.com; virt-tools-list@redhat.com<br>> Subject: Re: [virt-tools-list] Questions about virt-manager running on Arch of    Itanium 64<br>> <br>> On Tue, Nov 24, 2009 at 10:05:08AM +0800, Dustin Xiong wrote:<br>> > > Date: Mon, 23 Nov 2009 16:16:05 +0000<br>> > > From: berrange@redhat.com<br>> > > To: crobinso@redhat.com<br>> > > CC: x_k_123@hotmail.com; libvirt-list@redhat.com; virt-tools-list@redhat.com<br>> > > Subject: Re: [virt-tools-list] Questions about virt-manager running on Arch of       Itanium 64<br>> > > <br>> > > On Mon, Nov 23, 2009 at 11:09:28AM -0500, Cole Robinson wrote:<br>> > > > On 11/23/2009 01:43 AM, Dustin Xiong wrote:<br>> > > > > <br>> > > > > yes, my libvirt rpm and other related rpm!
 s all came from the RHEL 5.4<br>> > > > > iso. And they all build for itanium 64<br>> > > > > # rpm -qa | grep libvirt<br>> > > > > libvirt-python-0.6.3-20.el5<br>> > > > > libvirt-devel-0.6.3-20.el5<br>> > > > > libvirt-0.6.3-20.el5<br>> > > > > <br>> > > > > And i try to make a link, it still doesn't work.<br>> > > > > ln -s /usr/local/bin/qemu-system-ia64 /usr/libexec/qemu-system-ia64<br>> > > > > <br>> > > > <br>> > > > Actually I think that destination needs to be /usr/libexec/qemu-kvm, not<br>> > > > qemu-system-ia64. And looking at the rhel5 code, this can also be<br>> > > > /usr/bin/qemu-kvm<br>> > > <br>> > > <br>> > > That's not going to help.  'ia64' is not listed as a valid architecture<br>> > > in qemu_conf.c, so it'll never be pulled into the ca!
 pabilities, and thus<br>> > > libvirt will never even!
  look fo
r a KVM binary<br>> > > <br>> > <br>> > The libvirt and virt-manager rpm all come from the iso of <br>> > Red Hat Enterprise Linux 5.4 Server (Itanium)Does the redhat have the <br>> > plans to implement the architecture ia64 in libvirt ?<br>> <br>> libvirt as an open source project is happy to support any architecture.<br>> <br>> In RHEL, Red Hat only support a sub-set of the functionality / platforms.<br>> RHEL-5 Xen supports i386, x86_64 and ia64. RHEL-5 KVM only supports x86_64<br>> <br>> > > Someone needs to update qemu_conf.c to handle ia64 correctly.<br>> > > <br>> > <br>> > If i want to update qemu_conf.c to handle ia64 , which files or <br>> > datastruct needs to update ? Only the qemu_conf.c ?<br>> <br>> If you search for the table  <br>> <br>>    static const struct qemu_arch_info const arch_info_hvm[] = {<br>> <br>> It is probably (hopefully?) sufficient to jus!
 t add <br>> <br>>   {  "ia64",    64, NULL, "/usr/bin/qemu-system-ia64",    NULL, NULL, 0 },<br>> <br>> The key test is that when you later run<br>> <br>>    virsh capabilities<br>> <br>> it should show the /usr/bin/qemu-system-ia64 binary, and also report that<br>> KVM is present. <br>> <br>> I have a feeling you might also need to add code to the src/nodeinfo.c<br>> file, since I think that /proc/cpuinfo on ia64 is in a different format<br>> to that on x86_64. ie, change the linuxNodeInfoCPUPopulate() method so<br>> it can also parse the ia64 format. This is used by the  command<br>> <br>>   virsh nodeinfo<br>> <br>> <br>> So once 'capabilities' and 'nodeinfo' are working on ia64,  then it should<br>> be possible to use virt-manager properly<br><br>Thanks for your advice.<br>And I downloaded the libvirt-0.7.4.tar.gz, compiled and installed on the itanium.<br>But when I run virsh ,it failed as below:<br>[root@kvm !
 bin]# ./virsh<br>error: unable to connect to '/usr/local/dlibv!
 irt/var/
run/libvirt/libvirt-sock': No such file or directory<br>error: failed to connect to the hypervisor<br><br>Why the binary libvirt-sock <span id="result_box" class="short_text"><span style="background-color: rgb(255, 255, 255);" title="为什么这个命令没有生成">does not generate</span></span> ?<br><br>But at the same time, I used libvirt-0.6.3, it works.<br>[root@kvm bin]# virsh<br>Welcome to virsh, the virtualization interactive terminal.<br><br>Type:  'help' for help with commands<br>       'quit' to quit<br><br>virsh #<br>the libvirt-0.6.3 comes from the  libvirt-0.6.3-20.el5.ia64.rpm<br><span id="result_box" class="short_text"><span style="background-color: rgb(235, 239, 249);" title="为什么会有这样的区别"><br>Why is there such a difference</span></span>?<br><br>thanks a lot.<br><br>                                     <br /><hr />Keep your friends updated— <a href='http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basic!
 s.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_5:092010' target='_new'>even when you’re not signed in.</a></body>
</html>