Re: [libvirt-users] virRandomBits - not very random

2018-05-25 Thread Brian Rak
On 5/25/2018 8:58 AM, Eric Blake wrote: Reviving an ancient thread: On 11/04/2014 02:18 AM, Daniel P. Berrange wrote: On Mon, Nov 03, 2014 at 11:09:12AM -0500, Brian Rak wrote: I just ran into an issue where I had about 30 guests get duplicate mac addresses assigned.  These were scattered

[libvirt-users] Migration command regression as of 1.3.4

2016-06-08 Thread Brian Rak
Per the documentation, https://libvirt.org/migration.html#scenarionativedirect , 'virsh migrate domain dest interface' was a support command. As of 1.3.4 (when compression support was added), it's not. For example: # virsh migrate test qemu+ssh://10.0.0.1/system tcp://10.0.0.1/ error: invali

[libvirt-users] CentOS 6 and 1.3.3

2016-04-12 Thread Brian Rak
libvirt 1.3.3 seems to have introduced some kind of issue on CentOS 6 (no systemd). After upgrading, libvirt would take an incredibly long time to get to a state where it would actually respond to a simple 'virsh list' command. Looking at verbose output showed this repeating at exactly 30s in

Re: [libvirt-users] Monitoring passthrough(SR-IOV) interfaces

2015-09-10 Thread Brian Rak
Monitor from the router level using netflow/sflow On 9/10/2015 12:36 PM, Tashi Lu wrote: Hi all, is it possible to monitor guest's interface's stat which uses SR-IOV virtual function? I don't know how qemu/libvirt implement monitoring, if functions like interfaceStats are implemented in the h

Re: [libvirt-users] QEMU interface type=ethernet

2015-04-21 Thread Brian Rak
On 3/3/2015 1:49 AM, Vasiliy Tolstov wrote: 2015-03-02 23:41 GMT+03:00 Brian Rak : In IRC, I was directed to this patch: https://www.redhat.com/archives/libvir-list/2015-February/msg01212.html ... which does exactly what I was looking for. It doesn't build cleanly in that state, but

Re: [libvirt-users] virsh dom state

2015-03-23 Thread Brian Rak
On 3/23/2015 12:49 PM, Michal Privoznik wrote: On 23.03.2015 16:02, Fiorenza Meini wrote: Hi there, I'm running KVM under Openstack . When I give virsh list command, I see some VM in NON persistent state. What does it mean? How can I move it to a persisten state ? You can do that by running:

[libvirt-users] Issues with XML validation after upgrade to 1.2.12

2015-03-10 Thread Brian Rak
After we upgraded to 1.2.12, we've been having issues with libvirt... it complains that our formerly valid guest definitions are now invalid: error: Failed to start domain error: internal error: Cannot instantiate filter due to unresolvable variables or unavailable list elements: DHCPSERVE

Re: [libvirt-users] QEMU interface type=ethernet

2015-03-02 Thread Brian Rak
On 3/2/2015 1:41 PM, Brian Rak wrote: With Libvirt under modern kernels, you can't use type='ethernet'> unless QEMU is running as root. Running qemu as root is not ideal, but I was able to track down the issue to this linux change: http://git.kernel.org/cgit/linux/k

[libvirt-users] QEMU interface type=ethernet

2015-03-02 Thread Brian Rak
With Libvirt under modern kernels, you can't use type='ethernet'> unless QEMU is running as root. Running qemu as root is not ideal, but I was able to track down the issue to this linux change: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=ca6bb5d7ab22ac79f608fe6cbc

Re: [libvirt-users] live migration taking forever

2015-01-22 Thread Brian Rak
If the guest is modifying memory faster then your network connection can sync it, the migration will never finish. I've worked around this in the past by running 'virsh suspend' on the source host. This will temporarily stop the guest, and allow the migration to finish. On 1/22/2015 1:11 PM

[libvirt-users] virRandomBits - not very random

2014-11-03 Thread Brian Rak
I just ran into an issue where I had about 30 guests get duplicate mac addresses assigned. These were scattered across 30 different machines. Some debugging revealed that: 1) All the host machines were restarted within a couple seconds of each other 2) All the host machines had fairly similar

Re: [libvirt-users] fstrim support in libvirt/qemu guests

