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

Re: [Ovirt-devel] create-wui-appliance.sh: useful script!

Jim Meyering wrote:
Thanks for the create-wui-appliance.sh script.
It nicely eliminates several annoyingly manual steps.
Here are some small changes.  I've tested the result.

Here's one more to create dummybridge via libvirt. You must remove manually created dummybridge first:
- stop VMs
- ifdown dummybridge; brctl delbr dummybridge; find /etc/sysconfig/ -name ifcfg-dummybridge -exec rm {} \;

diff --git a/wui-appliance/create-wui-appliance.sh b/wui-appliance/create-wui-appliance.sh
index 0167576..b152cc5 100755
--- a/wui-appliance/create-wui-appliance.sh
+++ b/wui-appliance/create-wui-appliance.sh
@@ -55,6 +55,15 @@ if [ -n $MAC ]; then
    MAC="-m $MAC"

+TMPXML=$(mktemp) || exit 1
+cat > $TMPXML <<EOF
+<network> <name>dummy</name> <bridge name="dummybridge" stp="off" forwardDelay="0" /> <ip address="" netmask=""/> </network>
+virsh net-define $TMPXML
+virsh net-start dummy
+virsh net-autostart dummy
mkdir -p $IMGDIR

virsh destroy $NAME > /dev/null 2>&1

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