Why does KVM virtual machine need continued access to OS install media?

I just started to play with virtualisation, and have successfully installed Ubuntu on a virtual machine, from YAST, using an iso image as the install medium.

After starting and stopping the guest a couple of times all seemed OK, so I deleted the installation iso file.
However when I next attempted to start the Ubuntu VM it complained: “Error starting domain: cannot open file ‘/home/john/ubuntu-14.04.1-desktop-amd64.iso’. No such file or directory.”
Restored the iso file and everything works fine.

Does the VM really need continued access to the install media (why would it??), or have I made some error during installation?

TIA, John

On Sat 23 Aug 2014 01:46:01 PM CDT, oakhillj wrote:

I just started to play with virtualisation, and have successfully
installed Ubuntu on a virtual machine, from YAST, using an iso image as
the install medium.

After starting and stopping the guest a couple of times all seemed OK,
so I deleted the installation iso file.
However when I next attempted to start the Ubuntu VM it complained:
“Error starting domain: cannot open file
‘/home/john/ubuntu-14.04.1-desktop-amd64.iso’. No such file or
directory.”
Restored the iso file and everything works fine.

Does the VM really need continued access to the install media (why would
it??), or have I made some error during installation?

TIA, John

Hi
Don’t know about Ubuntu, but in openSUSE I disable the install media
via zypper, guess you need to do that in Ubuntu to take advantage of the
online ones?


Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890)
openSUSE 13.1 (Bottle) (x86_64) GNOME 3.10.1 Kernel 3.11.10-21-desktop
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!

On Sat, 23 Aug 2014 13:46:01 +0000, oakhillj wrote:

> Does the VM really need continued access to the install media (why would
> it??), or have I made some error during installation?

After you completed the installation, did you remove the virtual media?
If there’s a snapshot or something in the host that tells it the ISO is
connected, if you haven’t got it connected, that might lead it to
complain.

Is it the guest OS that’s complaining, or is it the host?

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

After a little digging I found that I could stop the VM trying to access the iso file by going to the detail view of the VM and removing the entry there.

Thanks to those who took the trouble to respond to my enquiry.