experchange > virtualpc

d d (03-24-09, 10:32 PM)
Config: VPC2007 running on an XP/SP3 host.

I've got a VHD with Debian Linux 5.0 on it and it's running out of disk
space. It complained (within Linux) that I didn't have enough space for
an operation. I've made copies of the VHD and tried changing it with the
virtual disk wizard but all I can do is switch between it being a fixed
size disk and a dynamic sized drive. It was originally a dynamic sized
drive but I imagine part of the VPC mechanism for auto-expanding when
needed is based on Windows rather than Linux. So it's probably not auto
expanding like it should. So I thought, no problem, I'll convert it to a
fixed size using the Virtual Disk wizard. I could do that, but at no
time was I asked how big I wanted the fixed size disk to be. It just
converted it and left it the same size.

help...
jorgensen (03-24-09, 10:54 PM)

you also need to expand the partition inside Linux.
but why not create a second harddisk and move data etc. to that drive.
Steve Jain [MVP] (03-25-09, 12:25 AM)
On Tue, 24 Mar 2009 22:32:57 +0200, d d <go_on_try_and_sp>
wrote:

[..]
>time was I asked how big I wanted the fixed size disk to be. It just
>converted it and left it the same size.
>help...


A dynamically expanding disk only expands to the limit you set when
you created it.
d d (03-25-09, 12:26 AM)
jorgensen wrote:
>
> you also need to expand the partition inside Linux.
> but why not create a second harddisk and move data etc. to that drive.


Thanks, I looked into that and it said it only works on VHDs that have
Win2K, XP or Vista installed on them. As for creating a second hard
disk, are you talking about a brand new one? Or a second disk that can
be linked to the original VHD? I'm a total noob inside Linux, so
anything (no matter how simple it seems to a Linux user) is totally
weird to me.

I think I might need to get my employers MIS department to make me a
brand new VHD.
Steve Jain [MVP] (03-25-09, 12:33 AM)
On Wed, 25 Mar 2009 00:26:43 +0200, d d <go_on_try_and_sp>
wrote:

>jorgensen wrote:
>Thanks, I looked into that and it said it only works on VHDs that have
>Win2K, XP or Vista installed on them. As for creating a second hard
>disk, are you talking about a brand new one? Or a second disk that can
>be linked to the original VHD? I'm a total noob inside Linux, so
>anything (no matter how simple it seems to a Linux user) is totally
>weird to me.
>I think I might need to get my employers MIS department to make me a
>brand new VHD.


You could shut down the VM, then create a 2nd (new) VHD to use as a
secondary disk for your data, files, etc.

Ultimately, it might be easier to just start over with a new larger
hard drive. It really depends on how you want to spend your time,
messing around expanding disks, or just a reinstall of the OS and
files.
Bo Berglund (03-25-09, 12:39 AM)
On Tue, 24 Mar 2009 22:32:57 +0200, d d <go_on_try_and_sp>
wrote:

[..]
>time was I asked how big I wanted the fixed size disk to be. It just
>converted it and left it the same size.
>help...


You will need a disk utility inside Linux to handle the disk space
problem, after this simple proposal (at step 3):

1) Using the disk wizard, create a new dynamically expanding disk and
(*IMPORTANT*) set it to a really *big* size! It won't be big on the
host system at all, but now it can expand to hold all that data as
time goes by.

2) With the Linux guest shut down completely go into the Settings for
it in the VPC console and activate hard disk #2 and point it to the
new virtual disk file you made in step 1.

3) Now start up Linux again and inside Linux partition and format the
new disk. Then *move* some considerable chunks of data off the
existing drives onto the new drive, still using the Linux tools.
In the future use the new drive for all new data and you will be fine.

I have been deliberately vague concerning the Linux disk tools to use
since I don't know anything about Debian 5, but you can find out
yourself easily enough...
d d (03-26-09, 01:56 PM)
Steve Jain [MVP] wrote:
> On Wed, 25 Mar 2009 00:26:43 +0200, d d <go_on_try_and_sp>
> wrote:
> You could shut down the VM, then create a 2nd (new) VHD to use as a
> secondary disk for your data, files, etc.
> Ultimately, it might be easier to just start over with a new larger
> hard drive. It really depends on how you want to spend your time,
> messing around expanding disks, or just a reinstall of the OS and
> files.


Thanks for the replies all. So there's no really easy way to do it. I've
asked my MIS department to build me a brand new VM.
C.Joseph Drayton (05-07-09, 04:09 AM)
On 3/24/2009 14:32, d d wrote:
[..]
> time was I asked how big I wanted the fixed size disk to be. It just
> converted it and left it the same size.
> help...


I did this recently for Ubuntu Feisty Fawn. What I did since
my Linux skills are limited, is to create a larger fixed
size hard disk VHD. I then booted the UBCD4Win CD ISO from
within the VM. I then had it clone the old disk to the new
disk. I then used the partition manager in UBCD4Win to
enlarge the partitions. I then booted the new VHD. When it
booted, I got a text (terminal screen) that reported an
error and it gave some default values. Since I didn't know
what the values actually meant, I simply accepted them.
Ubuntu churned for about 15 - 20 minutes. It then said
shutting down and rebooted itself. It went into the gNome
GUI log-in screen and I have had no problem with it since.

Sincerely,
C.Joseph Drayton, Ph.D. AS&T

CSD Computer Services

Web site:
E-mail: cjoseph
Similar Threads