Re: libvirt on OS X Leopard 10.5.1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jan 21, 2008 at 04:50:29PM -0600, Schley Andrew Kutz wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> I spent the weekend attempting to get libvirt working on OS X Leopard  
> 10.5.1. I was able to get it to compile, but not connect to libvirtd  
> running on either my KVM or Xen servers. Here are the instructions for  
> getting it to compile:
> 
> 1. Download libvirt-0.4.0 from the mirrors.
> 
> 2. Use macports to install pkgconfig and gnutls
> 
> 3. Configure your source:
> 
> ./configure --without-xen --without-qemu
> 
> 4. Replace instances of 'hyper' in qemu/remote_protocol.x with 'long'  
> and then follow the instructions on http://libvirt.org/windows.html to  
> regen XDR structures.

This is going to fail big time. 'hyper' is 64-bit in size, where
as long is 32-bit. Any RPC calls which user hyper will crash and
burn if you make this change.

What errors do you get if you don't make this change ? There may
be better ways to provide compatability.

> 10. The sources should now build and install.
> 
> At this point any attempt to connect to a remote host results in the  
> thread dying and OS X catching the exception with the following report:
> 
> <beginReport>
> Process:         Python [57356]
> Path:            /System/Library/Frameworks/Python.framework/Versions/ 
> 2.5/Resources/Python.app/Contents/MacOS/Python
> Identifier:      Python
> Version:         ??? (???)
> Code Type:       X86 (Native)
> Parent Process:  bash [59098]
> 
> Date/Time:       2008-01-21 16:48:52.228 -0600
> OS Version:      Mac OS X 10.5.1 (9B18)
> Report Version:  6
> 
> Exception Type:  EXC_BAD_ACCESS (SIGBUS)
> Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000004
> Crashed Thread:  0
> 
> Thread 0 Crashed:
> 0   libvirt.0.dylib               	0x00412911 remoteAuthenticate +  
> 1345 (remote_internal.c:3062)

There wre two bugs in the remoteAuthenticate method in libvirt 0.4.0 which
can cause crashes. I'd recommend testing again with libvirt from the latest
CVS checkout - its pretty likely that'll fix your problem.

Regards,
Dan.
-- 
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]