Re: [libvirt] Re: virsh/virt-install for dummies

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

 



On Fri, Aug 15, 2008 at 07:32:48PM +0900, Jun Koi wrote:
> On Fri, Aug 15, 2008 at 7:30 PM, Jun Koi <junkoi2004@xxxxxxxxx> wrote:
> > Hi,
> >
> > I am frustrated searching for a quick-start documentation for virsh,
> > just to no avail. Any help is greatly appreciated!
> >
> > Here is what I did:
> > - Compile and install libvirt, virt-manager, virt-install and
> > virt-viewer from source code. This is done (on Ubuntu 8.04).
> > - Now I want to do install a new VM with QEMU or KVM. I got the below
> > error with virt-install:
> >
> >
> > # virt-install -c qemu:///system --name jeos2 --ram 500 --file
> > img.jeos2  --cdrom jeos-8.04.1-jeos-i386.iso
> > Fri, 15 Aug 2008 19:19:10 ERROR    virConnectOpen() failed
> > Traceback (most recent call last):
> >  File "/usr/bin/virt-install", line 496, in <module>
> >    main()
> >  File "/usr/bin/virt-install", line 345, in main
> >    conn = cli.getConnection(options.connect)
> >  File "/usr/lib/python2.5/site-packages/virtinst/cli.py", line 92, in
> > getConnection
> >    return libvirt.open(connect)
> >  File "/usr/lib/python2.5/site-packages/libvirt.py", line 139, in open
> >    if ret is None:raise libvirtError('virConnectOpen() failed')
> > libvirtError: virConnectOpen() failed
> >
> >
> >
> > How to fix this? Perhaps I need to run libvirtd before using virsh???
> 
> I tried to run libvirtd to see if that fixes the problem, but got the
> below error:

Yes, for QEMU you need to have the libvirtd daemon up & running. Before
attempting to connect with virt-install, make sure you can connect with
virsh, eg as a good test run:

   virsh --connect qemu:///system  capabilities

> # libvirtd
> libvir: QEMU error : internal error failed to set bridge forward delay to 0
> Failed to autostart network 'default': internal error failed to set
> bridge forward delay to 0

This suggests you are missing the 'brctl' command - it is part
of the bridge-utils packages

Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]