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(a)redhat.com> wrote:
From: Daniel Veillard <veillard(a)redhat.com>
Subject: Re: [libvirt-users] Problem attaching device
To: steven765(a)yahoo.com
Cc: "Matthias Bolte" <matthias.bolte(a)googlemail.com>,
libvirt-users(a)redhat.com
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(a)yahoo.com>:
> 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(a)veillard.com
| Rpmfind RPM search engine
http://rpmfind.net/
http://veillard.com/ | virtualization library
http://libvirt.org/