Changes

Jump to: navigation, search

OPS235 Short-Term

1,195 bytes added, 23:41, 7 March 2017
Useful Links (All Semesters)
== Useful Links (All Semesters)==
# It is possible to run VMware VMs from the command line using the following steps <syntaxhighlight lang="bash">Create a directory for links to your VMware VMs
# mkdir ~/links
# cd links
# ln -s /path/to/VMs/file.vmx
 
Use vmrun to start/stop/list/getGuestIPAddress/listProcessesInGuest
# vmrun | less
# vmrun -T ws start ~/links/name-of-CentOS-VM-link.vmx [gui|nogui]
# vmrun list
# vmrun -T ws getGuestIPAddress ~/links/name-of-CentOS-VM-link.vmx
# ssh user@address-got-from-line-above
# vmrun -T ws -gu <guest-user> -gp <guest-password> listProcessesInGuest ~/links/name-of-CentOS-VM-link.vmx</syntaxhighlight>In case you get an error message about Guest Additions not being installed, you have to rerun <code>vmrun installTools ~/links/name-of-CentOS-VM-link</code> and, during the Guest Additions installation, choose yes to automatic kernel modules (default during installation is no), see: [ [https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2050592 Known issue about Guest Additions not being loaded despite being installed] ] and [ [https://www.vmware.com/pdf/vix162_vmrun_command.pdf (PDF) manual for vmrun ] ] for additional information.
# When updating packages if you abort suddenly, then you might end up with a broken package database.
## In that case, you can fix a broken yum package system using the following blog post: [ [https://wphosting.tv/how-to-fix-duplicate-packages-in-yum/ How to fix duplicate packages in yum] ].<br>Good to know and include somewhere (OPS235 future content update).
221
edits

Navigation menu