Bug 705765 - "virt-install" without "--accelerate" will be very very slow to create a guest.
Summary: "virt-install" without "--accelerate" will be very very slow to create a guest.
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: python-virtinst
Version: 5.7
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Cole Robinson
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-18 11:37 UTC by Cui Chun
Modified: 2011-08-23 16:10 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-08-23 16:10:23 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Cui Chun 2011-05-18 11:37:04 UTC
Description of problem:

It will take more than one hour to create a qemu guest through "virt-install" command (without "----accelerate") on RHEL5.7.


Version-Release number of selected component (if applicable):

libvirt-0.8.2-20.el5
libvirt-python-0.8.2-20.el5
kvm-83-232.el5

How reproducible:

Always

Steps to Reproduce:
1.create a guest and make sure it can be started/stopped/ normally.
image path is /var/lib/libvirt/images/w2k3-kvm2.img 

2.stop and undefine this guest 
# virsh destroy w2k3-kvm2
# virsh undefine w2k3-kvm2     

3. try to create a guest with w2k3-kvm2.img through "virt-install"

# virt-install -n vm1 -r 1024 -f /var/lib/libvirt/images/w2k3-kvm2.img  --importimg  --import --debug
Wed, 18 May 2011 15:15:24 DEBUG    Requesting libvirt URI default
Wed, 18 May 2011 15:15:24 DEBUG    Received libvirt URI 'qemu:///system'
Wed, 18 May 2011 15:15:24 DEBUG    Requesting virt method 'default'
Wed, 18 May 2011 15:15:24 DEBUG    Received virt method 'hvm'
Wed, 18 May 2011 15:15:24 DEBUG    Hypervisor name is 'qemu'
Wed, 18 May 2011 15:15:24 DEBUG    Setting size for existing storage to '7.8125'
Wed, 18 May 2011 15:15:24 DEBUG    Detected storage as type 'file'
Wed, 18 May 2011 15:15:24 DEBUG    Setting size for existing storage to '7.8125'
Wed, 18 May 2011 15:15:24 DEBUG    Detected storage as type 'file'
Wed, 18 May 2011 15:15:24 DEBUG    Setting size for existing storage to '7.8125'
Wed, 18 May 2011 15:15:24 DEBUG    Detected storage as type 'file'
Wed, 18 May 2011 15:15:24 DEBUG    DISPLAY is set: graphics defaulting to VNC.


Starting install...
Wed, 18 May 2011 15:15:24 DEBUG    Saving XML boot config:
<domain type='qemu'>
  <name>vm1</name>
  <currentMemory>1048576</currentMemory>
  <memory>1048576</memory>
  <uuid>57687424-4900-4f92-a939-984690e0dd2b</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>
    <console type='pty'/>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='none'/>
      <source file='/var/lib/libvirt/images/w2k3-kvm2.img'/>
      <target dev='hda' bus='ide'/>
    </disk>
    <interface type='network'>
      <source network='default'/>
      <mac address='54:52:00:0a:ff:fc'/>
    </interface>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='-1' keymap='en-us'/>
  </devices>
</domain>

Guest installation complete... restarting guest.
Wed, 18 May 2011 15:15:25 DEBUG    Restarted guest, looking to see if it is running
Wed, 18 May 2011 15:15:25 DEBUG    Launching console callback
connect : Connection refused
...................

4. installation process is held on the virt viewer screen and no any feedback more than 1 hour

5. interrupted the step4 after 1 hour and undefine the crash guest. 

6. recreate it by "virt-install" with "----accelerate". The guest can be created quickly.

# virt-install -n vm1 -r 1024 -f /var/lib/libvirt/images/w2k3-kvm2.img --import --accelerate


  
Actual results:

The result of step4.

Expected results:

Enhance the performance for "virt-install" without "----accelerate"


Additional info:

Comment 1 RHEL Program Management 2011-06-21 05:27:59 UTC
This request was evaluated by Red Hat Product Management for inclusion in Red Hat Enterprise Linux 5.7 and Red Hat does not plan to fix this issue the currently developed update.

Contact your manager or support representative in case you need to escalate this bug.

Comment 3 Cole Robinson 2011-07-12 23:13:31 UTC
Upstream virt-install uses this option by default, we should probably backport a similar change to RHEL5

Comment 4 Cole Robinson 2011-08-23 16:10:23 UTC
Actually, ignore that last comment. It's way too late in the RHEL5 cycle to be changing defaults, even if it's one that will generally benefit users. Closing as WONTFIX for RHEL5


Note You need to log in before you can comment on or make changes to this bug.