How to Insert new CD while vm is running

Discussions about using Linux guests in VirtualBox.
Post Reply
xiheasas
Posts: 2
Joined: 10. May 2011, 04:59
Primary OS: Fedora 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: linux

How to Insert new CD while vm is running

Post by xiheasas »

Hi all,

I have built a virutalbox with only command line. Then I try to install FEDORA in the VBOX vm. After installing packages from DISK #1, I was informed to insert a new CD DISK. I used VBoxManger to change the CDROM content, but it did work.

Code: Select all

VBoxHeadless --startvm linux_test &
VBoxManger storageattach linux_test --storagectl "IDE Controller" --port 1 --device 0 --type dvddrive --medium /disk2.iso
(the console hangs with no output)
Do you have any suggestions? Thank you in advance.
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: How to Insert new CD while vm is running

Post by Sasquatch »

If it's an ISO, then you have to 'unmount' the loaded ISO first. So first run this, then your command:

Code: Select all

VBoxManage storageattach linux_test --storagectl "IDE Controller" --port 1 --device 0 --type dvddrive --medium none
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.
Post Reply