[libvirt-users] problem with libvirt and ovs bridge
by Anna Giannakou
Hello,
I have created an ovs bridge on which i have attached a port. I would like to connect my vm to that port,so i have created an xml defining the network.
The xml is:
<network>
<name>ovs-snort</name>
<forward mode='bridge'/>
<bridge name='snort'/>
<virtualport type='openvswitch'/>
</network>
but when i do virsh net-define /tmp/ovsnetwork.xml i get the error
error: XML error: unexpected virtualport type -1
My libvirt version is 1.2.9
Can you guide me through that?
10 years, 2 months
Re: [libvirt-users] problem with libvirt and ovs bridge
by Kashyap Chamarthy
[Please keep such technical discussions on list, so others can correct
me or might have better ideas.]
On Tue, Oct 28, 2014 at 06:08:02PM +0100, Anna Giannakou wrote:
> Thank you for the quick reply. I tried to remove the <virtualport
> type='openvswitch'/> line from the network xml and now the network is
> created. However when i try to launch the vm with virt-install i get
> again the error Unable to add bridge snort port vnet0: Operation not
> supported which was what led me to upgrade my libvirt version
>
> Any other ideas?
Sorry, I don't have an immediate test env to try this, maybe you can
examine your debug logs to see if you find more meaningful clues
log_level = 1
log_outputs="1:file:/var/tmp/libvirtd.log"
in /etc/libvirt/libvirtd.conf
Restart libvirtd. (And, don't forget to turn it off, once you finish
your debugging - it'll fill your disk space pretty quickly, otherwise.)
--
/kashyap
> ----- Original Message -----
> > From: "Kashyap Chamarthy" <kchamart(a)redhat.com>
> > To: "Anna Giannakou" <anna.giannakou(a)inria.fr>
> > Cc: libvirt-users(a)redhat.com
> > Sent: Tuesday, 28 October, 2014 5:46:46 PM
> > Subject: Re: [libvirt-users] problem with libvirt and ovs bridge
> >
> > On Tue, Oct 28, 2014 at 05:32:58PM +0100, Anna Giannakou wrote:
> > > Hello,
> > > I have created an ovs bridge on which i have attached a port. I would like
> > > to connect my vm to that port,so i have created an xml defining the
> > > network.
> > > The xml is:
> > > <network>
> > > <name>ovs-snort</name>
> > > <forward mode='bridge'/>
> > > <bridge name='snort'/>
> > > <virtualport type='openvswitch'/>
> > > </network>
> > > but when i do virsh net-define /tmp/ovsnetwork.xml i get the error
> > > error: XML error: unexpected virtualport type -1
> > > My libvirt version is 1.2.9
> > > Can you guide me through that?
> > >
> >
> > Hmm, I haven't tested this lately, but here's some old notes on Libvirt
> > and Open vSwitch:
> >
> > http://kashyapc.com/2013/07/13/configuring-libvirt-guests-with-an-open-vs...
> >
> > And a related thread from libvirt users list:
> >
> > https://www.redhat.com/archives/libvirt-users/2013-April/msg00044.html
> >
> >
> > --
> > /kashyap
> >
10 years, 2 months
[libvirt-users] wrong time in guest logs
by Lentes, Bernd
Hi,
i have several vm's running on KVM hosts. Recently i found out that the time in the log-files of the guests (/var/log/libvirt/qemu/xxx.log) is wrong. The time on the guest itself is right, just the time in the log-files is one hour back. Windows and linux vm's are affected. Also on another host the same. Changing the clock offset does not have any influence, still the wrong time in the log file.
Any ideas ?
Bernd
--
Bernd Lentes
Systemadministration
Institut für Entwicklungsgenetik
Gebäude 35.34 - Raum 208
HelmholtzZentrum münchen
bernd.lentes(a)helmholtz-muenchen.de
phone: +49 89 3187 1241
fax: +49 89 3187 2294
http://www.helmholtz-muenchen.de/idg
Die Freiheit wird nicht durch weniger Freiheit verteidigt
Helmholtz Zentrum München
Deutsches Forschungszentrum für Gesundheit und Umwelt (GmbH)
Ingolstädter Landstr. 1
85764 Neuherberg
www.helmholtz-muenchen.de
Aufsichtsratsvorsitzende: MinDir´in Bärbel Brumme-Bothe
Geschäftsführer: Prof. Dr. Günther Wess, Dr. Nikolaus Blum, Dr. Alfons Enhsen
Registergericht: Amtsgericht München HRB 6466
USt-IdNr: DE 129521671
10 years, 2 months
[libvirt-users] Will over-allocation of vCPUs be counterproductive to VM Win7 Ultimate?
by Allen Qiu
Hi all,
Will over-allocation of vCPUs be counterproductive to VM Win7 Ultimate? I allocated 32 (out of 64 physical cores in 8 NUMA cells, and 128G out of 2T physical RAM) to the VM. But the boot process was extremly slow, actually the desktop screen never showed up then the VM just reboot automatically. So is there anything I can do to solve this problem or the truth is Win7 by design just cannot handle that mount of CPUs even with Win7 Ultimate?
Regards,
Allen
2014-10-28
Allen Qiu
10 years, 2 months
[libvirt-users] an error caused by lxc-enter-namespace command
by WANG Cheng D
Dear all,
On my last post "Why a "core dump" error occurs when a thread exits in container but it's correct when running in native linux" might be misleading. I did further test and the steps are described below.
1) First, the container is started (we have the first terminal window)
2) Use virsh lxc-enter-namespace command to open another terminal (we have the second terminal)
3) Execute "exit" in the first terminal to quit container
4) Then an error is reported by the second terminal "internal error; child process (XXX) unexpected fatal signal 9" and the terminal is frozen then.
How I solved this problems?
Best regards,
Cheng
10 years, 2 months
[libvirt-users] Why a "core dump" error occurs when a thread exits in container but it's correct when running in native linux
by WANG Cheng D
Dear all,
When I run my application in a container, sometimes the thread can exit correctly, sometime a "core dump" error occurs when it exits.
But the application always exits correctly when it runs in a native fedora.
Malloc() and free() functions are used in my application. I wonder if this is the reason for the core dump error. Is the thread exit event treated differently by the container and native OS? Or if I need to tune some options for memory in container's XML configuration file?
Best wishes,
Cheng
10 years, 2 months
[libvirt-users] What is the difference between running "virt-manager" and "sudo virt-manager"?
by Allen Qiu
Hi all,
What is the difference between starting virt-manager by "virt-manager" and by "sudo virt-manager"? It seems that there are two copy of virt-manager running in the background.
When I run "virt-manager", I got a error of "Unable to open a connection to the libvirt management daemon. Libvirt URI is: qemu:///system Verify that: - The 'libvirtd' daemon has been started".
Whereas when I run "sudo virt-manager", I got a error of "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."
How should I deal with the two issues respectively? Is there any drawback by simply running "virt-manager"?
Regards,
Allen
2014-10-27
Allen Qiu
10 years, 2 months
Re: [libvirt-users] (no subject)
by Eric Blake
On 12/31/1969 05:00 PM, wrote:
> Hi all,
[your 800k .bmp file prevented your message from getting through the
mailing list filter, which caps mail around 100k for a reason. Please,
just describe your problem in plain text, or if you MUST point people to
a screenshot, have your email simply contain a URL to a dropbox
containing the screenshot, rather than sending it directly to the list.
Also, .bmp is a lousy format; .png sends just as much information in a
much smaller file size]
> It seems no matter how many vCPU I allocated to the VM, the auto-generated vCPU pinning configuration won't cover more than 8 CPUs. Is that normal? Otherwise what should I do? Will vCPU pinning by virsh be more effective?
virt-manager tries to be a gui wrapper around the same API as you can
access directly via virsh; but sometimes virt-manager lags behind. Try
doing it directly with virsh, to see if what you are attempting is even
supported by libvirt and is just waiting on virt-manager to catch up.
> Regards,
> Allen
>
>
> 2014-10-28
>
>
>
> Allen Qiu
>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
10 years, 2 months