Re: How do I reduce a disk size of a particular VM?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Thanks. Yes I am also using gnome and using VNC to access it. But I could not find a simple way to connect the guest's CD to the ISO file. The option under boot option is only either harddisk, CD or PXE. So how can I connect the guest CD to the ISO file?

Thanks!

YongSan

On Mon, Sep 20, 2010 at 7:18 PM, compdoc <compdoc@xxxxxxxxxxxx> wrote:

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-bounces@xxxxxxxxxx [mailto:centos-virt-bounces@xxxxxxxxxx] On Behalf Of Poh Yong Hwang
Sent: Monday, September 20, 2010 1:25 AM
To: Discussion about the virtualization on CentOS
Subject: Re: 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 <vpadro@xxxxxxxxx> wrote:
>>
>> On Fri, Aug 27, 2010 at 4:10 AM, Poh Yong Hwang <yongsan@xxxxxxxxx> 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 <vpadro@xxxxxxxxx> wrote:
>> >>
>> >> On Fri, Aug 27, 2010 at 3:51 AM, Poh Yong Hwang <yongsan@xxxxxxxxx>
>> >> 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@xxxxxxxxxx
>> >> > 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@xxxxxxxxxx
>> >> http://lists.centos.org/mailman/listinfo/centos-virt
>> >
>> >
>> > _______________________________________________
>> > CentOS-virt mailing list
>> > CentOS-virt@xxxxxxxxxx
>> > 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@xxxxxxxxxx
>> http://lists.centos.org/mailman/listinfo/centos-virt
>
>
> _______________________________________________
> CentOS-virt mailing list
> CentOS-virt@xxxxxxxxxx
> 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@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos-virt

 


_______________________________________________
CentOS-virt mailing list
CentOS-virt@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos-virt


_______________________________________________
CentOS-virt mailing list
CentOS-virt@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos-virt

[Index of Archives]     [CentOS Users]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [X.org]     [Xfree86]     [Linux USB]

  Powered by Linux