How do I increase the hard disk size of the virtual machine?

1

I have run out of space on my WinXP virtual machine, which I only gave 10 GB space for when I created it. Is there an easy way to increase it to, say, 20 GB? I can’t see any obvious option in VirtualBox settings.

The suggestion below gives this error

wim@wim-ubuntu:/media/data/winxp_vm$ VBoxManage modifyhd wim.vdi --resize 20000 VBoxManage: error: Cannot register the hard disk '/media/data/winxp_vm/wim.vdi' {46284957-2c09-4e70-8a49-bfbe0f7f681d} because a hard disk '/home/wim/VirtualBox VMs/winxp_vm/wim.vdi' with UUID {46284957-2c09-4e70-8a49-bfbe0f7f681d} already exists VBoxManage: error: Details: code NS_ERROR_INVALID_ARG (0x80070057), component VirtualBox, interface IVirtualBox, callee nsISupports Context: "OpenMedium(Bstr(pszFilenameOrUuid).raw(), enmDevType, AccessMode_ReadWrite, fForceNewUuidOnOpen, pMedium.asOutParam())" at line 210 of file VBoxManageDisk.cpp

Removing the .vdi from VirtualBox before calling VBoxManage command, then adding it back in,...

0 0
2

This page describes how to increase the size of a VM's hard drive. This is useful if additional space is needed to install large applications.

Create a Full Copy of the Virtual Disk

Determine the VMware host the VM is on Shutdown the VM Log in to the VM host via SSH Navigate to the VM's working directory (under the VM Working Directory Path configured in the VM profile)

You should see several files in the directory:

/vmfs/volumes/19873c05-fcd3d912/vclv99-77_1846-v14 # ls -l -rw-rw---- 1 root root 8684 Aug 13 16:34 nvram -rw------- 1 root root 4294967296 Aug 13 16:32 vclv99-77_1846-v14-6197888b.vswp -rw-rw---- 1 root root 18926 Aug 13 16:32 vclv99-77_1846-v14-Snapshot1.vmsn -rw-rw---- 1 root root 498 Aug 13 16:32 vclv99-77_1846-v14.vmsd --wxrw--wx 1 root root 3464 Aug 13 16:37 vclv99-77_1846-v14.vmx --w-rw--w- 1 root root 273 Aug 13 16:32 vclv99-77_1846-v14.vmxf -rw-r--r-- 1 root root 137538 Aug...
0 0
3

I finally succeeded in increasing the size of my Windows 7 virtual hard drive. It was a multi-step process.

First, I used the Mac's Time Machine backup system to restore the files in my VirtualBox folder to a time and state before I attempted to increase my virtual hard drive size. This was also a time before I deleted one of two snapshots. The goal was to be able to delete all snapshots or merge them into the current state. I believe you can't extend the size of your virtual disk with snapshots around.

Using Time Machine (or back up of your choice) I restored all snapshots, vdi, and xml files to the earlier time.

After these files were restored, I used the VBoxMange GUI to delete the newest of the snapshots (do not do this in the Mac Finder!). Then, from the VBox Manage GUI, I restored the Windows VM to the first, oldest, snapshot. Thus, the new "current state" became that of the first snapshot, which is what I wanted. Thus, no more "snapshots" - only a...

0 0
4

I had a nice little virtual machine running on a VMWare esxi cluster. The filesystem was getting a bit full so I though I would take some notes as I went through the steps to grow the filesystem from the VMWare datastore all the way through volume group extension to the filesystem resizing. Some of the tasks assume that your filesystem is built on Linux volume groups. This article will step you through what you need to know to Grow an ext4 Filesystem on a VMWare Esxi Virtual Machine.

Caution! Caution!

Because you are working with disk storage at this point, and could damage what is stored on your filesystems, you need to be sure to read through these instructions and perhaps others to be sure that you understand the steps that you are taking and how it relates to the data stored on the disk storage.

Increase the Size of Your Virtual Machine’s Hard Disk

Using vCenter Web or Windows client, edit the virtual machine and resize the Hard disk or add a...

0 0
5

Launch Oracle VM VirtualBox. Right-click the virtual machine attached to the virtual hard drive that you want to expand, and select "Settings."

Click to select the "Storage" heading on the left side of the menu.

