virt-resize progress bars

After a mammoth 12 part patch series, libguestfs‘s virt-resize tool for resizing virtual machines now displays progress bars when you are doing the long copy operations:

$ virt-resize --expand=/dev/sda2 /tmp/F13x64.img /tmp/test.img
Summary of changes:
/dev/sda1: partition will be left alone
/dev/sda2: partition will be resized from 7.5G to 9.5G
/dev/sda2: content will be expanded using the 'pvresize' method
Copying /dev/sda1 ...
[##################################################################]
Copying /dev/sda2 ...
[##----------------------------------------------------------------]

4 Comments

Filed under Uncategorized

4 responses to “virt-resize progress bars

  1. Shane Falco

    I’ve said it once and I’ll say it again. Guestfish rocks. Big time.

  2. I wonder could you do fancier progress bars if UTF8πŸ˜›
    Yes I’m bored, here’s an example http://pastebin.com/iA4x8DNP

    • rich

      Actually this is what progress bars look like as they were added to guestfish, obviously using unicode:

      β—‘ 45% βŸ¦β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β•β•β•β•β•β•β•β•β•β•βŸ§ 00:16

      For virt-resize I just did something temporary because we eventually want to use an external library for it.

  3. Pingback: Best Unicode spinner and progress bar? « Richard WM Jones

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s