张光鹏
2011-Dec-13 07:07 UTC
[libvirt-users] libvirt0.9.7.tar.gz installation cannot start libvirtd?
Hi? I have a host Redhat6.1 ?when i install os the libvirt0.8.7 were contained . Latter i installed libvirt0.9.3.tar.gz without uninstall the libvirt0.8.7, i just use the virsh functions. Now i want to install libvirt0.9.7.tar.gz , and i uninstall libvirt0.9.3 and uninstall libvirt0.8.7 with "rpm -e" , i also delete some files contains vesion number 0.8.7 or o.9.3. Today i install libvirt 0.9.7 , untar and install wit "./configure --prefix-/usr/local/libvirt --with-esx", then " make" "make install" ,and i make a link "ln -s /usr/local/libvirt/bin/virsh /usr/bin/virsh" , so i can use virsh . But i cannot start libvirtd ,when i use "service libvirtd start/status.." ,it returns "libvirtd:unrecognized service". I found a libvirtd file in /usr/sbin/. Could someone help to resolve the problem ? Thanks all Best regards --------------------------------------------------------------------------------------------------- Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s) is intended only for the use of the intended recipient and may be confidential and/or privileged of Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is not the intended recipient, unauthorized use, forwarding, printing, storing, disclosure or copying is strictly prohibited, and may be unlawful.If you have received this communication in error,please immediately notify the sender by return e-mail, and delete the original message and all copies from your system. Thank you. --------------------------------------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20111213/4b475766/attachment.htm>
Eric Blake
2011-Dec-13 22:02 UTC
[libvirt-users] libvirt0.9.7.tar.gz installation cannot start libvirtd?
On 12/13/2011 12:07 AM, ??? wrote:> Today i install libvirt 0.9.7 , untar and install wit "./configure --prefix-/usr/local/libvirt --with-esx", then " make" "make install" ,and i make a link "ln -s /usr/local/libvirt/bin/virsh /usr/bin/virsh" , so i can use virsh . > > But i cannot start libvirtd ,when i use "service libvirtd start/status.." ,it returns "libvirtd:unrecognized service". I found a libvirtd file in /usr/sbin/.'service' expects things to be installed in particular locations; your use of --prefix=/usr/local/libvirt violated those assumptions. While you "fixed" things for /usr/bin/virsh, there's a lot more files you'd have to link into place if you want to match the default layout of the libvirt binary package that came with RHEL that you are trying to upgrade. If you use libvirt.git, you can use './autogen.sh --system' to pre-populate all of the configure arguments to match the RHEL defaults (and even if you don't build libvirt.git, but from a tarball, then looking at what autogen.sh does can prove useful). Also, if you self-build libvirt, you may want to be sure that you include the same RHEL-specific patches as in the distro's package, so that you don't inadvertently lose the benefits of RHEL's efforts in providing a stable product.> > Could someone help to resolve the problem ?You may want to consider opening a help ticket with Red Hat, and/or upgrading to RHEL 6.2.> > Thanks all > > Best regards > --------------------------------------------------------------------------------------------------- > Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s)It's generally considered poor netiquette to send disclaimers to publicly-archived lists, where they cannot be enforced. You may want to consider sending from an alternate email account. -- Eric Blake eblake at redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 620 bytes Desc: OpenPGP digital signature URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20111213/a041d1b2/attachment.sig>