Rajiv Rajaian
2010-Aug-16 13:50 UTC
[Libguestfs] Whether libguestfs work only with 32bit processors
Hi I have installed libguestfs in Fedora Core 13. Here's the packages I ve installed. [root at kvmcluster ~]# rpm -qa | grep guest guestfish-1.2.2-1.fc13.i686 perl-libguestfs-1.2.2-1.fc13.i686 libguestfs-1.2.2-1.fc13.i686 libguestfs-tools-1.2.2-1.fc13.i686 And I have tried to resize the KVM guest image with virt-resize command. But I'm getting the error as "virt-resize: sorry this program does not work on a 32 bit host" since Im su Whether libguest doesnt have any support fo 32 bit processors?? Or can u please suggest me any other versions of libguestfs that would support 32 bit processor. Here the stpes I have tried for resizing the KVM guest [root at kvmcluster images]# truncate -r redhat5_old.img redhat5.img [root at kvmcluster images]# truncate -s +1G redhat5.img [root at kvmcluster images]# virt-list-partitions -lh redhat5_old.img /dev/sda1 ext3 101.9M /dev/sda2 swap 1.0G /dev/sda3 ext3 2.9G [root at kvmcluster images]# virt-resize --expand /dev/sda3 redhat5_old.img redhat5.img virt-resize: sorry this program does not work on a 32 bit host Thanks /Regards Rajiv.R Project Associate, CARE,MIT, Anna University Chennai. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libguestfs/attachments/20100816/2bb5ffb7/attachment.htm>
Richard W.M. Jones
2010-Aug-16 14:11 UTC
[Libguestfs] Whether libguestfs work only with 32bit processors
On Mon, Aug 16, 2010 at 07:20:09PM +0530, Rajiv Rajaian wrote:> And I have tried to resize the KVM guest image with virt-resize command. But > I'm getting the error as "virt-resize: sorry this program does not work on > a 32 bit host" since Im su > Whether libguest doesnt have any support fo 32 bit processors?? Or can u > please suggest me any other versions of libguestfs that would support 32 bit > processor.The problem isn't with libguestfs -- libguestfs works just fine with 32 and 64 bit processors. The problem is virt-resize: It does some calculations using long integers, and these aren't possible in 32 bit Perl (or more precisely, 32 bit Perl will convert these calculations to double, which means they won't be accurate). You can try removing the 32 bit test from /usr/bin/virt-resize. It should run, but the results of the resize aren't guaranteed to work. The only other issue I'm aware of with libguestfs and 32 bit processors is that not many 32 bit processors had support for hardware virt, so it'll be a bit slow (but should still work). One of these days I'll rewrite virt-resize in OCaml ... Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://et.redhat.com/~rjones/libguestfs/ See what it can do: http://et.redhat.com/~rjones/libguestfs/recipes.html