Click the icon that looks like a spindle of discs with a green plus sign next to "IDE Controller." When you over the mouse pointer over the correct icon, VirtualBox displays the words "Add Hard Disk."

Click the "Create New Disk" button.

Select the "VDI (VirtualBox Disk Image" radio button and click "Next."

Click the "Dynamically Allocated" radio button and then click "Next."

Click the folder button in the upper-right corner of the window and select the location for the new virtual hard drive image. The location should be the same as that of the virtual machine's current virtual hard drive.

Drag the slider at the bottom of the window to select the desired size of the new virtual hard drive, and then click...

0 0
6

Preface

First, let me clarify that this article is based on Hyper-V 2.0 (Windows Server 2008), this might not apply to Hyper-V 3.0 (Windows Server 2012). For Windows Server 2012 (R2), please visit another post.

Why need to increase virtual disk size in Hyper-V 2008?

Have you ever troubled with the problem of “out of Disk Space on Drive C” of a Virtual Machine Running Windows Server 2008 (R2)? If yes, then this article may solve your problem.

Firstly we will help your Hyper-V increase virtual disk size, so at the hardware level – the VM’s .vmdk file. Once this is completed, we will get into the virtual machine and make the necessary changes through the operating system GUI in order to take advantage of the additional space that has been provided by the hard disk being extended.

Put simply, there are two parts. The first one is making the VHD bigger. The second one is extending the system partition to use all the new space. Thus, your problem...

0 0
7
23 Dec 2013 by Nirmal Sharma 3 Hyper-V Articles

Starting with Windows Server 2012 R2, it is possible toВ re-sizeВ a Virtual Hard Disk for a running Virtual Machine on Hyper-V! It was not possible to do so before for an online Virtual Machine running on Windows Server 2012 and earlier Hyper-V versions.

Let’s have a look at some of the benefits this feature offers and requirements before you dive in and use it.

Benefits

The re-sizing feature allows expanding or shrinking a Virtual Machine hard disk while the Virtual Machine is running. Storage administrators can avoid downtime to perform virtual hard disk maintenance tasks and there is no impact to end users. Users can still access Virtual Machine and its volumes. This feature reduces the maintenance costs associated with downtime of critical Virtual Machines.

There is also a Resize-VirtualDisk PowerShell cmdlet available which can be used to script the re size operation on multiple virtual hard disks...

0 0
8

In this post we will cover how to increase disk space for a VMware virtual machine that is using a Linux native partition rather than logical volume manager (LVM). Firstly we will increase the size of the virtual disk on the virtual machine at the hardware level and then once this is complete we will boot into a GParted live CD and perform the changes required to make use of the additional disk space so that the operating system is able to use it.

As there are a number of different ways to increase disk space I have also posted some different methods here:

Important Notes: During the time that the GParted ISO is mounted you will be booted into this live CD rather than your normal operating system, basically meaning that during this process there will be down time from normal server operations.

Be very careful when following this article as this process has the potential to cause a lot of damage to your data. If you are working with virtual machines make sure...

0 0
9

I had the same problem where I had moved a disk, and replaced the original with a symlink. This works OK afterwards, but you run into problems with the 'modifyhd' command, as that apparently canonicalizes the path to the vdi-file when working with it. This makes it looks like you're trying to add a new disk with the same UUID but on a different path - or something like that.

There was two problems:

The disk had to be removed from the VM that used it, but then also "from the VirtualBox list of hdds". This was fixed with 'closemedium' command, which removes it from that list.

The disk to be resized was a "fixed disk" instead of "dynamic", and only dynamic disks can be resized. That was fixed with a 'clone' command (the clone is dynamic), and then resize the resulting disk.

This is my log for how it was done. Do notice that I am not at any point running as root, except when I afterwards do the resize of the partition and filesystem.

### REMOVE THE...
0 0
10

This post will cover how to increase the disk space for a VMware virtual machine running Linux that is using logical volume manager (LVM). Firstly we will be increasing the size of the actual disk on the VMware virtual machine, so at the hardware level – this is the VM’s .vmdk file. Once this is complete we will get into the virtual machine and make the necessary changes through the operating system in order to take advantage of the additional space that has been provided by the hard drive being extended. This will involve creating a new partition with the new space, expanding the volume group and logical group, then finally resizing the file system.

As there are a number of different ways to increase disk space I have also posted some different methods here:

