User Tools

Site Tools


howtos:admin:install_and_administer_a_virtual_machine_vm

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
howtos:admin:install_and_administer_a_virtual_machine_vm [2009/12/01 13:26]
shona.weldon created
howtos:admin:install_and_administer_a_virtual_machine_vm [2024/02/22 19:02] (current)
marcus.williams
Line 1: Line 1:
 ====== Installing and Configuring a VM for whatIf? ====== ====== Installing and Configuring a VM for whatIf? ======
 +**❌ CONTENT NOT MIGRATED (LEFT BEHIND) TO GURU**
  
 ===== Setting up Networking on a new VM ====== ===== Setting up Networking on a new VM ======
Line 8: Line 9:
   * login as root (pword What1f?)   * login as root (pword What1f?)
   * Open the Networking - click on the red hat/system settings/​network   * Open the Networking - click on the red hat/system settings/​network
-  * Probe the machine +  * Probe the machine ​by: 
-  ​* ​  * select first (only) profile and click on edit button +    * select first (only) profile and click on edit button 
-  ​* ​  * click on hardware device tab +    * click on hardware device tab 
-  ​* ​  * click on probe button +    * click on probe button 
-  ​* ​  * click ok button+    * click ok button
   * Reset the host name   * Reset the host name
-  *   * Under DNS tab set Hostname: newName-ux (for example) +    ​* Under DNS tab set Hostname: newName-ux (for example) 
-  ​* ​  * under File choose Save +    * under File choose Save 
-  * Take note of the ip address +  * Take note of the ip address ​(you'​ll need it for the next steps in host only mode) 
-  ​* ​  * Go to the devices tab, double click the eth0 +    * Go to the devices tab, double click the eth0 
-  ​* ​  * Record the static ip address, probably something like: 192.68.80.200+    * Record the static ip address, probably something like: 192.168.80.200
   * Logout and reboot the machine   * Logout and reboot the machine
  
Line 24: Line 25:
 How to get it into nat mode: How to get it into nat mode:
   * Make the VMnet8 network connection configuration use DHCP to obtain addres   * Make the VMnet8 network connection configuration use DHCP to obtain addres
-  * Set the Devices/​Network Adaptor on the VM to NAT+  * Set the Devices/​Network Adaptor on the VM to NAT in the "​Settings"​ of the outer shell of the VM Player
   * In the networking of the VM setup the IP address to come from DHCP   * In the networking of the VM setup the IP address to come from DHCP
   * Uncheck the "​Automatically obtain DNS information from provider   * Uncheck the "​Automatically obtain DNS information from provider
   * Click OK and go to the DNS tab and set:   * Click OK and go to the DNS tab and set:
-  *   * hostname like: red-ux +    ​* hostname like: red-ux 
-  ​* ​  * Primary DNS should be: 192.168.110.2 (verify it's the right first part of the domain for the network adapter VMnet8 on host side) +    * Primary DNS should be: 192.168.110.2 (verify it's the right first part of the domain for the network adapter VMnet8 on host side) 
-  ​* ​  * Remove the localdomain setting from the DNS search path+    * Remove the localdomain setting from the DNS search path
   * Save the settings from the Devices tab   * Save the settings from the Devices tab
-  * Reboot ​the VM server+  * Shutdown and restart ​the VM server ​(I don't think the Reboot option is enough)
  
 ==== Setup network on host ==== ==== Setup network on host ====
 +=== Windows XP ===
  
   * On the host machine (windows side) From "​Start"​ menu choose "​Connect To/Show all Connections"​   * On the host machine (windows side) From "​Start"​ menu choose "​Connect To/Show all Connections"​
 +
 +=== Windows Vista & Windows 7 ===
 +  * On the host machine (windows side) From "​Start"​ menu choose "​Network and Internet"​
 + then choose "​Network and Sharing Center"​ and look in the "View your active networks"​ section of the page
 +
 +=== On either system continue with: ===
   * Choose VMNet1 for host only mode (VMnet8 for NAT mode) connection and look at the properties (right click properties)   * Choose VMNet1 for host only mode (VMnet8 for NAT mode) connection and look at the properties (right click properties)
-  ​* Double click "​Internet Protocol (TCP/​IP)"​+    * If you intend to use VMnet1 (which is the default) disable VMnet8 
 +  ​* Double click "​Internet Protocol (TCP/​IP)" ​(on Vista and windows 7 choose TCP/IPv4)
   * Make sure the first 3 parts of the ip address match that of your VM but not the last    * Make sure the first 3 parts of the ip address match that of your VM but not the last 
-  ​-- NOTE if you want the VM in NAT mode change the VM's ip address ​to fix it (as above)and if VM is in host only mode adjust ​the host side +    ​If VM is in host only mode adjust the host side here (use this option by default) 
-  *Check ​your ip address on the VM by logging ​in root, open terminal window and do ifconfig+    * Otherwise, ​if you want the VM in NAT mode change the VM's ip address ​inside ​the VM to match first 3 parts 
 +    Note: to check your ip address on the VM (if you wish): log in as root, open terminal window and do ifconfig
   * Click OK to save   * Click OK to save
  
Line 47: Line 57:
   * Startup the VM you don't need to login   * Startup the VM you don't need to login
   * Use putty to connect to newName-ux and login as root   * Use putty to connect to newName-ux and login as root
 +  * If you can't get that to work check the host name settings inside the VM networking
 +  * Add an entry for newName-ux and the corresponding ip address to the host machine'​s hosts file under (C:​\Windows\System32\drivers\etc)
 +    * To modify hosts file, you will need to run editor program as an administrator and hope the hosts file from inside that program
 +  * If you still can't get it to work you can use the ip address of the machine which we recorded at the beginning
 +    * IP address is probably 192.168.80.200
  
 +==== Setting up Accounts on a new VM =====
 +  * [[howtos:​admin:​Setup User and Model Accounts]]
  
-===== Setting up Accounts on a new VM ====== +==== Install Sever Code ====
- +
-==== Add user to VM ==== +
-  * If they already exist on another server get the user id from that server and use the same for example adding user bboy: +
-<​code>​ +
-useradd -s /bin/csh -c "Buddy Boy user account"​ -d /users/bboy -u userIDFromServerOr1000 bboy +
-</​code>​ +
-  * set the user's password  +
-<​code>​ +
-passwd bboy +
-</​code>​ +
-  * update group file to have samm in user's group +
-<​code>​ +
-vi /etc/group  +
-- find bboy and add samm +
-</​code>​ +
-  * add samba user and restart samba service  +
-<​code>​ +
-smbpasswd -a bboy +
-/​etc/​init.d/​smb restart +
-</​code>​ +
- +
-==== Add a Model Account ==== +
-  * If the model already exist on a serverget the model'​s user id from feynman and use the sem +
-<​code>​ +
-useradd -s /bin/csh -c "​model1 model account"​ -d /​models/​model1 -u userIDFromFeynmanOr2000 model1 +
-</​code>​ +
- * set the model'​s password  +
-<​code>​ +
-passwd model1 +
-</​code>​ +
-  * update group file to have samm in model'​s group +
-<​code>​ +
-vi /etc/group  +
-- find model and add samm and all users allowed to access that account as comma separated list: +
-model1 samm,​bboy,​otherUser +
-</​code>​ +
-  * Reconfigure the default directory for this user /models and delete the created model1 directory +
-<​code>​ +
-rm -rf model1  +
-</​code>​ +
-  * make a new one and copy all files (including hidden) from modelacct to model1 +
-<​code>​ +
-mkdir reu +
-cp modelacct/* reu/ +
-cp modelacct/​.cshrc reu/ +
-cp modelacct/​.login reu/ +
-</​code>​ +
-  * set perms: +
-<​code>​ +
-chmod 770 model1 +
-chmod g+s model1 +
-chown -R model1:​model1 model1 +
-chmod 664 model1/* model1/​.cshrc model1/​.login +
-</​code>​  +
-  * Put the model file structure onto the model1 accountif it already exists elsewhere ​ or else create it: +
-  * * [[howtos:​admin:​Model Family Directory Structure]] +
- +
-===== Install Sever Code =====+
   * Get the latest and greatest from the web for samm, whatif, and tool - stick them on the host for now   * Get the latest and greatest from the web for samm, whatif, and tool - stick them on the host for now
   * Get the install scripts too!   * Get the install scripts too!
howtos/admin/install_and_administer_a_virtual_machine_vm.1259673967.txt.gz · Last modified: 2009/12/01 13:26 by shona.weldon