Want to duplicate the VM
-
HuaMin
- Posts: 239
- Joined: 17. Jan 2012, 07:01
- Primary OS: MS Windows XP
- VBox Version: OSE other
- Guest OSses: Oracle linux
Want to duplicate the VM
Hi,
I want to duplicate one existing VM running Win 08 server. I then have copied its vdi file from WIN08SERVER.vdi to WIN08SERVER_b.vdi. But when I created one new VM using this WIN08SERVER_b.vdi, I got this error. Any advice?
http://dl.dropbox.com/u/40211031/t258.png
I want to duplicate one existing VM running Win 08 server. I then have copied its vdi file from WIN08SERVER.vdi to WIN08SERVER_b.vdi. But when I created one new VM using this WIN08SERVER_b.vdi, I got this error. Any advice?
http://dl.dropbox.com/u/40211031/t258.png
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Want to duplicate the VM
I would use clone if I were doing this. (full not linked)
-
HuaMin
- Posts: 239
- Joined: 17. Jan 2012, 07:01
- Primary OS: MS Windows XP
- VBox Version: OSE other
- Guest OSses: Oracle linux
Re: Want to duplicate the VM
How to clone the VM together with its .vdi file? Thanks.
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Want to duplicate the VM
In the VirtualBox main manager (with the guest shut down and not saved state) right click on the guest and then click on clone.
Just remember to not select linked clone.
Or use the command line (VBoxManage) described in your VirtualBox users manual.
Just remember to not select linked clone.
Or use the command line (VBoxManage) described in your VirtualBox users manual.
-
HuaMin
- Posts: 239
- Joined: 17. Jan 2012, 07:01
- Primary OS: MS Windows XP
- VBox Version: OSE other
- Guest OSses: Oracle linux
Re: Want to duplicate the VM
Many thanks Perry. It is OK for this.
BTW, how about the way that I expect to use the same VMs in another Windows host machine? Is it OK that I copy the .vdi files of them to other Windows host?
BTW, how about the way that I expect to use the same VMs in another Windows host machine? Is it OK that I copy the .vdi files of them to other Windows host?
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Want to duplicate the VM
It's a lot easier to copy the folder that has all of the guests files, then use the add feature of VirtualBox.
-
HuaMin
- Posts: 239
- Joined: 17. Jan 2012, 07:01
- Primary OS: MS Windows XP
- VBox Version: OSE other
- Guest OSses: Oracle linux
Re: Want to duplicate the VM
You mean to copy all of the relevant files in the folder and then use 'Add VM' in other Windows host?
Last edited by HuaMin on 24. Nov 2012, 16:25, edited 1 time in total.
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Want to duplicate the VM
I mean that you copy the VM folder with supporting control file and snapshots if any and not just the VDI file. Then yes " 'Add VM' in other Windows host"
-
HuaMin
- Posts: 239
- Joined: 17. Jan 2012, 07:01
- Primary OS: MS Windows XP
- VBox Version: OSE other
- Guest OSses: Oracle linux
Re: Want to duplicate the VM
Thanks a lot. BTW, what do you think to that the cloning does take very long time (10 hours) for the VM of 250 Gb which is running Win 08 server inside?
-
mpack
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Mostly XP
Re: Want to duplicate the VM
It doesn't matter what the VM has inside since the VM (I assume) is not running.
Also, did cloning really take 10 hours, or was that just the estimate when you left it? And what was the actual size of the hard disk - unless the VM uses fixed size disks then the max size (which I guess is the 250GB figure) is not very useful for time calculations.
Also, did cloning really take 10 hours, or was that just the estimate when you left it? And what was the actual size of the hard disk - unless the VM uses fixed size disks then the max size (which I guess is the 250GB figure) is not very useful for time calculations.
-
HuaMin
- Posts: 239
- Joined: 17. Jan 2012, 07:01
- Primary OS: MS Windows XP
- VBox Version: OSE other
- Guest OSses: Oracle linux
Re: Want to duplicate the VM
Yes, it really took at least 8/9 hours to finish the cloning of one VM with the size of 250 GB and is having Win 08 server inside. Is it really too long time? Is it abnormal or acceptable?
-
mpack
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Mostly XP
Re: Want to duplicate the VM
As I said above, time calculations are not possible unless I know the actual disk size, rather than the max size. I would also need to know the nature of the disk medium you are copying data from and to (e.g. reads and writes to USB and network drives is usually slower, if it's both read and write then it may be especially slow). If I can't calculate expected time I can't say whether your time is unexpected.
-
HuaMin
- Posts: 239
- Joined: 17. Jan 2012, 07:01
- Primary OS: MS Windows XP
- VBox Version: OSE other
- Guest OSses: Oracle linux
Re: Want to duplicate the VM
Thanks. Both From and To places are in the same external WD HD.
-
mpack
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Mostly XP
Re: Want to duplicate the VM
If "external" means USB then you can expect it to take a long time.