libvirt-0.9.6-2.fc16 $ > VWZX.K > ? y ? i d
E 4 8 G V ^ m " x ,
8
9p <$ ? B C E E H$ S ( T 8 T { 9 V { : mP { = O > W ? _ G h H I X Y \ ] h ^ b d w l | t u H v w x ɼ y p ` e d f g C libvirt 0.9.6 2.fc16 Library providing a simple virtualization API Libvirt is a C toolkit to interact with the virtualization capabilities
of recent versions of Linux (and other OSes). The main package includes
the libvirtd server exporting the virtualization support. NCx86-09.phx2.fedoraproject.org ijgFedora Project Fedora Project LGPLv2+ Fedora Project Development/Libraries http://libvirt.org/ linux i686 # Normally 'setup' adds this in /etc/passwd, but this is
# here for case of upgrades from earlier Fedora/RHEL. This
# UID/GID pair is reserved for qemu:qemu
getent group kvm >/dev/null || groupadd -g 36 -r kvm
getent group qemu >/dev/null || groupadd -g 107 -r qemu
getent passwd qemu >/dev/null || \
useradd -r -u 107 -g qemu -G kvm -d / -s /sbin/nologin \
-c "qemu user" qemu
# We want to install the default network for initial RPM installs
# or on the first upgrade from a non-network aware libvirt only.
# We check this by looking to see if the daemon is already installed
/sbin/chkconfig --list libvirtd 1>/dev/null 2>&1
if test $? != 0 && test ! -f /etc/libvirt/qemu/networks/default.xml
then
UUID=`/usr/bin/uuidgen`
sed -e "s,,\n $UUID," \
< /usr/share/libvirt/networks/default.xml \
> /etc/libvirt/qemu/networks/default.xml
ln -s ../default.xml /etc/libvirt/qemu/networks/autostart/default.xml
fi
# All newly defined networks will have a mac address for the bridge
# auto-generated, but networks already existing at the time of upgrade
# will not. We need to go through all the network configs, look for
# those that don't have a mac address, and add one.
network_files=$( (cd /var/lib/libvirt/network && \
grep -L "mac address" *.xml; \
cd /etc/libvirt/qemu/networks && \
grep -L "mac address" *.xml) 2>/dev/null \
| sort -u)
for file in $network_files
do
# each file exists in either the config or state directory (or both) and
# does not have a mac address specified in either. We add the same mac
# address to both files (or just one, if the other isn't there)
mac4=`printf '%X' $(($RANDOM % 256))`
mac5=`printf '%X' $(($RANDOM % 256))`
mac6=`printf '%X' $(($RANDOM % 256))`
for dir in /var/lib/libvirt/network \
/etc/libvirt/qemu/networks
do
if test -f $dir/$file
then
sed -i.orig -e \
"s|\(|" \
$dir/$file
if test $? != 0
then
echo "failed to add " \
"to $dir/$file"
mv -f $dir/$file.orig $dir/$file
else
rm -f $dir/$file.orig
fi
fi
done
done
# Starting with Fedora 15, systemd automounts all cgroups, and cgconfig is
# no longer a necessary service.
if [ "$1" -eq "1" ]; then
/sbin/chkconfig cgconfig on
fi
/sbin/chkconfig --add libvirtd
if [ "$1" -ge "1" ]; then
/sbin/service libvirtd condrestart > /dev/null 2>&1
fi if [ $1 = 0 ]; then
/sbin/service libvirtd stop 1>/dev/null 2>&1
/sbin/chkconfig --del libvirtd
fi -W \ I d ^ - "
y H ,)
L DL :
Y I
W K S " g
^J 2 :j hC JF G " #\ M Ah $ # k + " H P )% 0 .M 2 V #i - -D ) P " &3 x 7 1 * k &