Red Hat ENTERPRISE LINUX 5 - VIRTUALIZATION GUIDE Guide d'installation Page 169

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 361
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 168
Add an additional entry to the “vif= section of the configuration file similar to the one seen below.
vif = [ "mac=00:16:3e:2e:c5:a9,bridge=xenbr0",
"mac=00:16:3e:2f:d5:a9,bridge=xenbr0" ]
Make sure you generate a unique MAC address for the new interface. You can use the command
below.
# echo 'import virtinst.util ; print virtinst.util.randomMAC()' | python
After the guest has been rebooted perform the following step in the guest operating system. Verify the
update has been added to your /etc/modules.conf in Red Hat Enterprise Linux 3 or
/etc/modprobe.conf in Red Hat Enterprise Linux 4 and Red Hat Enterprise Linux 5. Add a new
alias for each new interface you added.
alias eth1 xen-vnif
Now test that each new interface you added make sure it is available inside the guest.
# ifconfig eth1
The command above should display the properties of et h 1, repeat the command for et h 2 if you
added a third interface, and so on.
Now configure the new network interfaces with redhat-config-network on Red Hat Enterprise
Linux 3 or system-config-network on Red Hat Enterprise Linux 4 and Red Hat Enterprise Linux
5.
12.5.2. Virt ual St orage Devices
Perform the following steps to configure additional virtual storage devices for your guest.
Edit your guest configuration file in /etc/xen/YourGuestName replacing YourGuestName with the
name of your guest. The original entry may look like the one below.
disk = [ "file:/var/lib/libvirt/images/rhel5_64_fv.dsk,hda,w"]
Now, add an additional entry for your new physical device, LUN, partition or volume to the “disk=
parameter in the configuration file. Storage entities which use the para-virtualized driver resemble the
entry below. The “ tap:aio parameter instructs the hypervisor to use the para-virtualized driver.
disk = [ "file:/var/lib/libvirt/images/rhel5_64_fv.dsk,hda,w",
"tap:aio:/var/lib/libvirt/images/UserStorage1.dsk,xvda,w" ]
If you want to add more entries just add them to the “ disk= section as a comma separated list.
Note
You need to increment the letter for the 'xvd' device, that is for your second storage entity it
would be 'xvdb' instead of 'xvda'.
Chapt er 1 2 . Xen Para- virt ualiz ed Drivers
165
Vue de la page 168
1 2 ... 164 165 166 167 168 169 170 171 172 173 174 ... 360 361

Commentaires sur ces manuels

Pas de commentaire