Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Support for network driver domains.

Note we also require:
  firmware.cpio: containing /lib/firmware
  modules.cpio: containing /lib/modules/...
  overlay/fe
  overlay/xcp-networkd
  • Loading branch information...
commit acf3bfe354c1368bf8e1962ebb7ac7b188db64a6 1 parent 3fd713a
@djs55 authored
View
2  Makefile
@@ -1,4 +1,4 @@
-PACKAGES=rsyslog util-linux dhclient net-tools xe-guest-utilities xe-guest-utilities-xenstore pciutils nfs-utils xcp-sm-fs xapi-noarch-backend-udev blktap blktap-debuginfo gdb strace
+PACKAGES=rsyslog util-linux dhclient net-tools xe-guest-utilities xe-guest-utilities-xenstore pciutils nfs-utils xcp-sm-fs xapi-noarch-backend-udev blktap blktap-debuginfo gdb strace bridge-utils
initrd:
sudo ./make-initrd.sh ${PACKAGES}
View
7 make-initrd.sh
@@ -49,6 +49,13 @@ if [ -e ${MODULES} ]; then
(cd ${ROOT}; cpio -id < ${MODULES})
fi
+FIRMWARE=$(pwd)/firmware.cpio
+echo Looking for optional ${FIRMWARE}
+if [ -e ${FIRMWARE} ]; then
+ echo UNpacking firmware into ${ROOT}
+ (cd ${ROOT}; cpio -id < ${FIRMWARE})
+fi
+
OUTPUT=$(pwd)/initrd
echo Repacking into ${OUTPUT}
(cd ${ROOT}; find . | cpio -o -Hnewc | gzip -9c > ${OUTPUT})
View
2  overlay/etc/firstboot.d/data/management.conf
@@ -0,0 +1,2 @@
+LABEL='eth0'
+MODE=dhcp
View
1  overlay/etc/xensource/network.conf
@@ -0,0 +1 @@
+bridge
View
14 overlay/init
@@ -6,15 +6,17 @@ echo Loading xen-netfront
/sbin/modprobe xen-netfront
echo Loading xen-pcifront
/sbin/modprobe xen-pcifront
-echo XXX not loading bnx2
-#/sbin/modprobe bnx2
+echo loading bnx2
+/sbin/modprobe bnx2
echo Sending DHCP
/sbin/ifconfig eth0 up
/sbin/dhclient eth0
-/sbin/ifconfig eth1 up
-/sbin/dhclient eth1
+#/sbin/ifconfig eth1 up
+#/sbin/dhclient eth1
/sbin/rsyslogd&
/sbin/ifconfig lo 127.0.0.1 netmask 255.0.0.0 up
+echo Writing to xenstore
+/usr/sbin/xe-update-guest-attrs
echo Starting udevd
/sbin/udevd&
echo Starting NFS services
@@ -25,5 +27,9 @@ echo Setting AIO limit
/sbin/sysctl -w fs.aio-max-nr=444416
echo Starting xcp-sm-fs
/usr/bin/xcp-sm-fs&
+echo Starting fork/exec daemon
+/fe&
+echo Starting xcp-networkd
+/xcp-networkd&
exec /bin/bash
Please sign in to comment.
Something went wrong with that request. Please try again.