Beginner’s question.
Once the VM build has been completed and all is working, is the image of the CD-ROM iso which has been saved on the base system still required or can it be deleted?
@Budgie2 just remove it from the virtual machine, don’t delete the image in case you need it again…
That’s what I thought.
You did say you saved the iso images in your /var/lib/libvirt/images/ directory. Is that right?
Unless you have a good reason not, I will leave mine where they are for now.
@Budgie2 because that’s the default libvirt image location they get saved when using the likes of Vagrant…
I’ve wondered this too
OK thats fine for the libvirt image but what happens to the iso file which has been downloaded. I assume it is no longer required as it has been built into the virtual machine build.
@Budgie2 yes, but if you need it again, on removal from the vm, there is a checkbox to delete the iso image as well, uncheck this else, next time it’s needed, it would have been deleted from the volume storage pool… and that’s location agnostic, as it where ever it was stored.
Am I doing something wrong or is this a new feature?
If I install Linux Mint, the problem below does not occur.
- I downloaded the file openSUSE-Leap-15.5-DVD-x86_64-Build491.1-Media.iso from the Internet to my Home directory.
- I installed openSUSE Leap 15.5 on QEMU/KVM.
- The installation was successful. I shut down openSUSE guest and restarted. Guest started correctly.
- I moved the openSUSE-Leap-15.5-DVD-x86_64-Build491.1-Media.iso file to another directory.
- I shut down the openSUSE guest and restarted it again. Guest no longer started.
- I moved the openSUSE-Leap-15.5-DVD-x86_64-Build491.1-Media.iso file back to my Home directory.
- I shut down the openSUSE guest and restarted it. Guest started correctly again.
Error starting domain: Cannot access storage file '/home/raija/openSUSE-Leap-15.5-DVD-x86_64-Build491.1-Media.iso': No file or directory
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 71, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 107, in tmpcb
callback(*args, **kwargs)
File "/usr/share/virt-manager/virtManager/object/libvirtobject.py", line 57, in newfn
ret = fn(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/share/virt-manager/virtManager/object/domain.py", line 1425, in startup
self._backend.create()
File "/usr/lib64/python3.11/site-packages/libvirt.py", line 1379, in create
raise libvirtError('virDomainCreate() failed')
libvirt.libvirtError: Cannot access storage file '/home/raija/openSUSE-Leap-15.5-DVD-x86_64-Build491.1-Media.iso': No file or directory
Operating System: openSUSE Tumbleweed 20240327
KDE Plasma Version: 6.0.2
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.8.1-1-default (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 9 5900HX with Radeon Graphics
Memory: 30.7 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: MINIPC PN52
@raijar Did you delete the dvd from the virtual machine so it’s not present? Also please don’t tack on to existing threads start a new one with your issue.
I wonder why the DVD iso file is still needed after the installation of a new guest.
If I remove the DVD iso file from the guest’s data, I get an error message, and the guest will no longer start. The Linux Mint guest does not have the DVD iso directory/path in its data at all (pic. LMcinnamon.jpg)
I was wondering if this is the same thing as the title, or if it’s a different thing. I came to the conclusion that it is about the same thing, but I just don’t understand what has changed in how the guest should be created.
@raijar The only reason for that is not installing the bootloader, how was the setup configured, did you select UEFI?
Now you asked a difficult question. I’m sorry, but I can’t answer.
Both both host and guest are on the same machine. I have created the guest with default values.
@raijar You need to have a read of the documentation here https://doc.opensuse.org/documentation/leap/virtualization/single-html/book-virtualization/index.html specifically https://doc.opensuse.org/documentation/leap/virtualization/single-html/book-virtualization/index.html#sec-vt-installation-ovmf
Thank you for the information.
I read those parts in the documentary, but I didn’t fully understand everything.
I have always created the guest graphically and I think I will do so this time as well, but first I copy the DVD iso file to the /var/lib/libvirt/images directory.
@raijar If you using the wizard, maybe step 5, there is an option to customize before install, select that so you can switch from the default BIOS to UEFI, then select the desired ovmf file before install.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.