Registering a VM with the same name as an existing one?

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
bruce.desertrat
Posts: 18
Joined: 9. Nov 2011, 01:26
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: windows linux

Registering a VM with the same name as an existing one?

Post by bruce.desertrat »

I have vm files (.vdi and .vbox files) with the same name but different uuid, and different directory as an existing one on my system. Can I register it without a problem? I"m trying to troubleshoot this problem <viewtopic.php?f=8&t=60849> and moved the VM to a known-working system.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Registering a VM with the same name as an existing one?

Post by mpack »

I don't know for sure, never having tried it. I don't think it would work, but in any case it would be a bad idea, since the VM name is an important identifier, e.g. when using VBoxManage. I know for sure that conflicting media names are a no-no.
bruce.desertrat
Posts: 18
Joined: 9. Nov 2011, 01:26
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: windows linux

Re: Registering a VM with the same name as an existing one?

Post by bruce.desertrat »

will changing the .vdi, .vbox name and editing the .vbox xml appropriately change the name or is it encoded in the .vdi somehow?
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Registering a VM with the same name as an existing one?

Post by mpack »

No, the VM name is not embedded within the VDI. The VM name is recorded in the .vbox file, and of course in the filenames.

When you say that these "files" have a different UUID, I assume you know that each media file plus the .vbox file has an embedded UUID, and none may match anything already registered.
bruce.desertrat
Posts: 18
Joined: 9. Nov 2011, 01:26
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: windows linux

Re: Registering a VM with the same name as an existing one?

Post by bruce.desertrat »

Well, it worked. I renamed the .vdi file, the .vbox file, and changed the name of the VM and attached hd in the .vbox xml.

Nice to know, in a pinch.
Post Reply