FC6 & Xen: Fehler Device 0 (vif) bei virt-install vermeiden

Matthias Borrack mailingliste at sinath.de
Fri Jan 5 12:59:30 UTC 2007


Hallo,


irgendwie fängt das Jahr nicht so an, wie ich es wollte. Eher sind das
alles nur Reinfälle bisher :(
Diesmal ist es Xen und vielleicht hilft es jemanden ja mal, denn im
Internet ist leider nicht viel darüber zu finden.

# rpm -qa | grep xen
xen-3.0.3-1.fc6
xen-libs-3.0.3-1.fc6
kernel-xen-2.6.18-1.2869.fc6

Und so sieht das Drama aus:
---8<---
# virt-install -n FC6 -r 256 -f /home/xen/FC6.img -s 10 -l
http://gd.tuwien.ac.at/opsys/linux/fedora/core/6/i386/os/ --nographics

Starting install...
libvir: Xen Daemon error : POST operation failed: (xend.err 'Device 0
(vif) could not be connected. Hotplug scripts not working.')
Failed to get devices for domain FC6
Traceback (most recent call last):
  File "/usr/sbin/virt-install", line 447, in ?
    main()
  File "/usr/sbin/virt-install", line 411, in main
    dom = guest.start_install(conscb)
  File "/usr/lib/python2.4/site-packages/virtinst/ParaVirtGuest.py",
line 202, in start_install
    return XenGuest.XenGuest.start_install(self, consolecb)
  File "/usr/lib/python2.4/site-packages/virtinst/XenGuest.py", line
366, in start_install
    self.domain = self.conn.createLinux(cxml, 0)
  File "/usr/lib/python2.4/site-packages/libvirt.py", line 329, in
createLinux
    if ret is None:raise libvirtError('virDomainCreateLinux() failed',
conn=self)
libvirt.libvirtError: virDomainCreateLinux() failed POST operation
failed: (xend.err 'Device 0 (vif) could not be connected. Hotplug
scripts not working.')
#
--->8---

Aufgrund der Meldung "'Device 0 (vif) could not be connected." ging ich
von einem Netzwerkproblem aus, allerdings war der Traffic vorhanden
(tcpdump), was mich etwas verwirrte. Um auf Nummer sicher zu gehen,
bastelte ich die config um.

/etc/xen/xend-config.sxp:
(network-script network-route)
(vif-script vif-bridge)
(vif-bridge mybr0)

Dann die Bridge anlegen:
# brctl addbr mybr0
# ip addr add 192.168.1.1/24 dev mybr0
# ip link set mybr0 up

Den Aufruf für die Installation noch um -b / --bridge erweitern:
# virt-install -n FC6 -r 256 -f /home/xen/FC6.img -s 10 -l
http://gd.tuwien.ac.at/opsys/linux/fedora/core/6/i386/os/ --nographics
-b mybr0


Grüße,
Matthias




More information about the Fedora-de-list mailing list