Bug 694690

Summary: After migration,domain can not be connect by virt-manager and state shows "no state"
Product: Red Hat Enterprise Linux 5 Reporter: wangyimiao <yimwang>
Component: libvirtAssignee: Osier Yang <jyang>
Status: CLOSED WONTFIX QA Contact: Virtualization Bugs <virt-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 5.7CC: dallan, dyuan, eblake, gren, llim
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-15 20:05:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description wangyimiao 2011-04-08 02:52:47 UTC
Description of problem:
After migration,domain "vm1" can not be connect by virt-manager with message "console is not yet active for guest" and domain state shows "no state".

Version-Release number of selected component (if applicable):
libvirt-0.8.2-18.el5
xen-3.0.3-127.el5
kernel-xen-2.6.18-252.el5

How reproducible:
5/5

Steps to Reproduce:

1.Please modify this config file (/etc/xen/xend-config.sxp) and run that 
command on source and target hosts first. 

(xend-relocation-server yes)
(xend-relocation-port 8002)
(xend-relocation-address '')
(xend-relocation-hosts-allow '')

# service xend restart
# iptables -F
# setsebool -P virt_use_nfs 1
# mount 10.66.4.208:/var/lib/xen/images/  /mnt

2.# virsh dumpxml vm1
<domain type='xen'>
  <name>vm1</name>
  <uuid>b3df711f-3261-26a9-f37f-6369ae8c0685</uuid>
  <memory>524288</memory>
  <currentMemory>524288</currentMemory>
  <vcpu>1</vcpu>
  <os>
    <type arch='x86_64' machine='xenfv'>hvm</type>
    <loader>/usr/lib/xen/boot/hvmloader</loader>
    <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>
  <devices>
    <emulator>/usr/lib64/xen/bin/qemu-dm</emulator>
    <disk type='file' device='disk'>
      <driver name='file'/>
      <source file='/mnt/fv.img'/>
      <target dev='hda' bus='ide'/>
    </disk>
    <interface type='bridge'>
      <mac address='00:16:36:60:f6:14'/>
      <source bridge='xenbr0'/>
      <script path='vif-bridge'/>
    </interface>
    <serial type='pty'>
      <target port='0'/>
    </serial>
    <console type='pty'>
      <target port='0'/>
    </console>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='-1' autoport='yes' keymap='en-us'/>
  </devices>
</domain>

3.Start rhel5.6 guest and migrate it to target host. 
# virsh start vm1
Domain vm1 started

# virsh migrate --live vm1  xen+ssh://10.66.4.218
root.4.218's password: 

4.Login target host to check guest domain VM1.
# virsh list --all
 Id Name                 State
----------------------------------
  0 Domain-0             running
  9 vm1                  no state


Actual results:
After migration,domain "vm1" can not be connect by virt-manager with message "console is not yet active for guest" and domain state shows "no state"

Expected results:
2.After migration,domain should works fine and state should be 'running'.

Comment 1 RHEL Program Management 2011-06-20 22:39:29 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 RHEL Program Management 2011-08-15 20:05:33 UTC
Development Management has reviewed and declined this request.  You may appeal
this decision by reopening this request.