Re: Problem attaching device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks, but problem still persists. I actually fat fingered entering it the first time   

The xmlfile really is: 

<?xml version="1.0"?>
<interface type="network">
  <mac address="52:54:00:5c:fe:a8"/>
  <source network="default"/>
  <target dev="vnet1"/>
</interface>

 I ran xmllint and it just says no DTD specified, however this works perfectly if i use the attach-device command in virsh. I tired it both with and without the first line version=1.0

I try running it through python and boom, is there something else I'm missing?  I can't find any documentation about the overall libvirt xml schema. 
Thanks again,
Steve


--- On Thu, 3/25/10, Daniel Veillard <veillard@xxxxxxxxxx> wrote:

> From: Daniel Veillard <veillard@xxxxxxxxxx>
> Subject: Re: Problem attaching device
> To: steven765@xxxxxxxxx
> Cc: "Matthias Bolte" <matthias.bolte@xxxxxxxxxxxxxx>, libvirt-users@xxxxxxxxxx
> Date: Thursday, March 25, 2010, 9:18 AM
> On Wed, Mar 24, 2010 at 11:18:10PM
> +0100, Matthias Bolte wrote:
> > 2010/3/24  <steven765@xxxxxxxxx>:
> > Your XML is really not well formed. This
> > 
> >    <source network-'default'/>
> > 
> > should be
> > 
> >    <source network='default'/>
> > 
> > >            target dev='vnet1'/>
> > 
> > And you miss a < before the word target:
> > 
> >    target dev='vnet1'/>
> > 
> > should be
> > 
> >    <target dev='vnet1'/>
> > 
> > > </interface>
> > >
> > > I've tired giving it the full path still no
> luck.
> > > Thanks in advance,
> 
>   use xmllint to check XML instances if you're not
> sure
> 
> xmllint net.xml
> 
> Daniel
> 
> -- 
> Daniel Veillard      | libxml Gnome XML XSLT
> toolkit  http://xmlsoft.org/
> daniel@xxxxxxxxxxxx 
> | Rpmfind RPM search engine http://rpmfind.net/
> http://veillard.com/ | virtualization library  http://libvirt.org/
>



      


[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux