Re: Resizing virtual machine harddrive in RHEL 5



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



Relevant Pages

  • Re: ESX Vmware Physically connected to different segments
    ... If something like this is found, I'm optimistic that someone will provide a xen patch (if not then we watch for people taking advantage of that exploit, maybe installing KLM in guest systems, no windows guests, etc). ... host specifically. ... virtualization techniques that allow for greater use of the devices we ... While there are fun ways to attack network vlans to ...
    (Pen-Test)
  • Re: Testing Platforms
    ... I get the concept of a VM residing on a server, ... Now create a guest, which is just a matter of allocating about ... one final note on virtualization. ... management as part of a free initial consultation. ...
    (comp.databases.pick)
  • [PATCH 0/14] KVM: Kernel-based Virtual Machine (v4)
    ... The following patchset adds a driver for Intel's hardware ... virtualization extensions to the x86 architecture. ... virtual machine (a "guest") in a fully virtualized PC containing its ... one can start multiple virtual machines on a host. ...
    (Linux-Kernel)
  • [PATCH 0/13] KVM: Kernel-based Virtual Machine (v3)
    ... The following patchset adds a driver for Intel's hardware ... virtualization extensions to the x86 architecture. ... virtual machine (a "guest") in a fully virtualized PC containing its ... one can start multiple virtual machines on a host. ...
    (Linux-Kernel)
  • Re: ESX Vmware Physically connected to different segments
    ... I am not familiar with exploits at a guest domain that would effect the ... host specifically. ... virtualization techniques that allow for greater use of the devices we ... While there are fun ways to attack network vlans to ...
    (Pen-Test)