Clone only configuration settings?

This is for discussing general topics about how to use VirtualBox.
Post Reply
Liman
Posts: 1
Joined: 16. Oct 2013, 12:43

Clone only configuration settings?

Post by Liman »

I'm fiddling with automated installation processes, and I've modified the hardware settings for my guest machines somewhat.

What I often find myself wanting to is to clone (or copy) the hardware settings for a machine, but NOT its hard drive. I want 'a new machine with identical hardware, but with a blank disk'. I want to avoid copying all the drive content from the old machine, because I'm going to overwrite immediately it anyhow, and it only introduces delay and waste of disk space on the host machine.

Is there a way to accomplish what I want to do using the GUI?

Is there a way to accomplish what I want to do using the CLI (short script)?

Hints on either or both (including RTFM pointers) would be appreciated since I seem to have run out of Google foo.

Best regards,
/Lars-Johan Liman
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Clone only configuration settings?

Post by noteirak »

That feature is not available in Virtualbox directly, you'll have to rely on custom scripts.

Two ways I see doing this :
- Safer way : remove all drives from your existing VM, clone, reattach to original VM. You'll need the VM powered off for this.
- Error-prone way but effective : copy the .vbox file of the original VM, remove the storage lines, edit UUIDs around with a new unique UUID and register the newly create VM.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Post Reply