- Create a new hard disk
- Click on Settings in virtualbox
- Select Storage tab
- Click on Add Hard Disk icon
- Set a sufficient amount of dynamically expanding disk space
- Clone your old hard disk
- Check the location of VBoxManage and your old hard disk .vdi file [ex: in my computer i have VBoxManage at G: and old_hard_disk.vdi at C:\Users\acer\VirtualBox VMs\old_hard_disk_dir\old_hard_disk.vdi]
- Open up cmd in windows 7, go to the location of VBoxManage and type as below:
- You see something like this:
- Replace the old guest hard disk with your new hard disk (i.e. new_hard_disk.vdi)
- Go to the settings for the guest VM and choose the “Storage” options
- Select the new disk created and make it IDE Primary Slave under the Attributes column
- Select the old disk and remove it by clicking on - icon at the bottom
- Start the guest os i.e windows xp
- Resize the Guest File System
- Install partition manager tool in windows xp
- Select the newly created drive. Right click on it and select Resize Partition
- Follow on screen instructions to finish the partitioning
- Restart the guest os if required
C:\Users\acer>G:
G:\>VBoxManage clonehd "C:\Users\acer\VirtualBox VMs\old_hard_disk_dir\old_hard_disk.vdi" "C:\Users\acer\VirtualBox VMs\old_hard_disk_dir\new_hard_disk.vdi" --existing
Oracle VM VirtualBox Command Line Management Interface Version 3.2.12
(C) 2005-2010 Oracle Corporation All rights reserved.
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Clone hard disk created in format 'VDI'. UUID: ee28ab8b-8232-4c76-8c1b-184afdd1dd27


No comments:
Post a Comment