What is the easiest way to increase the size of a Xen Image made from an image?
What is the easiest way to increase the size of a Xen Image made from an image?
TIA |
30 seconds on google mate, http://www.vinacis.net/content/view/32/32/
I am using Xen to create Virtual Machines, but how can I resize the virtual disk image? Solution: This solution is to increase your virtual disk size: cd /var/lib/xen/images/vlinux1 #use dd to create a 1 GB file dd if=/dev/zero of=Tempfile bs=1024 count=1000000 #append this file to virtual image file (in this case is hda) cat Tmpfile >> hda resize2fs -f hda |
Quote:
|
Instead of /var/lib/xen/images/ cd to the location of your xen images.
|
Quote:
Code:
[root@xen100 xen]# resize2fs -f testsrv1.img |
All times are GMT -5. The time now is 07:38 PM. |