Open main menu

CDOT Wiki β

Changes

OPS335 Lab 6

2,187 bytes removed, 03:33, 12 July 2016
m
Using the Windows machines in the lab, not a VM.
This investigation will configure your VM2 machine to act as a Samba File server to allow Windows OS Users access to the Linux Samba server files.
 
=== Creating a Windows7 Professional VM ===
 
To demonstrate how to access and share files from a remote MS Windows server using '''smbclient''' on your '''host''' machine, we will install a Windows7 Professional machine as a virtual machine.
 
'''Perform the following steps:'''
 
#Make certain you are using your '''host''' machine.
#Download a version of MS Windows7 Professional ISO file to your host machine. If you have already downloaded an ISO file, then you can use that (i.e. transfer to your host machine).<br>'''NOTE:''' You cannot use a CD/DVD since KVM does not install by CD/DVD.<br><br>'''ALTERNATIVE METHOD:''' You could also refer to the following link to download Windows7 OS image: https://inside.senecacollege.ca/its/software/ , <br>select '''Software Downloads''', login with your senecaid and password, select '''MSDN''', and then select a Windows7 Professional iso image to download.<br>You are <u>not</u> required to obtain a product key since you will not need to extend the use of this Windows OS over 60 days.
 
{{Admon/tip |Rearming the Windows Trial Version|If are your trial period for your Windows machine is nearly over, you can extend the trial period for another 30 days by running a command prompt as the <u>administrator</u> (right-click on '''cmd''' icon) and issuing the command: '''slmgr -rearm'''. Obviously, you are required to perform this operation prior to the termination of the initial trial period.}}
 
 
<ol><li vaLUE="3">Create a new virtual machine (RAM: '''1024 MB''', hard drive size: '''20 GB''', accept all other defaults) making certain to specify the location of your downloaded Windows OS iso file.</li><li>Install the Windows OS creating a default user as the administrator.</li><li>Upon successful installation, log into the Windows machine as a regular user, open a command prompt and using the '''ping''' command to confirm that you can connect to your VM2 machine.</li></ol>
===Accessing Files on a Linux Samba Server via Windows Explorer ===
# Make certain that both your '''VM2''' and '''Windows''' virtual machines are running.
# On your Power up a Windows VM, temporarily turn off system in the lab and login.# Add the firewall for prerouting and forwarding rules to your Windows machinehost's iptables necessary to redirect samba traffic from outside your network to your VM 2.
# Open the Windows Explorer application.
# At the top of the application, enter the following:<br>'''\\IPADDR_OF_VM2_MACHINEIPADDR_OF_HOST_MACHINE\home'''
{| width="40%" align="right" cellpadding="10"
[[Image:samba-login.png|thumb|right|300px|You will be prompted (once only) for the Samba user-name and password for your '''VM2''' machine). ]]
|
[[Image:samba3-map-drive.png|thumb|right|300px|You can create a '''mapped network drive (z:)''' for your Linux Samba server network share). Make certain that '''Reconnect at Login''' option is enabled. ]]
|}
<ol><li value="5"> You will be prompted to enter your VM2 username and password (one time only). Refer to diagram on right.<br><br>'''NOTE:''' It may take approximately 30 seconds to display the file contents.<br><br></li><li>Where your successful? If not, try to troubleshoot the problem first, then ask your lab assistant or instructor for assistance.</li><li>Close the Windows Explorer application window.</li><li>Click on the '''START''' menu, and click on '''Computer'''.</li><li>Click on the Map Network Drive button, and create a '''mapped network drive''' (called it drive '''Z:''') which is a Samba share of your VM2 machine for the home directory making certain option to '''Reconnect at Login''' is enabled.</li><li>When finished, click on '''Network''' in Windows file manager to confirm that the network share is present.</li><li>Restart your Windows VM and confirm that the network share is active.</li><li>Try to create a file on your Windows VM on your Linux Samba machine. Were you able to create a save a file?</li><li>Switch to your VM2 machine and check to see if that file was created in your home directory.</li><li>Finally, enable your Windows VM firewall, but with an exception for a Samba connection (i.e. the port number obtained from the previous investigation).</ol>
'''Record steps, commands, and your observations in INVESTIGATION 2 in your OPS335 lab log-book'''
 
==COMPLETING THE LAB==
932
edits