libvirt-0.10.2-18.lw6.9 > H
H t x H F Q
D![ drFo/[PWʺ |Bz9s&gD>v3413558481603068b29ce6d75241d99ebcbb6cb8 !? 2Ed!kŵFF Q
D!v "ĉmd0aXGlW R0>4=>0q O > ? ? | d
H 0 4 @ H ] s L G
h G
G
G G ' G
p G G G R t G ! ! # / ( 0 8 0 9 4 : hj = > ? @ G G H G I G X ( Y 8 \ l G ] G ^ [ b \ d e f l t G u 8 G v T
w $ G x @ G y \ x C libvirt 0.10.2 18.lw6.9 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. Qbuild8.linuxwizard.ru OLinuxWizard LGPLv2+ build@linuxwizard.ru 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
if ! /sbin/chkconfig libvirtd && 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 16/RHEL-7, 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 2 \ I d ^ a "
4 y H
8
8 L &p