Re: troubles creating an OVS network with xen, libxl and libvirt.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/07/2014 01:23 PM, Jim Fehlig wrote:
Alvin Starr wrote:
One more quirk

I can create a domain using the lx commands and a slightly modified
.conf file.
"virsh  start kvmtest" returns a failure.
I tracked the information passed to vif-openvswitch and it is being
called with type_if=tap and it needs to be type_if=vif.
Sounds like a Xen bug.  Does it call vif-openvswitch twice?  Once for an
emulated NIC and once for PV nic?
openvswitch is called twice once with ACTION=online and again with ACTION=offline

Any help would be greatly appreciated once again.
[...]
name = "kvmtest"
uuid = "1883fa66-d052-4bb2-b57a-8571f77ae69e"
maxmem = 4096
memory = 4096
vcpus = 3
builder = "hvm"
kernel = "/usr/lib/xen/boot/hvmloader"
boot = "nc"
pae = 1
acpi = 1
apic = 1
hap = 0
viridian = 0
rtc_timeoffset = 0
localtime = 0
on_poweroff = "destroy"
on_reboot = "restart"
on_crash = "restart"
device_model = "/usr/lib64/xen/bin/qemu-dm"
usb = 1
usbdevice = "tablet"
sdl = 0
vnc = 1
vncunused = 1
keymap = "en-us"
disk = [ "phy:/dev/xen_images/kvmtest,hda,w" ]
vif = [ "mac=00:16:3e:3f:31:36,bridge=br0,script=vif-bridge,model=e1000" ]
Shouldn't that be '...,script=vif-openvswitch,...'?  Also, if your guest
has PV drivers, you could set 'model=netfront' to explicitly say you
only want the PV NIC.
Your correct. I hand fixed it and ran my tests but then foolishly reran domxml-to-native overwriting my fixes. I gave various nic configurations a try and e1000 was just the last one before moving to looking for the problem in other places. I will likely use the PV nic for any real systems but now I am just trying to get the kinks out.


Regards,
Jim

parallel = "none"
serial = "pty"


--
Alvin Starr                   ||   voice: (905)513-7688
Netvel Inc.                   ||   Cell:  (416)806-0133
alvin@xxxxxxxxxx              ||

add type_if=tap
SUBSYSTEM=net
DEVPATH=/devices/virtual/net/vif19.-1-emu
TAGS=:systemd:
ACTION=add
PWD=/
ID_MM_CANDIDATE=1
SYSTEMD_ALIAS=/sys/subsystem/net/devices/vif19.-1-emu
USEC_INITIALIZED=753726149
SHLVL=1
IFINDEX=38
INTERFACE=vif19.-1-emu
UDEV_CALL=1
SEQNUM=6429
_=/usr/bin/env
online type_if=vif
XENBUS_TYPE=vif
script=/etc/xen/scripts/vif-openvswitch
vif=vif19.0
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
PWD=/
LANG=en_US.UTF-8
XENBUS_PATH=backend/vif/19/0
NOTIFY_SOCKET=@/org/freedesktop/systemd1/notify
XENBUS_BASE_PATH=backend
SHLVL=1
INTERFACE=vif19.0-emu
netdev=
_=/usr/bin/env
online type_if=vif
SUBSYSTEM=xen-backend
DRIVER=vif
XENBUS_TYPE=vif
DEVPATH=/devices/vif-19-0
script=/etc/xen/scripts/vif-openvswitch
vif=vif19.0
ACTION=online
MODALIAS=xen-backend:vif
PWD=/
USEC_INITIALIZED=753811959
XENBUS_PATH=backend/vif/19/0
XENBUS_BASE_PATH=backend
SHLVL=1
UDEV_CALL=1
SEQNUM=6436
_=/usr/bin/env
add type_if=tap
XENBUS_TYPE=vif
script=/etc/xen/scripts/vif-openvswitch
vif=vif19.0
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
PWD=/
LANG=en_US.UTF-8
XENBUS_PATH=backend/vif/19/0
NOTIFY_SOCKET=@/org/freedesktop/systemd1/notify
XENBUS_BASE_PATH=backend
SHLVL=1
INTERFACE=vif19.0-emu
netdev=
_=/usr/bin/env
offline type_if=vif
SUBSYSTEM=xen-backend
DRIVER=vif
XENBUS_TYPE=vif
DEVPATH=/devices/vif-19-0
script=/etc/xen/scripts/vif-openvswitch
vif=vif19.0
ACTION=offline
MODALIAS=xen-backend:vif
PWD=/
USEC_INITIALIZED=753811959
XENBUS_PATH=backend/vif/19/0
XENBUS_BASE_PATH=backend
SHLVL=1
UDEV_CALL=1
SEQNUM=6442
_=/usr/bin/env
offline type_if=vif
XENBUS_TYPE=vif
script=/etc/xen/scripts/vif-openvswitch
vif=vif19.0
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
PWD=/
LANG=en_US.UTF-8
XENBUS_PATH=backend/vif/19/0
NOTIFY_SOCKET=@/org/freedesktop/systemd1/notify
XENBUS_BASE_PATH=backend
SHLVL=1
INTERFACE=vif19.0-emu
netdev=
_=/usr/bin/env
remove type_if=tap
XENBUS_TYPE=vif
script=/etc/xen/scripts/vif-openvswitch
vif=vif19.0
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
PWD=/
LANG=en_US.UTF-8
XENBUS_PATH=backend/vif/19/0
NOTIFY_SOCKET=@/org/freedesktop/systemd1/notify
XENBUS_BASE_PATH=backend
SHLVL=1
INTERFACE=vif19.0-emu
netdev=
_=/usr/bin/env
--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]