[libvirt-users] vzctl 3.1 not supported in virsh ?

Hello If i use virsh with vzctl 3.1 i get below error virsh -c openvz:///system error: /Could not extract vzctl version It works ok with vzctl 3.0.x Is there any way i can use virsh with vzctl 3.1 ? ---------------------------------------------------------------- [root@test ~]# /usr/bin/virsh --version=long Virsh command line tool of libvirt 0.9.11 See web site at http://libvirt.org/ Compiled with support for: Hypervisors: QEmu/KVM UML OpenVZ VirtualBox Test Networking: Remote Daemon Network Bridging Nwfilter Storage: Dir Filesystem SCSI Multipath iSCSI LVM Miscellaneous: Secrets Debug -------------------------------------------------------- [root@test ~]# vzctl --version vzctl version 3.1 -------------------------------------------------------- Regards James /

On 2012年03月30日 23:04, Jamshaid wrote:
Hello
If i use virsh with vzctl 3.1 i get below error
virsh -c openvz:///system error: /Could not extract vzctl version
It works ok with vzctl 3.0.x Is there any way i can use virsh with vzctl 3.1 ?
IIR, it's somehing we need to improve for the version parsing function to allow there is no micro version. There is no reason to fail the parsing if there is no micro version of the underlying hypervisor. Patch is welcomed. See src/util/util.c: virParseVersionString Regards, Osier

On 2012年03月31日 08:03, Osier Yang wrote:
On 2012年03月30日 23:04, Jamshaid wrote:
Hello
If i use virsh with vzctl 3.1 i get below error
virsh -c openvz:///system error: /Could not extract vzctl version
It works ok with vzctl 3.0.x Is there any way i can use virsh with vzctl 3.1 ?
IIR, it's somehing we need to improve for the version parsing function to allow there is no micro version.
Okay, actually the parsing function has option to allow the missing micro. I made a quick patch, and posted it to libvir-list: https://www.redhat.com/archives/libvir-list/2012-March/msg01366.html Regards, Osier
participants (2)
-
Jamshaid
-
Osier Yang