Re: virt-manager and guest config file

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

 



On Sun, Jun 17, 2007 at 01:53:49AM -0400, Kanwar Ranbir Sandhu wrote:
> On Fri, 2007-06-15 at 09:53 -0400, Hugh Brock wrote:
> > >>    virsh dumpxml DOMAINNAME > guest.xml
> > >>    vi guest.xml
> > >>    virsh define guest.xml
> > > 
> > > I just tried this, and it didn't work.  I had to "undefine" the guest
> > > before I could define it again:
> > > 
> > 
> > Hmm, it should work... what do you mean by "it didn't work?" Error message?
> 
> Here's what happens:
> 
> 1. I do a a xml dump of the domU:
> 
> [root@xenmaster xen]# virsh dumpxml asterisk > guest.xml
> libvir: error : failed to read configuration file /etc/xen/guest.xml
> 
> Though there's an error, guest.xml is created and looks okay.

Were you in the /etc/xen directory when you ran that command ? It looks
like you were since it mentions /etc/xen/guest.xml

Basically /etc/xen should only ever contain the master Xen config files.
Never create any other type of files in there. In this case the guest.xml
file is getting parsed as if it were a Xen config file & thus you see the
error.  

> 2. I try  to define the domU with the xml file I just dumped (after editing the RAM parameters):
> 
> [root@xenmaster xen]# virsh define guest.xml 
> libvir: error : configuration file syntax error: expecting a name
> libvir: Xen Daemon error : internal error domain with name already exists
> error: Failed to define domain from guest.xml
> 
> I check domU config file, and nothing has changed: the define really did fail.

That's a bug. If you update to the recently released 0.2.3 libvirt RPMs
it should be fixed. We pushed them to Fedora last week IIRC, although
its possible they're still only in updates-testing.

With the new version you should be able to define the VM, without first
having to undefine it.

Dan.
-- 
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 

--
Fedora-xen mailing list
Fedora-xen@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-xen

[Index of Archives]     [Fedora General]     [Fedora Music]     [Linux Kernel]     [Fedora Desktop]     [Fedora Directory]     [PAM]     [Big List of Linux Books]     [Gimp]     [Yosemite News]

  Powered by Linux