Dear Alex , Thanks for the keen observation. I noticed that #012 in the logs has replaced the newlines in the nic.xml file. below is the nic.xml file: ------------- start of nic.xml --------------------- <hostdev mode='subsystem' type='pci' managed='yes'> <source> <address domain='0x0000' bus='0x04' slot='0x10' function='0x0'/> </source> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </hostdev> ------------- end of nic.xml ------------------------ I will go through the bug you suggested and also (possibly) try to repeat the experiment with recent version of Centos . Regards, Rajesh Kumar Mallah Tel. 91-11-46710500 (Ext:303) Cell +919811255597 Website: http://www.tradeindia.com/ \|/ \|/ \|/ stop printing \|/ \|/ \|/ | | | start planting | | | ----- "Alex Jia" <ajia@xxxxxxxxxx> wrote: | From: "Alex Jia" <ajia@xxxxxxxxxx> | To: "Rajesh Kumar Mallah" <mallah@xxxxxxxxxxxxxx> | Cc: libvirt-users@xxxxxxxxxx, "vikas pandey" <vikas_pandey@xxxxxxxxxxxxxx> | Sent: Monday, August 27, 2012 4:23:10 PM | Subject: Re: automatically detaching PCI host devices from guest for SRIOV usage. | | Hi Rajesh, | I saw the following XML configuration in your | case-1-virsh_attach_device_first.log.txt, | what's "#012"? it seems you copy-paste it from a web, please remove it | from XML then | attach it again. | | virDomainAttachDevice:9235 : dom=0x6b20a0, (VM: name=new-installed, | uuid=6122cebb-e33c-a66a-9b71-a0047c91d7bb), xml= <hostdev | mode='subsystem' type='pci' managed='yes'>#012 <source>#012 | <address domain='0x0000' bus='0x04' slot='0x10' function='0x0'/>#012 | </source>#012 <address type='pci' domain='0x0000' bus='0x00' | slot='0x03' function='0x0'/>#012 </hostdev>#012 | | In addition, I tried to assign/unassign a normal NICs to/from the | running guest with managed='yes' again, | indeed, the NICs hasn't been returned to host with 'managed' mode | although virsh said "Device detached successfully", | I must to stop the guest then manually return the NICs device to host | via 'virsh nodedev-reattach pci_$domain_$bus_$slot_$function' | such as virsh nodedev-reattach pci_0000_04_10_0, here is a similar bug | "https://bugzilla.redhat.com/show_bug.cgi?id=843016". | | BTW, rhel6.2 isn't necessary, it should work for other platform such | as fedora, centos, etc. | | -- | Regards, | Alex | | | ----- Original Message ----- | From: "Rajesh Kumar Mallah" <mallah@xxxxxxxxxxxxxx> | To: "Alex Jia" <ajia@xxxxxxxxxx> | Cc: libvirt-users@xxxxxxxxxx, "vikas pandey" | <vikas_pandey@xxxxxxxxxxxxxx> | Sent: Monday, August 27, 2012 4:18:01 PM | Subject: Re: automatically detaching PCI host devices | from guest for SRIOV usage. | | | Dear Alex , | | What do you have in the Host ? Does the guests behave as we are | expecting | them to behave in our setup ? | | <offtopic> | can i get rhel6.2 for trying? | </offtopic> | | Also i have attached the files this time. | | Regards, | Rajesh Kumar Mallah | Tel. 91-11-46710500 (Ext:303) | Cell +919811255597 | Website: http://www.tradeindia.com/ | \|/ \|/ \|/ stop printing \|/ \|/ \|/ | | | | start planting | | | | | | ----- "Alex Jia" <ajia@xxxxxxxxxx> wrote: | | | From: "Alex Jia" <ajia@xxxxxxxxxx> | | To: "Rajesh Kumar Mallah" <mallah@xxxxxxxxxxxxxx> | | Cc: libvirt-users@xxxxxxxxxx, "vikas pandey" | <vikas_pandey@xxxxxxxxxxxxxx> | | Sent: Monday, August 27, 2012 12:55:14 PM | | Subject: Re: automatically detaching PCI host | devices from guest for SRIOV usage. | | | | Hi Rajesh, | | I guess you forgot to attach your attachments in here. | | As usual, I tried to directly assign a PF or VF of the Intel82576 | | to guest on RHEL6.2, my box is Dell Optiplex 755. | | | | -- | | Regards, | | Alex | | | | | | ----- Original Message ----- | | From: "Rajesh Kumar Mallah" <mallah@xxxxxxxxxxxxxx> | | To: "Alex Jia" <ajia@xxxxxxxxxx> | | Cc: libvirt-users@xxxxxxxxxx, "vikas pandey" | | <vikas_pandey@xxxxxxxxxxxxxx> | | Sent: Saturday, August 25, 2012 2:31:20 PM | | Subject: Re: automatically detaching PCI host | devices | | from guest for SRIOV usage. | | | | Dear Alex/List , | | | | I am attaching a zip file that contains a set of files. | | The files that start with case-1 is the case when the PCI | | device is detached prior to shutdown. case-2 is otherwise. | | | | Kindly have a look when you have time and see if there | | is any hints. | | | | BTW can you suggest in what free platform does SRIOV and direct | | PCI assignment *really* works so that we could try on that as well. | | | | Regards, | | Rajesh Kumar Mallah | | Tel. 91-11-46710500 (Ext:303) | | Cell +919811255597 | | Website: http://www.tradeindia.com/ | | \|/ \|/ \|/ stop printing \|/ \|/ \|/ | | | | | start planting | | | | | | | | | ----- "Alex Jia" <ajia@xxxxxxxxxx> wrote: | | | | | From: "Alex Jia" <ajia@xxxxxxxxxx> | | | To: "Rajesh Kumar Mallah" <mallah@xxxxxxxxxxxxxx> | | | Cc: libvirt-users@xxxxxxxxxx, "vikas pandey" | | <vikas_pandey@xxxxxxxxxxxxxx> | | | Sent: Thursday, August 23, 2012 8:21:58 AM | | | Subject: Re: automatically detaching PCI host | | devices from guest for SRIOV usage. | | | | | | ----- Original Message ----- | | | From: "Rajesh Kumar Mallah" <mallah@xxxxxxxxxxxxxx> | | | To: "Alex Jia" <ajia@xxxxxxxxxx> | | | Cc: libvirt-users@xxxxxxxxxx, "vikas pandey" | | | <vikas_pandey@xxxxxxxxxxxxxx> | | | Sent: Wednesday, August 22, 2012 7:37:05 PM | | | Subject: Re: automatically detaching PCI host | | devices | | | from guest for SRIOV usage. | | | | | | | | | | | | | | | Could you attach your libvirtd.log? which's version your | | libvirt? | | | | in addition, if your guest has a desktop, please login and | check | | if | | | | | | | the network configuration exists issues. | | | | | | | | Thanks, | | | | Alex | | | | | | Dear Alex , | | | | | | What logging level is useful for you ? | | | | | | Dear Rajesh, | | | | | | Level 1 (Debug) should be enough, but I guess it probably hasn't | | more | | | help for us, | | | you had better to login the guest then check network when you | were | | | meeting this issue | | | again, for example, to check if network configuration is valid | and | | try | | | to restart | | | relevant network services to see if the guest network can work | | again | | | or something | | | like that, In addition, you shut down the guest via running | 'halt' | | in | | | the guest, | | | Does it work for you if you use libvirt relevant interface such | as | | | 'virsh shutdown guest' | | | or 'virsh destroy guest'? | | | | | | | | | Regards, | | | Alex | | | | | | | | | | | | Regards, | | | Rajesh Kumar Mallah | | | Tel. 91-11-46710500 (Ext:303) | | | Cell +919811255597 | | | Website: http://www.tradeindia.com/ | | | \|/ \|/ \|/ stop printing \|/ \|/ \|/ | | | | | | start planting | | | _______________________________________________ libvirt-users mailing list libvirt-users@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvirt-users