Can't use DVD to create guest anymore in virt-manager

Bug #1308688 reported by Christian Gendreau
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libvirt (Ubuntu)
Expired
Medium
Unassigned

Bug Description

Description of problem:
I used in the past (approx. 6 months ago) an external DVD drive to install Ubuntu on my guests. When I try now, I can't use my DVD drive anymore.

Version-Release number of selected component (if applicable):
Ubuntu 12.04 LTS
Virt-manager 0.9.1
libvirt 0.9.8

How reproducible:
100%

Steps to Reproduce:
1. Open virt-manager
2. Press "New"
3. Select "Local install"
4. Press "Forward"
5. Select "Use CDROM or DVD"
6. Press "Forward"

Actual results:
Error saying "Error setting install media location" (see attachment)

Expected results:
No error and getting to the next step.

Additional info:
This issue may be with libvirt itself I guess.
The DVD drive is connected to the server through an USB port.
The drive is correctly mounted.
The log file (libvirtd.log) is empty.

This issue was originally reported here:
https://bugzilla.redhat.com/show_bug.cgi?id=1088484

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Thanks for reporting this bug. In the description you said "(see attachment)". Did you mean to attach a log or image capture to the bug?

You can get more information into libvirtd.log by editing /etc/libvirt/libvirtd.conf, uncommenting the line

# log_level = 3

and changing 3 to 1. Then restart libvirt

sudo stop libvirt-bin
sudo start libvirt-bin

and re-try creating the VM with virt-manager.

My guess is actually that virt-manager is unable to find or access the cd drive device due to a permissions issue.

Changed in libvirt (Ubuntu):
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
Christian Gendreau (christiangendreau) wrote :

Sorry the attachment didn't follow.

Revision history for this message
Serge Hallyn (serge-hallyn) wrote : Re: [Bug 1308688] Re: Can't use DVD to create guest anymore in virt-manager

Thanks - so virt-manager wants to access /dev/sr0. Could you
unplug the cdrom, start

sudo tail -f /var/log/syslog

plug the cdrom back in, then after a few seconds paste the result
of the tail -f into this bug?

Revision history for this message
Christian Gendreau (christiangendreau) wrote :

After uncommenting the line log_level = 3 in libvirtd.conf here is what I have in the log:

error: virConnectNumOfInterfaces:9803 : this function is not supported by the connection driver: virConnectNumOfInterfaces

sudo tail -f /var/log/syslog:

usb 1-1.4: new high-speed USB device number 4 using ehci-pci
usb 1-1.4: New USB device found, idVendor=0e8d, idProduct=1807
usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1.4: Product: MT1807
usb 1-1.4: Manufacturer: MediaTek Inc
usb 1-1.4: SerialNumber: KLOC8CE1802
scsi2 : usb-storage 1-1.4:1.0
scsi 2:0:0:0: CD-ROM HL-DT-ST DVDRAM GP30NB40 1.00 PQ: 0 ANSI: 0
sr0: scsi3-mmc drive: 24x/24x writer dvd-ram cd/rw xa/form2 cdda tray
sr 2:0:0:0: Attached scsi CD-ROM sr0
sr 2:0:0:0: Attached scsi generic sg3 type 5

Thanks

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Could you show the results of:

ls -l /dev/sr0
groups

Revision history for this message
Christian Gendreau (christiangendreau) wrote :

Sure

ls -l /dev/sr0
brw-rw---- 1 root cdrom 11, 0 Apr 17 19:49 /dev/sr0

groups
christian adm cdrom sudo dip plugdev libvirtd lpadmin sambashare

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Hm, you should have the permissions to access it...

could you try starting virt-manager under strace

strace -f -ostrace.out virt-manager

try creating the vm, then immediately exit virt-manager (because
the file will become large), then append strace.out?

Revision history for this message
Christian Gendreau (christiangendreau) wrote :

Here is the strace.out.
Thanks

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Thanks. Interestingly strace.out shows that /dev/sr0 was opened just fine...

Changed in libvirt (Ubuntu):
status: Incomplete → New
Revision history for this message
Chris J Arges (arges) wrote :

Re-tested this on an updated precise install and could not reproduce. Marking incomplete.

Changed in libvirt (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for libvirt (Ubuntu) because there has been no activity for 60 days.]

Changed in libvirt (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.