CD/DVD change while running not working in 3.1.0

This is for discussing general topics about how to use VirtualBox.
Post Reply
costan
Posts: 3
Joined: 3. Dec 2009, 00:44
Primary OS: Linux other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: WinXP Linux

CD/DVD change while running not working in 3.1.0

Post by costan »

Hello,

I just upgraded VirtualBox to 3.1.0, attracted by live migration.

I'm the process of installing the VirtualBox tools addons, but I can't switch CD/DVD contents anymore with CLI.

Former release syntax:

VBoxManage controlvm <VM name> dvdattach <name of image or UUID>

It worked like a charm since 3.1.0

Now that syntax is not reported anymore in the help, but it's still accepted if you try, BUT it doesn't work!

I've tried with the storageattach thing, but it works during VM poweron for changing the media, but it doesn't allow you to remove it.

Everything works correctly if you perform a (powered off machine) modifyvm to change the media at boot time.
Of course I think it's not acceptable to reboot the system just to switch the CDROM contents..


Hope it helps.

Ciao,
A.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: CD/DVD change while running not working in 3.1.0

Post by Sasquatch »

You probably forgot to unmount the current media first:

Code: Select all

VBoxManage storageattach <vmname> --device <number> --medium emptydrive
You might need to change emtpydrive to none and use --forceunmount if it doesn't work. After that, you can attach it:

Code: Select all

VBoxManage storageattach <vmname> --device <number> --medium filename
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
costan
Posts: 3
Joined: 3. Dec 2009, 00:44
Primary OS: Linux other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: WinXP Linux

Re: CD/DVD change while running not working in 3.1.0

Post by costan »

You're perfectly right.

I used to put "none" instead of "emptydrive".

Sorry about that.

I suggest to put a note on the manual if feasible.



Thanks again
Andrea
jona-ubf
Posts: 1
Joined: 10. Dec 2009, 16:06
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: win2003; ubuntu 9.04

Re: CD/DVD change while running not working in 3.1.0

Post by jona-ubf »

Hello
Thanks for suggested solution.
But what about VBoxManage controlvm <name> dvdattach, will it work again?
Post Reply