[Bug 857271] New: Setting up CD ROM as boot media causes installation process to abort: qemu: prepended, but phy: (optical drive) or file: (ISO image) expected
https://bugzilla.novell.com/show_bug.cgi?id=857271 https://bugzilla.novell.com/show_bug.cgi?id=857271#c0 Summary: Setting up CD ROM as boot media causes installation process to abort: qemu: prepended, but phy: (optical drive) or file: (ISO image) expected Classification: openSUSE Product: openSUSE 13.1 Version: Final Platform: x86-64 OS/Version: openSUSE 13.1 Status: NEW Severity: Major Priority: P5 - None Component: Xen AssignedTo: jdouglas@suse.com ReportedBy: olafmartens@web.de QAContact: qa-bugs@suse.de Found By: --- Blocker: --- Created an attachment (id=573194) --> (http://bugzilla.novell.com/attachment.cgi?id=573194) xend.log of the installation attempt (truncated to size 0 beforehand) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:26.0) Gecko/20100101 Firefox/26.0 After following all steps required by the installation wizard and finally clicking on "Finish" virt-manager displays a dialog box displaying the progress of the installation, but after some time I get an error message stating that some device had the wrong type (qemu:). By digging through my logs I found that the culprit is the routine that is supposed to set up the virtual CD ROM, and instead of prepending phy: for a real optical drive or file: for an ISO image file, respectively, for some reason qemu: is prepended instead, thereby confusing xend. In order to be able to access the optical drive I have registered it as a storage pool (pre-formatted fs). Reproducible: Always Steps to Reproduce: Prerequisites: Run virt-manager over a TCP connection. Box A (the xen host) has to have xend/libvirtd running on a xen-aware kernel. Networking has to be taken away from xend so that it doesn't interfere with libvirtd, then set the network type to routed. Register the hd of the system as a storage pool (physical drive) - this requires that a free partition exists on that device! Register the CD or DVD ROM as a storage pool (pre-formatted fs). Box B (without any virtualization) only has virt-manager running as a remote control for xend/libvirtd on box A (connection type xen). 1. Fire up the VM installation wizard and follow all steps. 2. Choose the physical optical drive as installation media. 3. Select one of the empty hd partitions for the VM's mass storage 4. When you are done, click on "Finish" to start the process. Actual Results: Error message returned (from virt-manager): Installation konnte nicht fertiggestellt werden: «POST-Operation schlug fehl: xend_post: Fehler von xen-Daemon: (xend.err 'Error creating domain: Block device type "qemu" is invalid.')» Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/asyncjob.py", line 96, in cb_wrapper callback(asyncjob, *args, **kwargs) File "/usr/share/virt-manager/virtManager/create.py", line 2022, in do_install guest.start_install(False, meter=meter) File "/usr/lib/python2.7/site-packages/virtinst/Guest.py", line 1251, in start_install noboot) File "/usr/lib/python2.7/site-packages/virtinst/Guest.py", line 1319, in _create_guest dom = self.conn.createLinux(start_xml or final_xml, 0) File "/usr/lib64/python2.7/site-packages/libvirt.py", line 2886, in createLinux if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self) libvirtError: POST-Operation schlug fehl: xend_post: Fehler von xen-Daemon: (xend.err 'Error creating domain: Block device type "qemu" is invalid.') Expected Results: The optical drive should have been set up and the installation process started. Kernel: Linux gagazet 3.11.6-4-xen #1 SMP Wed Oct 30 18:04:56 UTC 2013 (e6d4a27) x86_64 x86_64 x86_64 GNU/Linux xend: 4.3.1_02, release 4.4 libvirtd: 1.1.2, release: 2.10.2 virt-manager: 0.9.5, release 6.1.3 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=857271
https://bugzilla.novell.com/show_bug.cgi?id=857271#c1
--- Comment #1 from Olaf Martens
https://bugzilla.novell.com/show_bug.cgi?id=857271
https://bugzilla.novell.com/show_bug.cgi?id=857271#c2
James Fehlig
Steps to Reproduce: Prerequisites: Run virt-manager over a TCP connection.
You can run it over an ssh connection too.
Box A (the xen host) has to have xend/libvirtd running on a xen-aware kernel. Networking has to be taken away from xend so that it doesn't interfere with libvirtd, then set the network type to routed.
Why must xend be running? In openSUSE13.1, we've moved to the new libxl toolstack. The old xm/xend toolstack is deprecated upstream and slated for removal. I recommend disabling/removing xend and restarting libvirtd so that it loads and uses the new libxl driver.
Register the hd of the system as a storage pool (physical drive) - this requires that a free partition exists on that device!
Do you mean a libvirt disk storage pool (http://libvirt.org/storage.html#StorageBackendDisk) ? Yes, that requires a phyiscal disk.
Register the CD or DVD ROM as a storage pool (pre-formatted fs).
This isn't really necessary. You should be able to select an ISO or physical cdrom in the install tool (vm-install or virt-install).
Box B (without any virtualization) only has virt-manager running as a remote control for xend/libvirtd on box A (connection type xen).
1. Fire up the VM installation wizard and follow all steps. 2. Choose the physical optical drive as installation media. 3. Select one of the empty hd partitions for the VM's mass storage
FYI, as an option you can have vm-install (or virt-install) create an image file to serve as a disk for your virtual machines. If you do need to use libvirt storage pools, the directory or filesystem pool may be a better choice, since you won't consume hard drive partitions with each VM.
Error message returned (from virt-manager): Installation konnte nicht fertiggestellt werden: «POST-Operation schlug fehl: xend_post: Fehler von xen-Daemon: (xend.err 'Error creating domain: Block device type "qemu" is invalid.')»
Can you disable xend, restart libvirtd, and try another installation? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=857271
https://bugzilla.novell.com/show_bug.cgi?id=857271#c3
James Fehlig
https://bugzilla.novell.com/show_bug.cgi?id=857271
https://bugzilla.novell.com/show_bug.cgi?id=857271#c4
Olaf Martens
[...] Why must xend be running? In openSUSE13.1, we've moved to the new libxl toolstack. The old xm/xend toolstack is deprecated upstream and slated for removal. I recommend disabling/removing xend and restarting libvirtd so that it loads and uses the new libxl driver. That somehow breaks libvirtd. See below for reasons...
[...]
Can you disable xend, restart libvirtd, and try another installation? Yes - but the entire process fails when I do.
Unfortunately I cannot do anything when I take away xend - libvirtd may be starting, but it seems as if it still requires xend to be running (whenever I attempt to establish a connection to libvirtd with xend disabled, virt-manager, although it connects to the remote machine, doesn't display anything for Domain-0, and when I attempt to create a machine, this is met with two errors: Error I: Installation konnte nicht fertiggestellt werden: «Ende der Datei beim Lesen von Daten: Eingabe-/Ausgabefehler» Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/asyncjob.py", line 96, in cb_wrapper callback(asyncjob, *args, **kwargs) File "/usr/share/virt-manager/virtManager/create.py", line 2022, in do_install guest.start_install(False, meter=meter) File "/usr/lib/python2.7/site-packages/virtinst/Guest.py", line 1251, in start_install noboot) File "/usr/lib/python2.7/site-packages/virtinst/Guest.py", line 1319, in _create_guest dom = self.conn.createLinux(start_xml or final_xml, 0) File "/usr/lib64/python2.7/site-packages/libvirt.py", line 2886, in createLinux if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self) libvirtError: Ende der Datei beim Lesen von Daten: Eingabe-/Ausgabefehler *** Error II (following a moment later): Fehler beim Abfragen der Verbindung «xen+tcp://thorin@192.168.1.1/»: Interner Fehler: Client Socket ist geschlossen None - Attempting to install from an unregistered optical drive causes libvirtd to complain about unknown media. - The use of a physical partition for storage is intended. However, switching to a partition image (I have tried that for verification) would be met with success. - Taking xend out of the equation and starting libvirtd on its own causes some things to break (looks as if that still relies on xen to work, although I have taken away libvirt's xen plugin - also uninstalling the xen driver for libvirt would cause a degradation from x86_64 to i586). Switching to SSH yields the exact same results as TCP/SASL (when xend runs, Domain-0 is displayed, when not, Domain-0 is not to be seen and any installation attempt fails). The other drawback of SSH: When pubkey authentication is used, the mechanism fails. Unfortunately all this does not solve the problem caused by virt-manager (i e. qemu: is prepended to the path to the installation media)... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=857271
https://bugzilla.novell.com/show_bug.cgi?id=857271#c5
James Fehlig
https://bugzilla.novell.com/show_bug.cgi?id=857271
https://bugzilla.novell.com/show_bug.cgi?id=857271#c6
--- Comment #6 from Olaf Martens
https://bugzilla.novell.com/show_bug.cgi?id=857271
https://bugzilla.novell.com/show_bug.cgi?id=857271#c
Olaf Martens
https://bugzilla.novell.com/show_bug.cgi?id=857271
https://bugzilla.novell.com/show_bug.cgi?id=857271#c7
--- Comment #7 from Olaf Martens
https://bugzilla.novell.com/show_bug.cgi?id=857271
https://bugzilla.novell.com/show_bug.cgi?id=857271#c8
--- Comment #8 from Olaf Martens
https://bugzilla.novell.com/show_bug.cgi?id=857271
https://bugzilla.novell.com/show_bug.cgi?id=857271#c9
James Fehlig
https://bugzilla.novell.com/show_bug.cgi?id=857271
https://bugzilla.novell.com/show_bug.cgi?id=857271#c10
Olaf Martens
https://bugzilla.novell.com/show_bug.cgi?id=857271
https://bugzilla.novell.com/show_bug.cgi?id=857271#c11
James Fehlig
When I shut down xend, I am still able to fire up libvirtd (or keep an already running libvirtd up), but for some reason I am unable to deal with anything concerning virtualization (libvirtd simply refuses to create virtual machines, nor does it display any stats on existing VMs, not even dom0).
Does virsh work? E.g. 'virsh version'? Some background which might help: When you start libvirtd, it will attempt load any of the installed libvirt-daemon-driver-<hypervisor> modules. In the case of Xen, it will try libvirt-daemon-driver-xen first, which will only load if xend is running. It then attempts to load libvirt-daemon-driver-libxl, which will only load if xend is not running. So in theory, when libvirtd is started, only one of the Xen drivers will be loaded - all based on whether or not xend is running. One difference between the xend and libxl toolstacks is that the former supports the notion of managed or persistent domains, i.e. xend is stateful. On the other hand, libxl is stateless. By necessity, this difference is propogated to libvirt, where libvirt-daemon-driver-xen is stateless (xend maintains the state) and libvirt-daemon-driver-libxl is stateful. This might shed some light on why e.g. you would no longer see any of your non-running domains when moving from xend to libxl. The libvirt libxl driver must now do the job of xend and maintain domain state. But it must know about the domains first. One way to do that is export the domain XML using the old xend stack (xend+libvirt-daemon-driver-xen) and then import the domains into libvirt after moving to the libxl stack. E.g. with xend running for each dom virsh dumpxml > dom-name.xml stop xend restart libvirtd for each dom virsh define dom-name.xml I am concerned about your comment of not being able to create VMs, so we'll need to get to the bottom of that. Not seeing existing domains should be explained above. As for dom0, it is (currently) viewed as the host from libvirt's perspective, so not shown in the domain list. This behavior is similar to the qemu/kvm driver, along with some of the other hypervisor drivers like vmware and hyper-v. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=857271
https://bugzilla.novell.com/show_bug.cgi?id=857271#c12
Olaf Martens
https://bugzilla.novell.com/show_bug.cgi?id=857271
https://bugzilla.novell.com/show_bug.cgi?id=857271#c13
James Fehlig
https://bugzilla.novell.com/show_bug.cgi?id=857271
https://bugzilla.novell.com/show_bug.cgi?id=857271#c14
Olaf Martens
https://bugzilla.novell.com/show_bug.cgi?id=857271
https://bugzilla.novell.com/show_bug.cgi?id=857271#c
Olaf Martens
https://bugzilla.novell.com/show_bug.cgi?id=857271
https://bugzilla.novell.com/show_bug.cgi?id=857271#c15
--- Comment #15 from Olaf Martens
https://bugzilla.novell.com/show_bug.cgi?id=857271
https://bugzilla.novell.com/show_bug.cgi?id=857271#c16
James Fehlig
https://bugzilla.novell.com/show_bug.cgi?id=857271
https://bugzilla.novell.com/show_bug.cgi?id=857271#c17
--- Comment #17 from Olaf Martens
https://bugzilla.novell.com/show_bug.cgi?id=857271
https://bugzilla.novell.com/show_bug.cgi?id=857271#c18
--- Comment #18 from James Fehlig
https://bugzilla.novell.com/show_bug.cgi?id=857271
https://bugzilla.novell.com/show_bug.cgi?id=857271#c19
--- Comment #19 from Olaf Martens
https://bugzilla.novell.com/show_bug.cgi?id=857271
https://bugzilla.novell.com/show_bug.cgi?id=857271#c20
Olaf Martens
https://bugzilla.novell.com/show_bug.cgi?id=857271
https://bugzilla.novell.com/show_bug.cgi?id=857271#c21
James Fehlig
https://bugzilla.novell.com/show_bug.cgi?id=857271
https://bugzilla.novell.com/show_bug.cgi?id=857271#c22
Olaf Martens
https://bugzilla.novell.com/show_bug.cgi?id=857271
https://bugzilla.novell.com/show_bug.cgi?id=857271#c
Charles Arnold
https://bugzilla.novell.com/show_bug.cgi?id=857271
https://bugzilla.novell.com/show_bug.cgi?id=857271#c23
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=857271
https://bugzilla.novell.com/show_bug.cgi?id=857271#c26
--- Comment #26 from Olaf Martens
https://bugzilla.novell.com/show_bug.cgi?id=857271
https://bugzilla.novell.com/show_bug.cgi?id=857271#c27
--- Comment #27 from Olaf Martens
https://bugzilla.novell.com/show_bug.cgi?id=857271
https://bugzilla.novell.com/show_bug.cgi?id=857271#c
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=857271
https://bugzilla.novell.com/show_bug.cgi?id=857271#c
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=857271
https://bugzilla.novell.com/show_bug.cgi?id=857271#c28
--- Comment #28 from Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=857271
https://bugzilla.novell.com/show_bug.cgi?id=857271#c29
James Fehlig
Added a missing <driver> tag to the domain's hd definition - and all the sudden the domain was generated!
Did you add any name or type attributes on the <driver> element? E.g. <driver name='qemu' type='raw'/> -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=857271
https://bugzilla.novell.com/show_bug.cgi?id=857271#c30
Olaf Martens
https://bugzilla.novell.com/show_bug.cgi?id=857271
https://bugzilla.novell.com/show_bug.cgi?id=857271#c31
James Fehlig
https://bugzilla.novell.com/show_bug.cgi?id=857271
https://bugzilla.novell.com/show_bug.cgi?id=857271#c32
--- Comment #32 from Olaf Martens
https://bugzilla.novell.com/show_bug.cgi?id=857271
https://bugzilla.novell.com/show_bug.cgi?id=857271#c
Olaf Martens
https://bugzilla.novell.com/show_bug.cgi?id=857271
https://bugzilla.novell.com/show_bug.cgi?id=857271#c33
James Fehlig
participants (1)
-
bugzilla_noreply@novell.com