2014-11-03 Thread Brian Rak
On 11/3/2014 8:43 AM, Andrey Korolyov wrote: On Mon, Nov 3, 2014 at 4:24 PM, Michal Privoznik wrote: On 01.11.2014 05:30, Dennis Jacobfeuerborn wrote: Hi, I'm trying to find out how to enable fstrim support for libvirt/qemu guests. Specifically I'm trying to enable this on a CentOS 7 host (qe

Re: [libvirt-users] win2k8 guest and (strange) number of cpus task manager sees

2014-09-18 Thread Brian Rak
Windows has limits on the number of CPUs it can use based on the license level you have (Standard, Enterprise, etc). You need to present the CPUs as two physical CPUs with multiple cores to get around this. On 9/18/2014 5:14 AM, lejeczek wrote: hi everybody a qemu-kvm guest gets 16 cpus and

Re: [libvirt-users] Does virsh actually work?

2014-09-03 Thread Brian Rak
Try creating a blank file on the target system at /mnt/store01/virt/e7f75b9b-9ed4-4f7e-aa86-e481ab911d6f.qcow2 on 'dewey'. Migrations really don't go well when the target disk doesn't exist. I'm not certain why this is, I think the migration feature was mainly built with shared storage in mind

Re: [libvirt-users] multicast traffic no longer working after reboot

2014-07-31 Thread Brian Rak
This sounds a lot like you have IGMP snooping enabled, but you don't have anything sending the periodic IGMP queries. We've seen things like this when the network is configured for IGMP, but no querier exists. Things will work correctly for a few minutes after they start up, then suddenly sto

[libvirt-users] NWFilter mac address matches chain

2014-06-30 Thread Brian Rak
The documentation indicates ( via http://libvirt.org/formatnwfilter.html#nwfelemsRulesProtoMAC ) that rule types should go in the 'root' chain, however one of the example rules ( from http://libvirt.org/git/?p=libvirt.git;a=blob_plain;f=examples/xml/nwfilter/no-mac-broadcast.xml;hb=HEAD ) has

Re: [libvirt-users] Updating domain XML issue

2014-05-29 Thread Brian Rak
Okay, let's try this another way... how are people dynamically attaching/removing cdroms from guests, without requiring a guest restart? On 5/22/2014 4:14 PM, Brian Rak wrote: I'm trying to unmount a guest cdrom using libvirt_domain_update_device (via php-libvirt). The gues

Re: [libvirt-users] nwfilter usage

2014-05-28 Thread Brian Rak
On 5/28/2014 10:10 AM, Laine Stump wrote: On 05/27/2014 02:46 AM, Brian Rak wrote: Make sure you have: /proc/sys/net/bridge/bridge-nf-call-iptables = 1 That doesn't make sense. bridge-nf-call-iptables controls whether or not traffic going across a Linux host bridge device will be

Re: [libvirt-users] nwfilter usage

2014-05-26 Thread Brian Rak
Make sure you have: /proc/sys/net/bridge/bridge-nf-call-iptables = 1 On 5/26/2014 1:35 PM, Matt LaPlante wrote: I'm trying to accomplish what I had hoped would be a fairly simple filtering of traffic to my VMs, but I'm hitting a snag. The VMs are allowing traffic when I wouldn't expect them to

[libvirt-users] Updating domain XML issue

2014-05-22 Thread Brian Rak
I'm trying to unmount a guest cdrom using libvirt_domain_update_device (via php-libvirt). The guest cdrom is currently mounted via Ceph, via this XML: In order to unmount it, I'm trying to use this XML:

Re: [libvirt-users] Ability of a VM to detect Libvirt events.

2014-04-26 Thread Brian Rak
How are you thinking that a VM would be paused/rebooted via something other then the hypervisor? On 4/26/2014 5:46 PM, Taimur Al Said wrote: Hi there, Let's assume a libvirt event occurred on a VM, i.e an event like pause VM or reboot VM or any other libvirt event. Can the VM determine that

Re: [libvirt-users] Recreating nwfilter rules without a restart

2014-03-26 Thread Brian Rak
On 3/26/2014 3:50 PM, Brian Rak wrote: Let's say I have some iptables rules defined to restrict guest traffic. If I restart the hosts firewall 'service iptables restart', all the guest-specific rules get blown away. Is there a way to reapply all the guest firewall rules, with

[libvirt-users] Recreating nwfilter rules without a restart

2014-03-26 Thread Brian Rak
Let's say I have some iptables rules defined to restrict guest traffic. If I restart the hosts firewall 'service iptables restart', all the guest-specific rules get blown away. Is there a way to reapply all the guest firewall rules, without restarting each individual guest? It looks like if

[libvirt-users] Undoing domiftune changes

2014-03-17 Thread Brian Rak
If I apply some network limits with domiftune, how do I undo them (without restarting the VM?) So let's say I did: # virsh domiftune SRVID8736 vnet0 inbound.average: 0 inbound.peak : 0 inbound.burst : 0 outbound.average: 0 outbound.peak : 0 outbound.burst : 0 # virsh domiftune SRVID8736 vn

Re: [libvirt-users] "connection refused", but server is listening

2014-03-07 Thread Brian Rak
On 3/7/2014 3:53 PM, Pasquale Dir wrote: The is no *censored* way to restart the libvirt daemon: it just leads to hang. This is probably caused by udev... After you restart libvirt, do: pstree -p `cat /var/run/libvirtd.pid` You'll probably see a udev process. Kill it, and libvirt should r

[libvirt-users] IPv6 nwfilter

2014-03-05 Thread Brian Rak
Are there any nwfilter rules out there for IPv6? I'm looking for something similar to clean-traffic, but that works with IPv6. I found some mailing list posts from 2012 ( https://www.redhat.com/archives/libvirt-users/2012-November/msg00039.html ), but they don't seem to actually go anywhere.

Re: [libvirt-users] SR-IOV Pool Availability

2013-09-05 Thread Brian Rak
Thanks, that's very helpful. On 9/4/2013 10:36 PM, hongming wrote: On 08/28/2013 05:25 AM, Brian Rak wrote: If I'm using the SR-IOV Pool assignment method (from http://wiki.libvirt.org/page/Networking#Assignment_from_a_pool_of_SRIOV_VFs_in_a_libvirt_.3Cnetwork.3E_definition ), h

[libvirt-users] SR-IOV Pool Availability

2013-08-27 Thread Brian Rak
If I'm using the SR-IOV Pool assignment method (from http://wiki.libvirt.org/page/Networking#Assignment_from_a_pool_of_SRIOV_VFs_in_a_libvirt_.3Cnetwork.3E_definition ), how would I check how many virtual functions are already in use? Is there a method other then looping through all the active