Displaying 12 results from an estimated 12 matches for "network_nam".
Did you mean:
network_name
2016 Mar 01
0
Insert iptables rules with network hook
Hi,
I wan?t to add iptables rules between existing rules and the rules created
by libvirt (forward type=nat).
I did try the hook
/etc/libvirt/hooks/network network_name start begin -
and
/etc/libvirt/hooks/network network_name started begin -
It seems like the libvirt iptables rules are already inserted when
this hook is executed.
Simply use ?I instead of ?A does not work either because the rules should be
inserted between the existing one and the libvirt r...
2009 Jul 21
2
[PATCH node-image] Adds a preserve option for autotest VMs.
...yl L. Pierce <dpierce at redhat.com>
---
autotest.sh | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/autotest.sh b/autotest.sh
index c9f8a2d..b72ec98 100755
--- a/autotest.sh
+++ b/autotest.sh
@@ -219,6 +219,9 @@ stop_networking () {
networkname=${NETWORK_NAME-}
fi
+ # exit if preserve was enabled
+ if $preserve_vm; then return; fi
+
if [ -n "${networkname}" ]; then
debug "Destroying network interface: ${networkname}"
check=$(sudo virsh net-list --all)
@@ -388,6 +391,9 @@ destroy_node () {
loc...
2014 Oct 16
3
question about libvirt network Xml
Hi,
I’m an openstack developer trying to use
Assignment from a pool of SRIOV VFs in a libvirt <network> definition
from this link http://wiki.libvirt.org/page/Networking
My question is is it possible for nova (the openstack compute) to know which VF out of the pool will be allocated to a VM before it invokes libvirt to launch it?
Thanks In advance,
Robert
2014 Apr 06
3
Changing dnsmasq DNS settings for virtual machines
....254" /> <host
> mac="00:16:3e:e2:ed" name="foo.example.com" ip="192.168.122.10" />
> </dhcp> </ip>
One possible workaround:
My system-dnsmasq reads /etc/hosts_whatever, and apparently the
libvirtd-dnsmasq reads var/lib/libvirt/dnsmasq/NETWORK_NAME.addnhosts.
I could copy my hosts_whatever in that place, but I had to configure
the libvirtd-dnsmasq what my local domains are.
Which brings me to the next question:
How to set the addn-hosts= for the libvirtd-dnsmasq in the xml file?
Regards,
Johannes
- --
A good sermon should be like a woman&...
2020 Mar 21
0
Fwd: KVM hook
...cked the libvirtd.log and found that only $2==
start or $2==started gets invoked.
In my case i would like to get network created in infoblox appliance as and
when it gets created in the KVM and should get deleted as and when it gets
deleted from the KVM.
Here is snippet of my script
#!/bin/bash
network_name=`xml_grep --text_only hookData/network/name
/etc/libvirt/hooks/net_details`
network=`xmllint --xpath hookData/network/ip/@address
/etc/libvirt/hooks/net_details|cut -d "=" -f2|tr -d '"'`
network_mask=`ipcalc $network |awk '/Network/{print$2}'`
if [[ $2=="beg...
2020 Aug 17
2
Post-firewall hook to insert custom rules?
Hello, I have a set of iptables rules that I need to insert *after* libvirt
has set up all of its firewall rules. Is there a hook that I can tap into in
order to run something like a custom script to make sure this happens? Any ideas?
-GN
2020 Aug 17
0
Re: Post-firewall hook to insert custom rules?
...;
> -GN
>
You should be able to use a libvirt network hook script to do this:
https://libvirt.org/hooks.html
Basically you put an executable script in /etc/libvirt/hooks/network
Once the network is started, the hook will be called with this commandline:
/etc/libvirt/hooks/network network_name started begin -
stdin will contain the entire network XML definition in case you want
details, or want to extract some task-specific metadata from the network
definition (syntax for that is here:
https://libvirt.org/formatnetwork.html#elementsMetadata )
The same script will be called before t...
2012 Apr 19
1
Using eth0 on desktops with single network interface
What is the best way to stop CentOS 6 from renaming the eth0 interface to em1? I've googled a bit and found many relevant posts, but have still not come up with an elegant solution. One of the resources I found was http://www.arachnoid.com/linux/network_names/index.html, and while the Python script contained therein does create a new udev rule that renames em1 back to eth0 it feels kludgy and requires me to manually create the ifcfg-eth0 script. I'm looking for a way to stop udev from renaming the interface in the first place, preferably somethin...
2014 Apr 10
0
Re: Changing dnsmasq DNS settings for virtual machines
...ost
>> mac="00:16:3e:e2:ed" name="foo.example.com" ip="192.168.122.10" />
>> </dhcp> </ip>
> One possible workaround:
> My system-dnsmasq reads /etc/hosts_whatever, and apparently the
> libvirtd-dnsmasq reads var/lib/libvirt/dnsmasq/NETWORK_NAME.addnhosts.
> I could copy my hosts_whatever in that place, but I had to configure
> the libvirtd-dnsmasq what my local domains are.
>
> Which brings me to the next question:
> How to set the addn-hosts= for the libvirtd-dnsmasq in the xml file?
You do that with the <host> sub...
2017 Jul 03
2
Broken br0
Hello,
I wanted to get an extra IP on my local NIC, so I ran `sudo ip addr add
192.168.1.130/24 dev enp4s0`. This didn't work as intended, so I thought
I'd restart the Ubuntu system to have things back to how they were.
Alas, this didn't happen. While the host still has network as usual, none
of the VMs are able to get a DHCP lease from the router, or any
connectivity at all.
I can
2014 Aug 04
3
Tinc Network Spikes
...nodes participate in the spike. Some nodes just have a spike on output, some only on input.
?
I see a bunch of these lines in the logs on all the servers with the spikes, each about one or two other nodes:
```
Got late or replayed packet from <NODE_NAME> (<INTERNAL_IPv6_ADDRESS>%<NETWORK_NAME> port 655), seqno 235266, last received 235410
```
?
What causes this and is there a way to prevent these spikes? I estimate an extra 4-5GB of extra bandwidth usage per node because of this.
?
Regards,
Mark Lopez
?
-------------- next part --------------
An HTML attachment was scrubbed....
2010 Mar 26
3
[PATCH node] Update autobuild and autotest scripts for new build structure
...twork interface
+# $1 - the network name
+# $2 - stop dnsmasq (def. false)
+stop_networking () {
+ local networkname=${1-}
+ local stop_dnsmasq=${2-true}
+
+ # if no network was supplied, then check for the global network
+ if [ -z "$networkname" ]; then
+ networkname=${NETWORK_NAME-}
+ fi
+
+ # exit if preserve was enabled
+ if $preserve_vm; then return; fi
+
+ if [ -n "${networkname}" ]; then
+ debug "Destroying network interface: ${networkname}"
+ check=$(sudo virsh net-list --all)
+ if [[ "${check}" =~ "$...