1. Shutdown the instance
2. Get current image information
# virt-filesystems --long --parts --blkdevs -h -a windows2003.img
Name Type MBR Size Parent
/dev/sda1 partition 07 4.0G /dev/sda
/dev/sda2 partition 0f 1.0K /dev/sda
/dev/sda5 partition 07 6.0G /dev/sda
/dev/sda device - 10G -
3. virt-rezise
# qemu-img create -f raw new.img 25G
# virt-resize --expand /dev/sda1 old.img new.img
posted on 2013-12-18 12:22
Derek.Guo 閱讀(436)
評(píng)論(0) 編輯 收藏 所屬分類(lèi):
Linux/Unix