Place the gparted iso file somewhere you can access it from the VM. I would recommend placing it on the Centos server that hosts the VM. I keep all my ISO files in a folder named ISOs.
I run the gnome desktop on my servers, so I use VNC to remote control the server. I would run the virt-manager gui to shut down the VM guest, connect the guest's CD to the iso file, and change the boot options to boot from the CD. Of course, you can do all this from the command line, and I'm sure you can google information of how to do it that way. With gparted, I think you can backup the VM over the network to a share. So, I would first backup the VM, then resize the VM disk with gparted and make sure it boots, then backup the VM again, create a new smaller disk for the guest, and restore the smaller backup image. From: centos-virt-boun...@centos.org [mailto:centos-virt-boun...@centos.org] On Behalf Of Poh Yong Hwang Sent: Monday, September 20, 2010 1:25 AM To: Discussion about the virtualization on CentOS Subject: Re: [CentOS-virt] How do I reduce a disk size of a particular VM? Hi, I am trying to boot that particular VM which I want to resize using gparted ISO. May I know how can I boot a VM using a ISO file? Thanks! YongSan > > On Fri, Aug 27, 2010 at 5:30 PM, Victor Padro <vpa...@gmail.com> wrote: >> >> On Fri, Aug 27, 2010 at 4:10 AM, Poh Yong Hwang <yong...@gmail.com> wrote: >> > Hi, >> > But I would like the diskspace to be release to the hardware node so >> > that i >> > can create another VM as my hardware node is running out of diskspace. I >> > presume that using Gpart only reduce the diskspace on the VM but it will >> > not >> > be release to the hardware node? >> > Thanks! >> > YongSan >> > >> > On Fri, Aug 27, 2010 at 4:58 PM, Victor Padro <vpa...@gmail.com> wrote: >> >> >> >> On Fri, Aug 27, 2010 at 3:51 AM, Poh Yong Hwang <yong...@gmail.com> >> >> wrote: >> >> > Hi, >> >> > As per subject, is there a way to reduce diskspace for a VM. I have a >> >> > VM >> >> > with 200GB but would like to reduce the diskspace to 100GB. >> >> > Please advise. >> >> > Thanks! >> >> > Yongsan >> >> > _______________________________________________ >> >> > CentOS-virt mailing list >> >> > CentOS-virt@centos.org >> >> > http://lists.centos.org/mailman/listinfo/centos-virt >> >> > >> >> > >> >> >> >> Perhaps shriking the partition using gparted inside the VM? >> >> >> >> Otherwise I can't figure out how to shrink a raw, qcow file under KVM >> >> for example... >> >> >> >> >> >> -- >> >> Linux User #452368 >> >> http://twitter.com/vpadro >> >> >> >> "Everything that irritates us about others can lead us to an >> >> understanding of ourselves" >> >> _______________________________________________ >> >> CentOS-virt mailing list >> >> CentOS-virt@centos.org >> >> http://lists.centos.org/mailman/listinfo/centos-virt >> > >> > >> > _______________________________________________ >> > CentOS-virt mailing list >> > CentOS-virt@centos.org >> > http://lists.centos.org/mailman/listinfo/centos-virt >> > >> > >> >> What are you using to virtualize those VMs? >> >> -- >> Linux User #452368 >> http://twitter.com/vpadro >> >> "Everything that irritates us about others can lead us to an >> understanding of ourselves" >> _______________________________________________ >> CentOS-virt mailing list >> CentOS-virt@centos.org >> http://lists.centos.org/mailman/listinfo/centos-virt > > > _______________________________________________ > CentOS-virt mailing list > CentOS-virt@centos.org > http://lists.centos.org/mailman/listinfo/centos-virt > > I can only think of creating a smaller qcow file, clonning using dd the contents of the oversized qcow/raw HD to that newly qcow file...although is not the best solution. Maybe someone else could bring a better solution because there's no much info on KVM just a little under Xen... :( -- Linux User #452368 http://twitter.com/vpadro "Everything that irritates us about others can lead us to an understanding of ourselves" _______________________________________________ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
_______________________________________________ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt