[PATCH FOR TESTING 0/2] virt-resize tool
This program is now working and ready for testing. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones New in Fedora 11: Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 70 libraries supprt'd http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones New in Fedora 11: Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 70 libraries supprt'd http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw
On Mon, Mar 22, 2010 at 06:40:52PM +0000, Richard W.M. Jones wrote:
This program is now working and ready for testing.
I have in fact pushed this. It's a new feature. It works in small-scale tests for me, although I am sure there are plenty of bugs. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v
On Mon, 22 Mar 2010 18:40:52 +0000, "Richard W.M. Jones" <rjones@redhat.com> wrote:
This program is now working and ready for testing.
Rich.
Test builds here (thanks Richard): http://koji.fedoraproject.org/koji/taskinfo?taskID=2070438 Did some quick testing and found two small issues: - The bootable flag is not copied to the new image - The first partition starts at sector 64, while the source image starts at 63. (Not really an issue, though) Other than that, it works :) $ virt-resize --resize /dev/sda1=100% fedora-12-kvm.img out.img Summary of changes: /dev/sda1: partition will be left alone There is a surplus of 853037568 bytes (813.5M). An extra partition will be created for the surplus. Copying /dev/sda1 ...done $ sfdisk -d fedora-12-kvm.img out.img # partition table of fedora-12-kvm.img unit: sectors fedora-12-kvm.img1 : start= 63, size= 4192902, Id=83, bootable fedora-12-kvm.img2 : start= 0, size= 0, Id= 0 fedora-12-kvm.img3 : start= 0, size= 0, Id= 0 fedora-12-kvm.img4 : start= 0, size= 0, Id= 0 # partition table of out.img unit: sectors out.img1 : start= 64, size= 4192902, Id=83 out.img2 : start= 4193024, size= 1666287, Id=83 out.img3 : start= 0, size= 0, Id= 0 out.img4 : start= 0, size= 0, Id= 0 -- Dennis Krul Tilaa e: dennis@tilaa.nl w: http://www.tilaa.nl
On Wed, Mar 24, 2010 at 09:35:46AM +0100, Dennis Krul wrote:
On Mon, 22 Mar 2010 18:40:52 +0000, "Richard W.M. Jones" <rjones@redhat.com> wrote:
This program is now working and ready for testing.
Rich.
Test builds here (thanks Richard):
http://koji.fedoraproject.org/koji/taskinfo?taskID=2070438
Did some quick testing and found two small issues:
- The bootable flag is not copied to the new image
Yes, that's a bug -- I'll fix that.
- The first partition starts at sector 64, while the source image starts at 63. (Not really an issue, though)
The program always aligns the new partitions (all of them, not just the first) to 64 sector boundaries, so in the 512-byte sector case, the alignment is 32 KB. The question of correct alignment is complex.
Other than that, it works :)
Great, thanks for testing it. 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
On Wed, Mar 24, 2010 at 11:48:44AM +0000, Richard W.M. Jones wrote:
The question of correct alignment is complex.
This is a good summary: https://ata.wiki.kernel.org/index.php/ATA_4_KiB_sector_issues 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
participants (2)
-
Dennis Krul -
Richard W.M. Jones