Then how did I add the sound card back to the guest?
- I did "virsh dumpxml anotherguest" which has sound card attached to it and was able to see the below line in the output.
....................
....................
- I then did "virsh dumpxml xp" and was not able to see the above line in it. So fixing this is as simple as adding the above line to winxp configuration file.
How to do that?
- Dump the xml file to a file in the disk.
# virsh dumpxml xp > xp.xml
- Edit the xp.xml and add the below line to it.
I added this immediately before the "devices" line.
- Then redefine the guest using the new configuration file.
# virsh define xp.xml
Restart the guest and the network card would be present in the guest. Hope we can add the sound card in F11 through virt-manager GUI.