12.07.2015 Views

Red Hat Enterprise Linux 5 Administration Unleashed

Red Hat Enterprise Linux 5 Administration Unleashed

Red Hat Enterprise Linux 5 Administration Unleashed

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

544APPENDIX BCreating Virtual MachinesThe number of virtual processors and amount of dedicated memory (both initial allocationand maximum allowed allocation) can be changed from the Hardware tab. ClickApply to enable the changes immediately.To view information about a domain from the command line or verify hardware allocationchanges, execute the following as root:virsh dominfo The output should look similar to Listing B.2.LISTING B.2Domain InformationId: 2Name:rhel5UUID:b5c8ebec-dfe1-910e-26e9-80f2c7caccf0OS Type: linuxState:blockedCPU(s): 1CPU time: 21.8sMax memory: 512000 kBUsed memory: 511808 kBThe same hardware allocation changes can be made with the virsh command as the rootuser. To change the memory allocation, use setmem to set the amount of currently allocatedmemory, setmaxmem to set the maximum allowed memory allocation, and setvcpusto set the number of virtual CPUs for the domain:virsh setmem virsh setmaxmem virsh setvcpus After setting each option, use the following command to verify the change:virsh dominfo Performing Additional ActionsThe virsh command can perform additional actions from the command line. This sectionhighlights a few. Refer to the man page with the man virsh command or execute thevirsh help command to view a complete list of commands.To reboot the guest OS, execute the following as root. The guest OS is shut down properly,the VM is restarted, and the guest OS boots back up.virsh reboot

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!