Red Hat SATELLITE 5.3.0 RELEASE NOTES Información técnica Pagina 90

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 199
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 89
ii) buildMpathAliases.sh – refer to section 6.2.1
c) createMgmtVMs.sh – This script:
allocates LVM volumes for each Management VM
downloads and copies Windows Image used for RHEV-M VM to correct volume
creates a JON VM
creates a MRG VM
creates a RHEV-M VM
modifies the RHEV-M VM to use the virtio network driver
provides a CD/DVD device for each VM
signals that the creations are complete
#!/bin/bash
# make volumes for Mgmt VMs
lvcreate -n JonVMvol -L 40G MgmtServicesVG
lvcreate -n MRGVMvol -L 40G MgmtServicesVG
lvcreate -n RHEVMVMvol -L 30G MgmtServicesVG
# download pre-existing compressed image for RHEV-M
wget -nv http://irish.lab.bos.redhat.com:/pub/projects/cloud/resources/rhevm.img.bz2 -O
/tmp/rhevm.img.bz2
# decompress image and copy to LVM volume
bzcat /tmp/rhevm.img.bz2 | dd of=/dev/MgmtServicesVG/RHEVMVMvol bs=1024k
# clean up compressed file
#/bin/rm /tmp/rhevm.img.bz2
# Install jon-vm
virt-install -n jon-vm -r 4096 --vcpus=2 --cpuset=auto --os-type=linux --os-variant=rhel5.4
--accelerate -w bridge:cloud0 --mac=52:54:00:C0:DE:11 --vnc --pxe --disk
path=/dev/MgmtServicesVG/JonVMvol,bus=virtio --noautoconsole --wait=-1 --noreboot
# Install mrg-vm
virt-install -n mrg-vm -r 1024 --vcpus=1 --cpuset=auto --os-type=linux --os-variant=rhel5.4
--accelerate -w bridge:cloud0 --mac=52:54:00:C0:DE:22 --vnc --pxe --disk
path=/dev/MgmtServicesVG/MRGVMvol,bus=virtio --noautoconsole --wait=-1 --noreboot
# Create RHEV-M from VM using pre-created image
virt-install -n rhevm-vm -r 4096 --vcpus=2 --cpuset=auto --os-type=windows --os-variant=win2k8
--accelerate --network=bridge:cloud0 --mac=52:54:00:C0:DE:33 --vnc --import --disk
path=/dev/MgmtServicesVG/RHEVMVMvol --noautoconsole --wait=-1 --noreboot
# change RHEV-M network to virtio, blockio virt didn't work
sed -i "/source bridge=/a\ \ \ \ \ \ <model type=\'virtio\'/>" /etc/libvirt/qemu/rhevm-vm.xml
# insert a blank cd into each VM's definition
www.redhat.com 90
Vista de pagina 89
1 2 ... 85 86 87 88 89 90 91 92 93 94 95 ... 198 199

Comentarios a estos manuales

Sin comentarios