[libvirt-users] error starting virtual machine manager
by Su Zhang
Hi Community,
I encountered an error while launching the virtual machine manger. I
believe that all services have been started including libvirtd, xend,
xencommons, etc. But not sure the reason about this error. Here is the
error information:
Error starting Virtual Machine Manager: Failed to contact configuration
server; some possible causes are that you need to enable TCP/IP networking
for ORBit, or you have stale NFS locks due to a system crash. See
http://projects.gnome.org/gconf/ for information. (Details - 1: Failed to
get connection to session: Did not receive a reply. Possible causes
include: the remote application did not send a reply, the message bus
security policy blocked the reply, the reply timeout expired, or the
network connection was broken.)
Traceback (most recent call last):
File "/usr/share/virt-manager/virt-manager.py", line 383, in <module>
main()
File "/usr/share/virt-manager/virt-manager.py", line 315, in main
config = virtManager.config.vmmConfig(appname, appversion, glade_dir)
File "/usr/share/virt-manager/virtManager/config.py", line 96, in __init__
self.conf.add_dir(self.conf_dir, gconf.CLIENT_PRELOAD_NONE)
GError: Failed to contact configuration server; some possible causes are
that you need to enable TCP/IP networking for ORBit, or you have stale NFS
locks due to a system crash. See http://projects.gnome.org/gconf/ for
information. (Details - 1: Failed to get connection to session: Did not
receive a reply. Possible causes include: the remote application did not
send a reply, the message bus security policy blocked the reply, the reply
timeout expired, or the network connection was broken.)
Does anyone have any ideas on this error?
Thanks in advance,
--
Su Zhang
Ph.D Candidate
Computing and Information Sciences
Kansas State University
12 years, 9 months
[libvirt-users] libvirt and SNMP agent
by Ricardo Hillbrecht
Hi all
I'm working in a MIB to manage virtual machines using SNMP regardless of
VMM manufacturer.
To demonstrate this MIB, I plan to insert libvirt functions inside an SNMP
agent (NET-SNMP agent).
Does anyone know if there is some work using net-snmp and libvirt together,
or can give advice about this ?
Thanks
Hillbrecht
12 years, 9 months
[libvirt-users] Can libvirt set or change the IP address of guest machine
by Harold Fei
To Whom It May Concern:
I use libvirt over one month, I need a function to set the ip address of the
guest machine. One can change the guest ip address will be a great
appreciation. However, I did not find such a feature in the process of
learning libvirt. The purpose of this mail is to ask the experts whether
libvirt provide such a feature. If there is no, how can I implement such
functionality.
Additionally, I already know NAT based network and Routed network can use
DHCP, but I want to use an existing host bridge.
Best Wishes
Harold
12 years, 9 months
Re: [libvirt-users] no connection driver available for No connection for URI xen:///
by Su Zhang
Here it is:
# ll /usr/lib64/libvirt.so.0
lrwxrwxrwx. 1 root root 16 Mar 12 21:19 /usr/lib64/libvirt.so.0 ->
libvirt.so.0.9.4
So you meant that I used a wrong libvirt.so? How can I correct this?
On Thu, Mar 15, 2012 at 10:52 PM, Alex Jia <ajia(a)redhat.com> wrote:
> **
> On 03/16/2012 11:41 AM, Su Zhang wrote:
>
>
>
> On Thu, Mar 15, 2012 at 10:20 PM, Alex Jia <ajia(a)redhat.com> wrote:
>
>> On 03/16/2012 11:02 AM, Su Zhang wrote:
>>
>>
>>
>> On Thu, Mar 15, 2012 at 9:45 PM, Alex Jia <ajia(a)redhat.com> wrote:
>>
>>> On 03/16/2012 05:33 AM, Su Zhang wrote:
>>>
>>>
>>>
>>> On Thu, Mar 15, 2012 at 4:20 PM, Eric Blake <eblake(a)redhat.com> wrote:
>>>
>>>> On 03/15/2012 02:57 PM, Su Zhang wrote:
>>>> > Hi all,
>>>> >
>>>> > I am trying to use virt-install to install domU image. However, I
>>>> > encountered the following issue. It seems that a connection driver is
>>>> > needed for Xen.
>>>> > I am new to both libvirt and Xen. Anyone have any ideas on what's
>>>> wrong
>>>> > with the following error ?
>>>> >
>>>> >
>>>> >
>>>> > # virt-install --connect=xen:/// -p -d
>>>> > Thu, 15 Mar 2012 10:17:55 DEBUG Launched with command line:
>>>> > /usr/bin/virt-install --connect=xen:/// -p -d
>>>> > Thu, 15 Mar 2012 10:17:55 DEBUG Requesting libvirt URI xen:///
>>>> > Thu, 15 Mar 2012 10:17:55 ERROR no connection driver available for
>>>> No
>>>> > connection for URI xen:///
>>>>
>>>> This probably means that your copy of libvirt.so and libvirtd was built
>>>> without xen support. What does
>>>>
>>>> virsh --version=long
>>>>
>>>> say? Also, are you sure libvirtd is running?
>>>>
>>> In addition, I want to know your libvirt.so, libvirtd, xend location,
>>> for example,
>>> # which libvirtd
>>> # which xend
>>> # locate libvirt.so
>>>
>>> Please also make sure xend service is running:
>>> # service xend status
>>>
>>>
>>>> --
>>>> Eric Blake eblake(a)redhat.com +1-919-301-3266
>>>> Libvirt virtualization library http://libvirt.org
>>>>
>>>>
>>> Eric,
>>>
>>> Here is the output:
>>> # virsh --version=long
>>> Virsh command line tool of libvirt 0.9.10
>>> See web site at http://libvirt.org/
>>>
>>> Compiled with support for:
>>> Hypervisors: Xen QEmu/KVM UML OpenVZ VirtualBox LXC Test
>>> Networking: Remote Daemon Network Bridging Nwfilter VirtualPort
>>> Storage: Dir Filesystem SCSI Multipath iSCSI LVM
>>> Miscellaneous: SELinux Secrets Debug
>>>
>>> It seems that it does support Xen.
>>>
>>> Yeah, Xen indeed appears in Hypervisors line.
>>>
>>>
>>> I am not sure if libvirtd is running so I use the following command to
>>> start it:
>>>
>>> [root@XenTester srv]# /etc/rc.d/init.d/libvirtd start
>>>
>>> Right, you may also use service libvirtd start, and check it by service
>>> libvirtd status or ps -ef|grep libvirtd.
>>>
>>>
>>> But the same error is still there.
>>>
>>> Am I using the right way to start libvirtd service? Are there any other
>>> possible reasons of this error?
>>>
>>>
>>> Thanks,
>>>
>>> --
>>> Su Zhang
>>> Ph.D Candidate
>>> Computing and Information Sciences
>>> Kansas State University
>>>
>>>
>>> _______________________________________________
>>> libvirt-users mailing listlibvirt-users@redhat.comhttps://www.redhat.com/mailman/listinfo/libvirt-users
>>>
>>>
>>> Alex,
>>
>> Here is some information:
>>
>> # /etc/init.d/xencommons start
>> Starting xenstored...
>> Setting domain 0 name...
>> Starting xenconsoled...
>> [root@XenTester su]# /etc/init.d/xend start
>> [root@XenTester su]# which libvirtd
>> /usr/local/sbin/libvirtd
>> [root@XenTester su]# which xend
>> /usr/sbin/xend
>> [root@XenTester su]# locate libvirt.so
>> /usr/lib64/libvirt.so.0
>> /usr/lib64/libvirt.so.0.9.4
>> /usr/local/lib/libvirt.so
>> /usr/local/lib/libvirt.so.0
>> /usr/local/lib/libvirt.so.0.9.10
>>
>> You have 2 different libvirt versions 0.9.4 and 0.9.10, and your 0.9.10
>> is put under the
>> /usr/local/lib directory, so I guess you haven't used ./configure with
>> --prefix=/usr option
>> or directly use ./autogen.sh --system when you configure and compile
>> libvirt.
>>
>> And also please yum install strace -y if you haven't installed strace
>> rpm, then run the following operation:
>>
>> # strace -o strace.txt virt-install --connect=xen:/// -p
>>
>> Then attach strace.txt as a attachment.
>>
>> Thanks,
>> Alex
>>
>>
> Alex,
>
> Thanks. I have run ./autogen.sh --system. And "make" and "make install"
> the libvirt once again.
> I encountered one type of errors while running "make install", it seems
> that the installer is looking for a bunch of HTML files under
> /usr/bin/install. here is the error info:
>
> /usr/bin/install: cannot stat `./api.html': No such file or directory
> /usr/bin/install: cannot stat `./api_extension.html': No such file or
> directory
> /usr/bin/install: cannot stat `./apps.html': No such file or directory
> /usr/bin/install: cannot stat `./archdomain.html': No such file or
> directory
> /usr/bin/install: cannot stat `./architecture.html': No such file or
> directory
> /usr/bin/install: cannot stat `./archnetwork.html': No such file or
> directory
> /usr/bin/install: cannot stat `./archnode.html': No such file or directory
> (there are still tens of HTML files missing)
> ....
>
> It's not important for our issues.
>
>
> Do you think this type of errors will affect the functionality of libvirt?
> Also, I checked and it seems that I've the latest strace package
> installed. So I run "strace -o strace.txt virt-install --connect=xen:///
> -p".
> Please find strace.txt attached.
>
> I saw virt-install is opening /usr/lib64/libvirt.so.0 in strace.txt:
>
> open("/usr/lib64/libvirt.so.0", O_RDONLY) = 7
>
>
> I want to confirm whether you're using compiling libvirt 0.9.10,
> ll /usr/lib64/libvirt.so.0 say what?
>
> Thanks,
> Alex
>
>
> Thanks,
>
>> [root@XenTester su]# service xend status
>> [root@XenTester su]# ps -ef|grep libvirtd
>> root 2242 1 0 21:52 ? 00:00:00 libvirtd --daemon
>> root 3295 3112 0 21:59 pts/0 00:00:00 grep libvirtd
>>
>> Can you see if it is normal here?
>>
>> Thanks,
>>
>>
>> --
>> Su Zhang
>> Ph.D Candidate
>> Computing and Information Sciences
>> Kansas State University
>>
>>
>>
>
>
> --
> Su Zhang
> Ph.D Candidate
> Computing and Information Sciences
> Kansas State University
>
>
>
--
Su Zhang
Ph.D Candidate
Computing and Information Sciences
Kansas State University
12 years, 9 months
Re: [libvirt-users] virsh create error : monitor socket did not (Alex Jia)
by Josir Cardoso Gomes
Hi Alex,
when I got this error, it was a vnc listener problem. Is there other
actives vms on this server?
try to change the port number to see if the problem was solved.
<graphics type='vnc' listen='0.0.0.0' port='5909'/>
Good Luck.
Josir Gomes
Date: Thu, 15 Mar 2012 18:07:07 +0800
> From: Alex Jia <ajia(a)redhat.com>
> To: ??? <zhanggp(a)neusoft.com>
> Cc: "libvirt-users(a)redhat.com" <libvirt-users(a)redhat.com>
> Subject: Re: [libvirt-users] ??: ??: virsh create error : monitor
> socket did not
> Message-ID: <4F61BF4B.2030103(a)redhat.com>
> Content-Type: text/plain; charset="gb2312"
>
> On 03/15/2012 05:39 PM, ??? wrote:
> > sorry , i send an error template , our template like this:
> It probably is a bug on libvirt 0.8.7, and I haven't met this issue
> using your XML template on
> rhel6.2 with libvirt-0.9.10-5.el6.x86_64, I'm not sure whether this
> issue is fixed on 0.8.7-18.el6_1.4,
> maybe, you may upgrade your libvirt and then try it again.
>
> For libvirtd log, yeah, it will be very big if you set a low debugger
> level such as level 1, but
> as usual, we need also some debugger information except for error,
> maybe, you can filter
> some important information or set debugger level to higher level to
> avoid a big size log file.
> in addition, if you're run virt-manager please close it, otherwise,
> libvirt will record many
> debugger information into libvirtd.log.
>
> BTW, if you don't want log file eat your the whole disk space, please
> remember to change
> libvirtd.conf debugger level then remove libvirtd.log and restart
> libvirtd service.
>
> Regards,
> Alex
> > <domain type='kvm'
> > xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
> > <name>one-9</name>
> > <vcpu>1</vcpu>
> > <memory>524288</memory>
> > <os>
> > <type arch='x86_64'>hvm</type>
> > <boot dev='hd'/>
> > </os>
> > <devices>
> > <emulator>/usr/bin/kvm</emulator>
> > <disk type='file' device='disk'>
> > <source file='/one_images/9/images/disk.0'/>
> > <target dev='hda'/>
> > <driver name='qemu' type='raw' cache='default'/>
> > </disk>
> > <disk type='file' device='cdrom'>
> > <source file='/one_images/9/images/disk.1'/>
> > <target dev='hdc'/>
> > <readonly/>
> > <driver name='qemu' type='raw'/>
> > </disk>
> > <interface type='bridge'>
> > <source bridge='kvmbr0'/>
> > <mac address='02:00:0b:01:01:03'/>
> > </interface>
> > <graphics type='vnc' listen='0.0.0.0' port='5909'/>
> > </devices>
> > <features>
> > <acpi/>
> > </features>
> > </domain>
> > ------------------------------------------------------------------------
> > ???
> > *????* ??? <mailto:zhanggp@neusoft.com>
> > *?????* 2012-03-15 17:25
> > *????* Alex Jia <mailto:ajia@redhat.com>
> > *???* ??: Re: [libvirt-users] virsh create error : monitor socket
> > did not
> > Hi?
> > my libvirt version is 0.8.7 and qemu-kvm-0.12.1.2 on redhat6.1.
> > I don't set libvirt log, so thank you for reminding me.
> > I think my template is right ,because my code generate automatically.
> > But i would like to share with you and find the problem.
> > By the way , i configured the libvirt log, and i find this file kept
> > getting bigger. If this file becomes large enough , i don't think it's
> > a good thing , so, you must have some advise to handle it ,right?
> > Thanks.
> > ------------------------------------------------------------------------
> > ???
> > *????* Alex Jia <mailto:ajia@redhat.com>
> > *?????* 2012-03-15 16:56
> > *????* ??? <mailto:zhanggp@neusoft.com>
> > *???* libvirt-users <mailto:libvirt-users@redhat.com>
> > *???* Re: [libvirt-users] virsh create error : monitor socket did not
> > On 03/15/2012 11:31 AM, ??? wrote:
> >> Hi,
> >> Occasionally I run into this situation , i created a vm-template and
> >> i use "virsh create vm-template " to start a vm .After a pause , i
> >> got this error :
> >> virsh create error : monitor socket did not ;
> > Could you provide your libvirt & qemu-kvm version ? what's your
> > platform? fedora or others?
> >> Then i try again with the same template and the same command , my vm
> >> created successfully.
> >> I try to find something in the file of
> >> /var/log/libvrit/qemu/vm-template.log, but i cannot find useful
> >> things except some parameters.
> > However, it's helpful if you may attach the above log as a attachment.
> > in addition, you may add the following lines into
> > /etc/libvirt/libvirtd.conf and restart libvirtd service then repeat
> > 'virsh create vm-template' again:
> >
> > log_filters="3:remote 3:event 1:qemu 1:libvirt 1:conf"
> > log_outputs="1:file:/var/log/libvirt/libvirtd.log"
> >
> > Could you attach /var/log/libvirt/libvirtd.log as a attachment in here?
> >> So , i wonder whether my host running vms too much ? I make sure that
> >> my template is right, and this error occasionally appear a few times.
> > But if you can attach your guest XML template as a attachment, maybe,
> > I can exclude other reason.
> >
> > Regards,
> > Alex
> >> Can someone teach me ?
> >> Thanks.
> >> Best regards.
> >> ------------------------------------------------------------------------
> >> ???
> >> tel: 13718913184
> >> mail: zhanggp(a)neusoft.com <mailto:zhanggp@neusoft.com>
> >> ????????
> >> ??????????
> >> http://www.neusoft.com
> >>
> ---------------------------------------------------------------------------------------------------
> >> Confidentiality Notice: The information contained in this e-mail and
> >> any accompanying attachment(s)
> >> is intended only for the use of the intended recipient and may be
> >> confidential and/or privileged of
> >> Neusoft Corporation, its subsidiaries and/or its affiliates. If any
> >> reader of this communication is
> >> not the intended recipient, unauthorized use, forwarding, printing,
> >> storing, disclosure or copying
> >> is strictly prohibited, and may be unlawful.If you have received this
> >> communication in error,please
> >> immediately notify the sender by return e-mail, and delete the
> >> original message and all copies from
> >> your system. Thank you.
> >>
> ---------------------------------------------------------------------------------------------------
> >>
> >>
> >>
> >> _______________________________________________
> >> libvirt-users mailing list
> >> libvirt-users(a)redhat.com
> >> https://www.redhat.com/mailman/listinfo/libvirt-users
> >
> >
> ---------------------------------------------------------------------------------------------------
> > Confidentiality Notice: The information contained in this e-mail and
> > any accompanying attachment(s)
> > is intended only for the use of the intended recipient and may be
> > confidential and/or privileged of
> > Neusoft Corporation, its subsidiaries and/or its affiliates. If any
> > reader of this communication is
> > not the intended recipient, unauthorized use, forwarding, printing,
> > storing, disclosure or copying
> > is strictly prohibited, and may be unlawful.If you have received this
> > communication in error,please
> > immediately notify the sender by return e-mail, and delete the
> > original message and all copies from
> > your system. Thank you.
> >
> ---------------------------------------------------------------------------------------------------
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> https://www.redhat.com/archives/libvirt-users/attachments/20120315/d9139b...
> >
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: not available
> Type: image/jpeg
> Size: 11635 bytes
> Desc: not available
> URL: <
> https://www.redhat.com/archives/libvirt-users/attachments/20120315/d9139b...
> >
>
> ------------------------------
>
> _______________________________________________
> libvirt-users mailing list
> libvirt-users(a)redhat.com
> https://www.redhat.com/mailman/listinfo/libvirt-users
>
> End of libvirt-users Digest, Vol 27, Issue 27
> *********************************************
>
12 years, 9 months
[libvirt-users] no connection driver available for No connection for URI xen:///
by Su Zhang
Hi all,
I am trying to use virt-install to install domU image. However, I
encountered the following issue. It seems that a connection driver is
needed for Xen.
I am new to both libvirt and Xen. Anyone have any ideas on what's wrong
with the following error ?
# virt-install --connect=xen:/// -p -d
Thu, 15 Mar 2012 10:17:55 DEBUG Launched with command line:
/usr/bin/virt-install --connect=xen:/// -p -d
Thu, 15 Mar 2012 10:17:55 DEBUG Requesting libvirt URI xen:///
Thu, 15 Mar 2012 10:17:55 ERROR no connection driver available for No
connection for URI xen:///
Thu, 15 Mar 2012 10:17:55 DEBUG Traceback (most recent call last):
File "/usr/bin/virt-install", line 1004, in <module>
sys.exit(main())
File "/usr/bin/virt-install", line 984, in main
conn = cli.getConnection(options.
connect)
File "/usr/lib/python2.6/site-packages/virtinst/cli.py", line 327, in
getConnection
conn = open_connection(uri)
File "/usr/lib/python2.6/site-packages/virtinst/cli.py", line 342, in
open_connection
open_flags)
File "/usr/lib64/python2.6/site-packages/libvirt.py", line 102, in
openAuth
if ret is None:raise libvirtError('virConnectOpenAuth() failed')
libvirtError: no connection driver available for No connection for URI
xen:///
By the way, Xen is installed successfully as both "xm list" and "xm info"
can output appropriately.
Thanks,
--
Su Zhang
Ph.D Candidate
Computing and Information Sciences
Kansas State University
12 years, 9 months
[libvirt-users] Prevent starting a guest concurrently on multiple hosts when using shared storage
by Andreas Ntaflos
Hi list,
Scenario: Libvirt managing KVM-based guests on multiple physical
virtualisation hosts. These hosts are attached to some kind of shared
storage, be it NFS, GFS2 or whatever. Guest images live on the shared
storage so that VMs can be migrated (live or not) between the physical
hosts. Basically all Libvirt hosts have definitions of all guests.
How can I prevent the same guest from being started on different hosts
concurrently, either by accident or intentionally? As far as I can see
there is no locking or similar mechanism that would indicate to the
Libvirt daemon that a guest (and its VM image) is already running on/in
use by another host.
This might be a very basic question but I can't seem to find a
satisfying answer. Is it even possible? Or does using a shared storage
mean that one has to be really, really careful what to start, and where?
Is this even something for which Libvirt should be responsible?
Any insight is appreciated.
Thanks,
Andreas
12 years, 9 months
[libvirt-users] Host does not support virtualization type 'xen'
by Su Zhang
Hello Community,
I successfully installed and run xen (xm list and xm info (but virt_caps
only has hvm) can output appropriately).
However, while I was installing domU image by using virt-install -p at
domU OS. I encountered an
error information" Host does not support virtualization type 'xen' ".
I built xen from source. Some of my friends have the same issue, but if
they use pre-build xen, the issue will go away.
However, I want to insist in using my version of xen (build from source).
Does anyone can give any hint about this error?
I asked the same question at xen community and they said this is not a
issue from xen but libvirt. Meanwhile they told me I need to rebuild
libvirt to adapt my current version of Xen.
However, after I re-build xen (download, decompress, ./configure, make,
make install), the error is still there.
Can anyone let me know if I built the libvirt correctly? Do I need to do
anything specific to my current version (4.1.2) of Xen?
I'll appreciate if any suggestions can be given,
Thanks,
--
Su Zhang
Ph.D Candidate
Computing and Information Sciences
Kansas State University
12 years, 9 months
[libvirt-users] Setup a network
by Felix Blanke
Hello,
this isn't a bug report or an advanced usage question. This is just a
question from a noob who is new to kvm and needs some help to setup a
network between the host and the guests. If you're willing to spend a
little time to help me out please continue reading :)
See the attached image for more information. I have a host running with
a public ip adress. I want to setup some vm for different tasks
(webserver, mailserver, database, fileserver). I need to setup a network
where the host can speak to the guests, the guest can speak to each
other and the guests can speak to the host (meaning to the internet).
The host also works as a firewall.
Some examples:
A) A package for the webserver (port 80) needs to be routed fron the
host to the vm1.
B) The mailserver needs to access the database.
C) The mailserver needs to access the internet for sending an email.
So every vm needs one interface. I don't know if it would work if I
setup one virtual switch for the guest interconnections and use the host
as a router to route the different ports to the vm interfaces.
I hope this wasn't so confusing :) What would be the best way to
accomplish my goal using virt-install and virsh. Thanks for everyone who
is trying to help me out.
Kind regards,
Felix
12 years, 9 months