huachao yao
2011-Sep-15 07:30 UTC
[libvirt-users] Config Errro when Creating a virtual device attachment to backend
Hi, buddy, I want to create a virtual device attachment to backend. The domain is running, and my code phase is as below: xmlConfiguration = "<devices><sound model='es1370'/></devices>"; virDomainAttachDevice(dom,xmlConfiguration); But the exception "libvir: Domain Config error : XML error: unknown device type " happen when running. Is it something wrong in the XML configuration? What should i do to deal with such Config error ? ps: the hypervisor is KVM. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20110915/8843f839/attachment.htm>
Osier Yang
2011-Sep-15 07:49 UTC
[libvirt-users] Config Errro when Creating a virtual device attachment to backend
? 2011?09?15? 15:30, huachao yao ??:> Hi, buddy, > I want to create a virtual device attachment to backend. > The domain is running, and my code phase is as below: > > xmlConfiguration = "<devices><sound model='es1370'/></devices>"; > virDomainAttachDevice(dom,xmlConfiguration);Try with <devices> tag removed.> > But the exception "libvir: Domain Config error : XML error: unknown > device type " happen when running. > Is it something wrong in the XML configuration? What should i do to > deal with such Config error ? > > ps: the hypervisor is KVM. > > > _______________________________________________ > libvirt-users mailing list > libvirt-users at redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-users-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20110915/22e7b8a4/attachment.htm>