Recent Question/Assignment

IT SA 2006
Working with Virutal Machines
LAB 7
WEEK - 6
CONTENTS
1. Unregister a Virtual Machine from the vCenter Server Appliance Inventory
2. Register a Virtual Machine in the vCenter Server Appliance Inventory
3. Unregister and Delete a Virtual Machine from the Disk
4. Take Snapshots of a Virtual Machine
5. Revert to a Snapshot
6. Delete an Individual Snapshot
7. Use the Delete All Function in the Snapshot Manager
Week 6 Manage virtual machines (Template, clones and snapshot)
Objective: Perform virtual machine management tasks
In this lab, you will perform the following tasks:
1. Unregister a Virtual Machine from the vCenter Server Appliance Inventory
2. Register a Virtual Machine in the vCenter Server Appliance Inventory
3. Unregister and Delete a Virtual Machine from the Disk
4. Take Snapshots of a Virtual Machine
5. Revert to a Snapshot
6. Delete an Individual Snapshot
7. Use the Delete All Function in the Snapshot Manager
Task 1: Unregister a Virtual Machine from the vCenter Server Appliance Inventory
You unregister a virtual machine from the VMware vCenter Server™ Appliance™ inventory. Unregistering does not delete the virtual machine from the datastore.
Students should perform the steps in this task individually.
• vCenter Server Appliance name
• vCenter Single Sign-On user name
• vCenter Single Sign-On password
1. If VMware vSphere® Web Client is not active, open a Web browser and connect to the vCenter Server Appliance home page at https://vCenter_Server_Appliance/vsphere-client and log in.
2. On the vSphere Web Client Home page, click VMs and Templates and expand the view of the inventory.
3. Select the your_name##-4 virtual machine and click the Summary tab.
4. View the Related Object pane and record the VMware vSphere® VMFS datastore name where the your_name##-4 virtual machine resides. __________
5. Right-click the your_name##-4 virtual machine and select Power Shut Down Guest OS.
6. Click Yes to confirm the shutdown.
7. After the your_name##-4 virtual machine is shut down, right-click it and select Remove from Inventory.
CAUTION
Do not select Delete from Disk. This operation is not recoverable.
8. Click Yes to confirm the removal.
9. Click the Refresh icon in vSphere Web Client.
10. Verify that the your_name##-4 virtual machine no longer appears in the inventory.
11. In the Navigator pane, click the Storage tab and expand the view.
12. Right-click the your_name##-4 virtual machine’s VMFS datastore and select Browse Files.
You recorded the VMFS datastore name in step 4.
13. View the folders.
Does a folder named your_name##-4 exist?
Task 2: Register a Virtual Machine
If you removed a virtual machine from the vCenter Server Appliance inventory but did not remove it from the managed host’s datastore, you can return it to the inventory by registering it with the vCenter Server Appliance.
Students should perform the steps in this task individually.
1. In the list of virtual machine files in the right pane, right-click the yourname##-4.vmx file and select Register VM.
The screenshot shows an example selecting of Register VM.
The Register Virtual Machine wizard starts.
2. 2. On the Name and Location page, enter your_name##-5.
## is the number of your ESXi host.
3. In the Select inventory location pane, select the LabVMs folder and click Next.
4. On the Host/Cluster page, select your ESXi host and click Next.
5. On the Ready to Complete page, review the information and click Finish.
6. In the Navigator pane, click the VMs and Templates tab and verify that the your_name##-5 virtual machine is in the LabVMs folder.
Task 3: Unregister and Delete a Virtual Machine from the Disk
You can remove a virtual machine from the vCenter Server Appliance inventory and delete allassociated virtual machine files from the datastore, including the configuration file and the virtual disk files.
Students should perform the steps in this task individually.
1. On the vSphere Web Client Home page, click VMs and Templates and expand the view of the inventory.
2. Select the your_name##-5 virtual machine and click the Summary tab.
3. View the Related Object pane and record the VMFS datastore name on which the your_name##-5 virtual machine resides. __________
4. Right-click the your_name##-5 virtual machine, select Delete from Disk, and click Yes to confirm the deletion.
5. Verify that the your_name##-5 virtual machine no longer appears in the inventory.
6. In the Navigator pane, click the Storage tab and expand the inventory view.
7. Right-click the VMFS datastore name and select Browse Files.
You recorded the VMFS datastore name in step 3.
8. Verify that the folder and files from which the your_name##-5 virtual machine was registered no longer exist.
The folder has the original virtual machine name: your_name##-4.
Task 4: Take Snapshots of a Virtual Machine
You take a snapshot to preserve the state and the data of a virtual machine at the time the snapshot is taken. You use snapshots when you must revert repeatedly to the same virtual machine state but do not want to create multiple virtual machines.
Students perform the steps in this task individually.
• Virtual machine administrator password
• Software ISO image location
1. On the vSphere Web Client Home page, click VMs and Templates and expand the view of the inventory.
2. In the left pane, select the your_name##-3 virtual machine.
3. In the center pane, click Launch Remote Console on the Summary tab.
4. If necessary, log in as the virtual machine administrator and enter the password.
5. On the task bar, click Start and select Run.
6. In the Open text box, enter C: and click OK.
7. Resize the window as needed so that the files in C: and the Recycle Bin are visible.
8. Create a text file on Desktop iometer.
9. Drag the iometer file to the Recycle Bin.
10. To completely remove the iometer file, right-click the Recycle Bin icon and select Empty Recycle Bin.
11. Click Yes to confirm the file deletion and leave the virtual machine console open.
12. In the vSphere Web Client, right-click the your_name##-3 virtual machine and select Snapshots Take Snapshot.
The Take VM Snapshot wizard starts.
13. Configure the snapshot.
14. Click OK and monitor the task in the Recent Tasks pane.
15. Create a text file on Desktop cpu-busy.
16. Return to the virtual machine console and drag the cpu-busy file to the Recycle Bin.
17. To completely remove the cpu-busy file, right-click the Recycle Bin icon and select Empty Recycle Bin.
18. Click Yes to confirm the file deletion and leave the virtual machine console open.
19. Return to the vSphere Web Client.
20. In the inventory pane, right-click the your_name##-3 virtual machine and select Snapshots Take Snapshot take another snapshot.
21. Click OK and monitor the task in the Recent Tasks pane.
22. Connect the ClassFiles-vSphere.iso file on the CD/DVD drive to the your_name##-3 virtual machine.
a. Right-click the your_name##-3 virtual machine and select Edit Settings.
b. On the Virtual Hardware tab, select Datastore ISO File from the CD/DVD drive 1 dropdown menu.
c. Select the Classfiles-vSphere.iso file and click OK.
d. Select the Connected check box.
e. Click OK to close the Edit Settings dialog box.
23. Return to the your_name##-3 virtual machine console.
24. If the D: drive does not open automatically, open Windows Explorer and go to the D: drive.
25. Copy the cpubusy file from the D: drive to the virtual machine’s desktop.
26. Disconnect the CD/DVD drive from your_name##-3 virtual machine.
a. From the vSphere Web Client, right-click the your_name##-3 virtual machine and select Edit Settings.
b. On the Virtual Hardware tab, click the arrow next to CD/DVD drive 1 to expand the view.
c. Select Client Device from the drop-down menu and click OK.
27. Right-click the your_name##-3 virtual machine and take another snapshot by select Snapshots Take Snapshot to take another snapshot.
28. Configure the Snapshot.
29. Click OK.
30. Monitor the task in the Recent Tasks pane and wait for completion.
31. Right-click the your_name##-3 virtual machine and select Snapshots Manage Snapshots. You should see three snapshots. The difference in icons is due to whether the Snapshot the virtual machine’s memory check box was selected when the snapshot was taken.
32. Leave the Snapshot Manager open.
33. Close the your_name##-3 virtual machine console.
Task 5: Revert to a Snapshot
You can return a virtual machine to the state it had at the time the selected snapshot was taken.
Students perform the steps in this task individually.
• Virtual machine administrator password
1. Verify that the your_name##-3 virtual machine is powered on.
2. In the Snapshot Manager, select the Without iometer or cpu-busy snapshot and click Revert to.
3. Click Yes to confirm the reversion.
4. Click Close to close the Snapshot Manager.
Q1. Did the virtual machine power off, and what is the reason?
5. Right-click the your_name##-3 virtual machine in the inventory and select Power Power On.
6. Launch a remote console to the your_name##-3 virtual machine and wait for the boot process to finish.
7. If necessary, log in as the administrator with the password.
Q2. Is either iometer or cpu-busy on the local disk (C:)?
8. Close the your_name##-3 virtual machine console.
9. In the vSphere Web Client, right-click the your_name##-3 virtual machine and select Snapshots Manage Snapshots.
The You Are Here pointer should be below the snapshot named Without iometer or cpu-busy.
10. In the Snapshot Manager, select the With cpu-busy snapshot and click Revert to.
11. Click Yes to confirm the reversion.
12. Click Close to close the Snapshot Manager.
Q3. Did the virtual machine power off, and what is the reason?
13. Open a remote console for the your_name##-3 virtual machine.
Q4. Is cpu-busy on the desktop?
Q5. Is iometer on the desktop?
14. Minimize the your_name##-3 virtual machine console.
Task 6: Delete an Individual Snapshot
You can use the Delete All function to commit all the intermediate snapshots before the current state.
Students perform the steps in this task individually.
1. Right-click the your_name##-3 virtual machine and select Snapshots Manage Snapshots. The You Are Here pointer should be below the snapshot named With cpu-busy.
2. In the Snapshot Manager, select the Without iometer or cpu-busy snapshot and click Delete.
3. Click Yes to confirm the deletion.
4. Click Close to close the Snapshot Manager.
Q1. Did the virtual machine power off?
Q2. Is cpu-busy on the desktop?
Task 7: Use the Delete All Function in the Snapshot Manager
You can remove a snapshot from the Snapshot Manager. The snapshot files are consolidated and written to the parent snapshot disk.
Students perform the steps in this task individually.
1. In the vSphere Web Client, right-click the your_name##-3 virtual machine and select Snapshots Manage Snapshots.
2. Click Delete All and click Yes to confirm that you want to delete all the remaining snapshots. The You Are Here pointer should be below the your_name##-3 virtual machine.
Q1. Were all the remaining snapshots deleted from the Snapshot Manager?
3. Click Close to close the Snapshot Manager.
4. Return to the your_name##-3 virtual machine console.
Q2. Is cpu-busy on the desktop, and why?
5. Close the your_name##-3 virtual machine console.
6. Leave the vSphere Web Client open for the next lab.

Looking for answers ?