Update 18/04/2015: I have created a video guide of this post in CentOS 7 shown below.

Important Note: Be very careful when working with the commands in this article as they have the potential to cause a...

0 0
11

When you first create a virtual machine in your Virtualbox, it will always prompt you to create a new virtual hard disk. While creating the hard disk, most people will opt for the default storage space (20GB). However, if you are using it as frequent as me, you will find that the 20GB of storage space get filled up very quickly. If you are looking to increase the virtual hard disk size, here is how you can do it.

If you are using a Linux host, open the terminal. For WIndows, open the command prompt. Type the following:

VBoxManage modifyhd /path/to/vdi-file --resize x

The “x” in the command is the amount of space (in megabyte) that you want to resize to. For example, if you want to resize from 20GB to 30GB, the command is:

VBoxManage modifyhd windows7.vdi --resize 30000

Press Enter. You should see the progress bar. When it reaches 100%, the resizing process is completed.

The next step is to get the respective OS to recognize the increase in storage...

0 0
12

I‘ve Windows Vista installed as a guest under Ubuntu Linux using VMWARE Workstation 6.0. This is done for testing purpose and browsing a few site that only works with Internet Explorer. Since I only use it for testing I made 16GB for Vista and 5GB for CentOS and 5GB in size for FreeBSD guest operating systems. However, after some time I realized I’m running out of disk space under both CentOS and Vista. Adding a second hard drive under CentOS solved my problem as LVM was already in use. Unfortunately, I needed to double 32GB space without creating a new D: drive under Windows Vista. Here is a simple procedure to increase your Virtual machine’s disk capacity by resizing vmware vmdk file.

Required Tools

VMWare Product : Working Virtual machine and Vmware Workstation (it will work with other vmware product such as GSX Server and VMware Server). GParted LiveCD : Third-party utility to expand the size of a virtual disk.

Step # 1: Shutdown The Guest Operating...

0 0
13

Symptoms

You’re running out of free space on your virtual machine, and you want to increase the size of the virtual hard disk.

Cause

Even if you have an expanding virtual hard disk, it won’t expand above the limit set in virtual hard disk configuration. To allow further expansion, you must increase the size manually.

Resolution

Warning! We strongly recommend that you check your virtual machine's hard disk for errors and back up your virtual machine before following the steps below.

Note: This article does not apply to Boot Camp virtual machines, where the primary partition size cannot be increased.

To increase virtual hard disk size, do the following:

Start Parallels Desktop, but do not start your virtual machine. Shut it down if it is running.

Right-click on the Parallels Desktop icon in the Dock, then select Control Center (Virtual Machines list in older versions).

Right-click on your virtual...

0 0
14

I've recently had the need to increase my VirtualBox Disk size, and I thought it would be useful for others to share my experience and provide a tutorial of how to increase your VirtualBox Hard Drive size; this way you spend less time searching around.

Having migrated from my Windows Setup to a brand new machine running Ubuntu, I've still needed to run some Windows Applications. Primarily Internet Explorer for website compatibility testing and run other applicaitons that are not supported on Linux such as Photoshop. For this reason I installed a copy of VirtualBox and popped in my previous Windows7 Disk for installation.

As is common practice I tried to put this the lowest size possible so it does not consume much of my SSD space - and I left the setting as recommended with 25GB. However as time went by I installed some apps and saved some stuff I soon noticed that this was hardly enough, so I needed to increase the size of the drive - as you probably want to...

0 0
15

Background

The geekzilla team have been using VMWare for over a year now for desktop virtualisation . There are loads of benefits of virtualisation , but the most obvious one for me is increased stability.

For years I had a single machine with every tool under the sun installed, and stability was a real issue. Today I have a basic Windows Vista host, with e-mail, office and web browsing capability and VMWare that I use to run specific virtual machines for different tasks.

Problem

Everything has been great with my development Virtual Machine. The main hard disk was sized to 10Gb, with 2Gb free. But when I needed to install Visual Studio 2005 SP1 and SQL Server 2005 SP2 I ran out of disk space. I tried to increase the size of the disk using VMware's diskmanager but ran into a number of difficulties along the way.

Solution

Okay first thing to do is to check the VMDK (virtual machine disk) integrity. I chose to run checkdisk within my...

0 0