Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 710337

Summary: virt-manager: hide option of using vmdk files, qemu disables support
Product: Red Hat Enterprise Linux 6 Reporter: Min Zhan <mzhan>
Component: virt-managerAssignee: Cole Robinson <crobinso>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2CC: dyuan, llim, mshao, mzhan, zpeng
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
No description necessary
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-06 16:14:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Min Zhan 2011-06-03 05:52:32 UTC
Description of problem:
In virt-manager, install a new guest, then customize the configuration, Select Add Hardware->Storage, select a vmdk format storage,choose as virtio type, format as vmdk, then finish and begin installation. Then error display:
Unable to complete install: 'internal error process exited while connecting to monitor: char device redirected to /dev/pts/3
qemu: 'vmdk' invalid format
'

Version-Release number of selected component (if applicable):
libvirt-0.9.1-1.el6.x86_64
virt-manager-0.8.6-4.el6.noarch

How reproducible:
Always

Steps to Reproduce:
1. Launch virt-manager,Create a new guest
2. Tick 'Customize configuration before install', click Finish
3. Divert to guest details page, Click Add Hardware->Storage, select a existing vmdk format storage,choose as virtio type, format as vmdk
4. Click Finish and Begin installation
  
Actual results:
An error will display:
Unable to complete install: 'internal error process exited while connecting to monitor: char device redirected to /dev/pts/3
qemu: 'vmdk' invalid format
'
Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 45, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/create.py", line 1622, in do_install
    guest.start_install(False, meter=meter)
  File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", line 1193, in start_install
    start_xml, final_xml, is_initial)
  File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", line 1252, in _create_guest
    dom = self.conn.createLinux(start_xml or final_xml, 0)
  File "/usr/lib64/python2.6/site-packages/libvirt.py", line 1454, in createLinux
    if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self)
libvirtError: internal error process exited while connecting to monitor: char device redirected to /dev/pts/3
qemu: 'vmdk' invalid format


Expected results:
Installation should success. Or if vmdk is not supported pls hide this option.

Additional info:

# tail -f /root/.virt-manager/virt-manager.log
...
[Fri, 03 Jun 2011 11:39:11 virt-manager 6363] DEBUG (Guest:1229) Generated boot XML: 
<domain type='kvm'>
  <name>http</name>
  <currentMemory>524288</currentMemory>
  <memory>524288</memory>
  <uuid>e96f0a2c-8d83-e468-b1dc-a6d708f3313b</uuid>
  <os>
    <type arch='x86_64'>hvm</type>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/><apic/><pae/>
  </features>
  <clock offset="utc"/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <vcpu>1</vcpu>
  <devices>
    <emulator>/usr/libexec/qemu-kvm</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='none' io='threads'/>
      <source file='/var/lib/libvirt/images/http.img'/>
      <target dev='vda' bus='virtio'/>
    </disk>
    <disk type='file' device='disk'>
      <driver name='qemu' type='vmdk' cache='none' io='threads'/>
      <source file='/var/lib/libvirt/images/a11.img'/>
      <target dev='vdb' bus='virtio'/>
    </disk>
    <interface type='network'>
      <source network='default'/>
      <mac address='52:54:00:21:fd:c2'/>
      <model type='virtio'/>
    </interface>
    <input type='tablet' bus='usb'/>
    <graphics type='vnc' port='-1'/>
    <console type='pty'/>
    <sound model='ich6'/>
    <video>
      <model type='cirrus'/>
    </video>
  </devices>
</domain>

[Fri, 03 Jun 2011 11:39:15 virt-manager 6363] DEBUG (Installer:359) Removing /var/lib/libvirt/boot/virtinst-vmlinuz.xFPIzA
[Fri, 03 Jun 2011 11:39:15 virt-manager 6363] DEBUG (Installer:359) Removing /var/lib/libvirt/boot/virtinst-initrd.img.6SYCOQ
[Fri, 03 Jun 2011 11:39:15 virt-manager 6363] DEBUG (error:66) dialog message: Unable to complete install: 'internal error process exited while connecting to monitor: char device redirected to /dev/pts/4
qemu: 'vmdk' invalid format
' : Unable to complete install: 'internal error process exited while connecting to monitor: char device redirected to /dev/pts/4
qemu: 'vmdk' invalid format
'
Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 45, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/create.py", line 1622, in do_install
    guest.start_install(False, meter=meter)
  File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", line 1193, in start_install
    start_xml, final_xml, is_initial)
  File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", line 1252, in _create_guest
    dom = self.conn.createLinux(start_xml or final_xml, 0)
  File "/usr/lib64/python2.6/site-packages/libvirt.py", line 1454, in createLinux
    if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self)
libvirtError: internal error process exited while connecting to monitor: char device redirected to /dev/pts/4
qemu: 'vmdk' invalid format

Comment 1 Dave Allan 2011-07-15 02:11:04 UTC
*** Bug 710342 has been marked as a duplicate of this bug. ***

Comment 3 Cole Robinson 2011-07-28 15:29:00 UTC
Fixed in virt-manager-0.9.0-2.el6

Comment 5 zhe peng 2011-08-05 06:06:48 UTC
this bug can reproduce with virt-manager-0.8.6-4.el6,
test with virt-manager-0.9.0-5.el6,the behavior same with virt-manager-0.8.6-4.el6,
i check the code of virt-manager,found upstream patch not include the build virt-manager-0.9.0-5.el6,so ,move status to assigned.

Comment 6 Cole Robinson 2011-08-29 15:18:19 UTC
Was a small spec file issue, fixed upstream:

http://git.fedorahosted.org/git?p=virt-manager.git;a=commit;h=a1057be68f9f0ac2286388d710862ef395eb42bd

Comment 7 Cole Robinson 2011-08-30 19:37:54 UTC
Fixed in virt-manager-0.9.0-6.el6

Comment 8 Min Zhan 2011-09-01 06:14:36 UTC
Verified PASS with below environment:
# uname -r
2.6.32-191.el6.x86_64
qemu-kvm-0.12.1.2-2.184.el6.x86_64
libvirt-0.9.4-6.el6.x86_64
virt-manager-0.9.0-6.el6.x86_64
python-virtinst-0.600.0-3.el6.noarch

Steps:
1. Launch virt-manager, New a guest, then 'Customize configuration before install', click Finish. Divert to guest details page, Click Add Hardware->Storage, Found storage format only support raw, qcow2 types. vmdk is hidden.

2. For a health existing guest, Click Add Hardware -> Storage, Found storage format only support raw, qcow2 types. vmdk is hidden.


-----------
I can reproduce this bug with virt-manager-0.9.0-5.el6.x86_64.

Comment 9 Min Zhan 2011-09-02 06:18:07 UTC
Move to VERIFIED per Comment #8.

Comment 10 Cole Robinson 2011-11-07 16:40:36 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
No description necessary

Comment 11 errata-xmlrpc 2011-12-06 16:14:24 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2011-1642.html