Out of the box F12 64bit fairly slim install with 497 packages, NetworkManager 
is not running. It's been chkconfig'd off in the kickstart %post.

There is an eth0 and an eth1 interface. Eth1 is inactive and eth0 is configured 
by anaconda to use dhcp. Netcf 0.1.4 fails run:

[r...@localhost bin]# ncftool
Failed to initialize netcf
error: unspecified error
error: errors in loading some config files

Virsh refuses to use netcf-libs as well:

[r...@localhost bin]# virsh iface-define /tmp/br0.xml 
error: Failed to define interface from /tmp/br0.xml
error: this function is not supported by the hypervisor: virInterfaceDefineXML

However, if I manually create a bridge like this:

[r...@localhost network-scripts]# cat ifcfg-br0
DEVICE=br0
ONBOOT=yes
TYPE=Bridge
BOOTPROTO=dhcp
[r...@localhost network-scripts]# cat ifcfg-eth0
DEVICE=eth0
HWADDR=
ONBOOT=yes
BRIDGE=br0

[r...@localhost network-scripts]# service network restart


Then netcf does run, and libvirt is happy to use it.
[r...@localhost network-scripts]# virsh iface-list --all
Name                 State      MAC Address
--------------------------------------------
br0                  active     00:22:19:65:f9:c9
lo                   active     00:00:00:00:00:00
eth1                 inactive   00:22:19:65:f9:cb

If I service network stop, netcf is still happy to run. I'm not sure what 
dependency is changing to make netcf functional.


My goal was to put something like this in my kickstart:

virsh net-destroy default
virsh net-undefine default
cat <<EOF > /tmp/br0.xml
<interface type='bridge' name='br0'>
  <start mode='onboot'/>
  <protocol family='ipv4'>
      <dhcp />
  </protocol>
  <bridge>
    <interface type='ethernet' name='eth0'>
    </interface>
  </bridge>
</interface>
EOF
virsh iface-define /tmp/br0.xml

BTW, (when netcf will intialize) this does work, but it still does produce an 
error and virsh iface-list --all doesn't look as would be expected until after 
a service network restart.

[r...@localhost network-scripts]# virsh iface-define /tmp/br0.xml
error: Failed to define interface from /tmp/br0.xml
error: invalid argument in virGetInterface


--
Dale Bewley - Unix Administrator - Shields Library - UC Davis
GPG: 0xB098A0F3 0D5A 9AEB 43F4 F84C 7EFD  1753 064D 2583 B098 A0F3
_______________________________________________
netcf-devel mailing list
netcf-devel@lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/netcf-devel

Reply via email to