[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Increase the hard disk size of a linux VM

Posted on 2014-01-09
2
Medium Priority
?
380 Views
Last Modified: 2014-01-23
Dear Experts,
 Need to increase the hard drive size of a linux virtual machine. Please advice on the best practice. Thank you.
0
Comment
Question by:jramprakash
2 Comments
 
LVL 88

Accepted Solution

by:
rindi earned 1500 total points
ID: 39767731
First it depends on what hypervisor you are using. Most of them allow you to edit the settings of your VM (when shutdown), and for example allocate more space to the virtual disk. Once that is done, boot the VM using a LiveCD like GParted, or some other partitioning utility and use that to increase the size of the partition(s) to fill up the newly gained space:

http://distrowatch.com/table.php?distribution=gparted

After that you can boot back into your Linux OS and the new space should be available.

It can also depends a little on your Linux distro and how it was installed. For example if it is setup with LVM, you should be able to increase the size while the OS is running (but I don't use LVM and don't have any experience with it. You would have to search online yourself for more details on that).

Another method is to use VMware's vCenter Converter Standalone, with which you can move the old VM to a newer, larger one:

https://my.vmware.com/web/vmware/info/slug/infrastructure_operations_management/vmware_vcenter_converter_standalone/5_5
0
 

Author Closing Comment

by:jramprakash
ID: 39805513
Thank you Rindy.
0

Featured Post

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I will show you HOW TO: Suppress Configuration Issues and Warnings Alert displayed in Summary status for ESXi 6.5 after enabling SSH or ESXi Shell.
It’s time for spooky stories and consuming way too much sugar, including the many treats we’ve whipped for you in the world of tech. Check it out!
Teach the user how to edit .vmx files to add advanced configuration options Open vSphere Web Client: Edit Settings for a VM: Choose VM Options -> Advanced: Add Configuration Parameters:
This video shows you how easy it is to boot from ISO images for virtual machines with the ISO images stored on a local datastore on the ESXi host.
Suggested Courses

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question