After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 726753 - cannot change cdrom when in Live mode
cannot change cdrom when in Live mode
Status: RESOLVED FIXED
Product: gnome-boxes
Classification: Applications
Component: general
unspecified
Other Linux
: Normal normal
: 3.22
Assigned To: GNOME Boxes maintainer(s)
GNOME Boxes maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2014-03-19 23:43 UTC by Christian Hergert
Modified: 2016-03-31 13:22 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Christian Hergert 2014-03-19 23:43:45 UTC
Some operating systems require changing the cdrom during installation. If the installation is happening while in "Live" mode, you cannot change the installation medium with boxes.

Workaround:

Open up virt-manager, connect to the qemu:///session connection, and change the cdrom from virt-manager VM information page.

If you are looking for an example OS to test with, try CentOS 5.
Comment 1 Zeeshan Ali 2014-03-20 13:58:18 UTC
This conflicts with bug#690779. :(
Comment 2 Christian Hergert 2014-03-20 16:42:10 UTC
then perhaps the bug is determining if live mode should be used?
Comment 3 Christophe Fergeau 2014-03-20 16:51:02 UTC
Live media/express installations should prevent ejection of the CD, but unknown (to libosinfo) medias, which is probably is the case here, should not prevent ejection of the CD as we don't know what they are.
Comment 4 Zeeshan Ali 2014-03-20 17:18:46 UTC
(In reply to comment #3)
> Live media/express installations should prevent ejection of the CD,

I don't completely agree about live case since nothing prevents user from launching an installation from live session, which may require additional CDs. The fact that we don't know any OS that does that, doesn't mean there isn't any or wont be any in future since its easily implementable.

When the live machine is not running, I think there is no usecase for allowing to eject the cd though.

So I'll special case express installation and non-running live machines here.
Comment 5 Christophe Fergeau 2014-03-20 20:48:07 UTC
(In reply to comment #4)
> I don't completely agree about live case since nothing prevents user from
> launching an installation from live session, which may require additional CDs.

Once you started a live session, you must not remove the CD as the running system will read data from the CD at any time (when starting new applications, ...) 
The CD contains a compressed filesystem whose data is read from CD to memory on demand.
Comment 6 Zeeshan Ali 2014-03-21 00:15:56 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > I don't completely agree about live case since nothing prevents user from
> > launching an installation from live session, which may require additional CDs.
> 
> Once you started a live session, you must not remove the CD as the running
> system will read data from the CD at any time (when starting new applications,
> ...) 
> The CD contains a compressed filesystem whose data is read from CD to memory on
> demand.

AFAIK that is just what current implementations do, doesn't mean they can't do it differently if they need to.
Comment 7 Christophe Fergeau 2014-03-21 10:20:11 UTC
(In reply to comment #6)
> 
> AFAIK that is just what current implementations do, doesn't mean they can't do
> it differently if they need to.

This is how it has been done in the last 10 years, I guess we can design things around the current behaviour, and revisit when things change and there are multi-cd live installers.
Comment 8 Zeeshan Ali 2014-03-21 15:12:07 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > 
> > AFAIK that is just what current implementations do, doesn't mean they can't do
> > it differently if they need to.
> 
> This is how it has been done in the last 10 years, I guess we can design things
> around the current behaviour, and revisit when things change and there are
> multi-cd live installers.

If you are certain that is the case for all OSes, lets do it how you recommend.
Comment 9 Zeeshan Ali 2014-03-21 18:13:05 UTC
Pushed a patch to git master (branched gnome-3-12 first so there is no code freeze breakage involved) with this log entry:

libvirt-machine-props: Be less strict about ejection of CDROM
    
Instead of not allowing ejection of installer media during all live and
installations sessions, let's only disallow it for the cases where we are
very sure user will not need to eject the media: live media and express
installation.