If the virtual hard drive exists as a literal file (i.e. in /var/lib/xen/images), then you simply shutdown the machine, add bytes to that file using "dd", and restart it. You'll then have to resize the partition inside the VM. Make sure you backup the VM image first, just in case! Norman On 1/16/08, Geofrey Rainey <Geofrey.Rainey@xxxxxxxxxx> wrote: > Presumably you would have something like the following in your xen > configuration file for this host: > > "Disk = [ 'phy:/dev/sda2, disk_name, w' ]" > > I think you would need to build your guest system with the partition > disk_name as a logical volume, ie disk_name > Being a logical volume which one could then resize within the guest > system. I too have thought about > What you are experiencing and to get around it I have had to create a > new partition within the host > and present it to the guest like so: > > "Disk = [ 'phy:/dev/sda2, disk_name1, w', 'phy:/dev/sda3, disk_name2, w' > ]" > > However, perhaps all this can be averted if the disk presented to the > guest is created as a logical > Volume as described above during the guest installation procedure. > > Regards, > Geofrey. > > -----Original Message----- > From: redhat-list-bounces@xxxxxxxxxx > [mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of Ryan Golhar > Sent: Thursday, 17 January 2008 1:12 p.m. > To: General Red Hat Linux discussion list > Subject: Resizing virtual machine harddrive in RHEL 5 > > Hi, > > I'm running a virtual machine using RHEL 5 virtualization. The virtual > machine has a hard drive image create has a file image on the host > machine. > > Is it possible to increase the size of the hard drive or must I create > another disk image and mount it as a second hard drive? I would prefer > being able to resize the hard drive to keep the machine as one file but > not sure how I would do this. > > Ryan > > -- > redhat-list mailing list > unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe > https://www.redhat.com/mailman/listinfo/redhat-list > ========================================================== > For more information on the Television New Zealand Group, visit us > online at tvnz.co.nz > ========================================================== > CAUTION: This e-mail and any attachment(s) contain information that > is intended to be read only by the named recipient(s). This information > is not to be used or stored by any other person and/or organisation. > > > -- > redhat-list mailing list > unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe > https://www.redhat.com/mailman/listinfo/redhat-list > -- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list