If you are into this way, save something like that into a file (say ~/cdrom-real.xml) and then fire: virsh update-device testbed ~/cdrom-real. The documentation suggests using virsh update-device, but it is more labour to create an XML definition something like: When you want to point to an ISO image again, you replace /dev/sr0 to the filename on the host, something like virsh attach-disk testbed ~/ hdc -type cdrom ![]() The hdcpart needs to match the block device you have in the testbed virtual machine. If you already defined a CDROM, but it pointed to an ISO image, in my experience, you can still run the same command. Possible values for this attribute are floppy, disk, cdrom, and lun, defaulting to disk. See the man page for examples of using -location. ERROR Could not find an installable distribution at homejeromedebian-8.0.0-amd64-netinst.iso. If you are in the same situation, think twice before trying to install the VM from command line. If you defined no CDROM when you created your virtual machine, you can attach the device even to a running domain (virtual machine) by running the following command: virsh attach-disk testbed /dev/sr0 hdc -type cdrom Indicates how the disk is to be exposed to the guest OS. Virsh Mount Cdrom Install 29692 DEBUG Virsh Mount Cdrom Install 29692 DEBUG.
0 Comments
Leave a Reply. |