Whether libguestfs work only with 32bit processors
Hi I have installed libguestfs in Fedora Core 13. Here's the packages I ve installed. [root@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@kvmcluster images]# truncate -r redhat5_old.img redhat5.img [root@kvmcluster images]# truncate -s +1G redhat5.img [root@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@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.
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
Thank Richard Will you please help me to remove the 32 bit test from /usr/bin/virt-resize.?? Whether I have to add any option to this command or how to run this command?? On Mon, Aug 16, 2010 at 7:41 PM, Richard W.M. Jones <rjones@redhat.com>wrote:
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
On Mon, Aug 16, 2010 at 11:13:56PM +0530, Rajiv Rajaian wrote:
Thank Richard Will you please help me to remove the 32 bit test from /usr/bin/virt-resize.?? Whether I have to add any option to this command or how to run this command??
Edit /usr/bin/virt-resize with your favorite editor, remove the following two lines, save it, and run it again. die __"virt-resize: sorry this program does not work on a 32 bit host\n" if ~1 == 4294967294; Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming blog: http://rwmj.wordpress.com Fedora now supports 80 OCaml packages (the OPEN alternative to F#) http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora
Hi Richard,,, I have tried virt-resize by removing the two lines and its resized. But after running virt-resize the partition type shows unknown and the guest image is not booting . Heres the steps I have followed. Where I went wrong?? Is there any thing else to be configured?? [root@kvmcluster images]# truncate -r redhat5_old.img redhat5.img [root@kvmcluster images]# truncate -s +1G redhat5.img [root@kvmcluster images]# virt-resize --expand /dev/sda3 redhat5_old.img redhat5.img Summary of changes: /dev/sda1: partition will be left alone /dev/sda2: partition will be left alone /dev/sda3: partition will be resized from 2.9G to 3.9G /dev/sda3: content will be expanded using the 'resize2fs' method Copying /dev/sda1 ... done Copying /dev/sda2 ... done Copying /dev/sda3 ... done Expanding /dev/sda3 using the 'resize2fs' method at /usr/bin/virt-resize line 1221.in super-block while trying to open /dev/vda3 [root@kvmcluster images]# virt-list-partitions -lht redhat5.img /dev/sda1 ext3 101.9M /dev/sda2 swap 1.0G /dev/sda3 unknown 3.9G /dev/sda device 5.0G On Mon, Aug 16, 2010 at 11:33 PM, Richard W.M. Jones <rjones@redhat.com>wrote:
On Mon, Aug 16, 2010 at 11:13:56PM +0530, Rajiv Rajaian wrote:
Thank Richard Will you please help me to remove the 32 bit test from /usr/bin/virt-resize.?? Whether I have to add any option to this command or how to run this command??
Edit /usr/bin/virt-resize with your favorite editor, remove the following two lines, save it, and run it again.
die __"virt-resize: sorry this program does not work on a 32 bit host\n" if ~1 == 4294967294;
Rich.
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones <http://people.redhat.com/%7Erjones> Read my programming blog: http://rwmj.wordpress.com Fedora now supports 80 OCaml packages (the OPEN alternative to F#) http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora
On Wed, Aug 18, 2010 at 02:57:08PM +0530, Rajiv Rajaian wrote:
I have tried virt-resize by removing the two lines and its resized. But after running virt-resize the partition type shows unknown and the guest image is not booting . Heres the steps I have followed. Where I went wrong??
What went wrong is it's not guaranteed to work on 32 bit! Try using a 64 bit host. 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
Thanks for your information Rich On Wed, Aug 18, 2010 at 3:35 PM, Richard W.M. Jones <rjones@redhat.com>wrote:
On Wed, Aug 18, 2010 at 02:57:08PM +0530, Rajiv Rajaian wrote:
I have tried virt-resize by removing the two lines and its resized. But after running virt-resize the partition type shows unknown and the guest image is not booting . Heres the steps I have followed. Where I went wrong??
What went wrong is it's not guaranteed to work on 32 bit!
Try using a 64 bit host.
Rich.
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones <http://people.redhat.com/%7Erjones> libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://et.redhat.com/~rjones/libguestfs/<http://et.redhat.com/%7Erjones/libguestfs/> See what it can do: http://et.redhat.com/~rjones/libguestfs/recipes.html<http://et.redhat.com/%7Erjones/libguestfs/recipes.html>
participants (2)
-
Rajiv Rajaian -
Richard W.M. Jones