libvirt-0.9.4-23.el6_2.4 > H
H t x H F O6
?*}}a 5{cpƼeJA V=TT5JQS7d30128be448f242c1b55b8c7200016950830717 n@i BŎccF O6
?*}}pH bkn]eb FC *ǬaJVU 7T\ > ? A ? A d
I ( , = N V g } B
B
B
B B B
B B 2 B | B p ! p * p ( + 8 + 9 . : T = / > / ? / G / B H 0 B I 1 B X 2$ Y 20 \ 2d B ] 3l B ^ 6 b 8 d 9m e 9r f 9u l 9w t 9 B u : B v ;
w =p B x >x B y ? A C libvirt 0.9.4 23.el6_2.4 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. Ocsl6.fnal.gov 7-Scientific Linux Scientific Linux LGPLv2+ Scientific Linux 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
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 U D \
Y I W K $J g ~ U 7 C * @ AAAAA큤큤A큤AA큤AAAAAAAAAAAAA O9O7O7O9O9O9O9O9O9O9O9O9O9O9O9O9O9O9O9O7O9O9O7O7O7O7O7O