Renaming a vdi file
Renaming a vdi file
I saw a thread about this in the Unix form, but I couldn't quite figure it out . I apologize for being a bit anal, but after decades of system software development I've grown very picky about having my environment "clean". My win10 VM is actually the result of my doing a win10 upgrade of my win7/pro system [yes, I bought a retail copy of win7/pro precisely for the VM!] So right now, I have a machine named "win10" [of course
] but... its vdi file is "win7.vdi' and that's driving me a bit nuts. I'd love to be able to rename the vdi file "win10.vdi" but I'm not sure how to do that. I vaguely got the idea [from the Unix thread] that there was some way to "disconnect" a vbox file from its vdi file and then connect it to a new vdi file, but I really don't have much of a clue and I didn't see a way to do that from the Windows Virtualbox manager. Thanks!!
-
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: Renaming a vdi file
If the VM doesn't use snapshots then it's quite easy. And no, AFAIK the procedure is exactly the same on Windows and Linux hosts (I'm not sure we have an actual Unix as a supported host).
- Go to File|Virtual Media Manager (in the GUI), select Release and then Remove. The first command detaches the VDI from all disk controllers (in all VMs). The second command causes VirtualBox to forget the registration of this media.
- Shut down VirtualBox, go rename your VDI.
- Restart the manager, go to the settings for the individual VM, add a new hard disk attachment to the SATA controller. Choose existing VDI, select your VDI.
-
socratis
- Site Moderator
- Posts: 27329
- Joined: 22. Oct 2010, 11:03
- Primary OS: Mac OS X other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Win(*>98), Linux*, OSX>10.5
- Location: Greece
Re: Renaming a vdi file
Actually, it's much easier, including if you're using snapshots...
Go to the Virtual Media Manager, select the VDI in question. Make sure that "Properties" in the toolbar is enabled, and that you've selected the "Attributes" tab on the bottom. The "Location" control is editable, so you can just type in the new name, hit "Apply" and be all set.
NOTE: There's a "glitch" in VirtualBox Manager » Details pane, which is *not* refreshed to show the renaming. Quitting and restarting the Manager, properly reflects the VDI name change.
Go to the Virtual Media Manager, select the VDI in question. Make sure that "Properties" in the toolbar is enabled, and that you've selected the "Attributes" tab on the bottom. The "Location" control is editable, so you can just type in the new name, hit "Apply" and be all set.
NOTE: There's a "glitch" in VirtualBox Manager » Details pane, which is *not* refreshed to show the renaming. Quitting and restarting the Manager, properly reflects the VDI name change.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Re: Renaming a vdi file
Just wanted to confirm 2 things:
1. The above solution from socratis does work.
2. The glitch in the Details pane must have been fixed because it does now update to reflect the new VDI name once you hit Apply.
1. The above solution from socratis does work.
2. The glitch in the Details pane must have been fixed because it does now update to reflect the new VDI name once you hit Apply.
-
socratis
- Site Moderator
- Posts: 27329
- Joined: 22. Oct 2010, 11:03
- Primary OS: Mac OS X other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Win(*>98), Linux*, OSX>10.5
- Location: Greece
Re: Renaming a vdi file
Cool. Unfortunately I can't mark the thread as [Solved] because the OP hasn't responded yet...Punt wrote:1. The above solution from socratis does work.
Oh great, must have been fixed with 6.0.12. Thanks for letting us know about it!Punt wrote:2. The glitch in the Details pane must have been fixed because it does now update to reflect the new VDI name once you hit Apply.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.