Beruflich Dokumente
Kultur Dokumente
1
Exercise 1: Create a VM using VMWare Workstation
Solution:
Guest: Any OS
Steps:
2
.
5) VMware will prompt you for the installation media. If it recognizes the
operating system, it will enable Easy Installation:
Physical disc – Insert the installation disc for the operating system you
want to install and then select the drive in VMware.
ISO image – Browse to the location of the ISO file on your computer.
Install operating system later. This will create a blank virtual disk. You
will need to manually install the operating system later.
6) Name your virtual machine. The name will help you identify it on your
physical computer. It will also help distinguish between multiple virtual
computers running different operating systems.
3
7) Set the disk size. You can allocate any amount of free space on your
computer to the virtual machine to act as the installed operating system’s
hard drive. Make sure to set enough to install any programs that you want
to run in the virtual machine.
Select – Store virtual disk as Single File
4
9) To Modify RAM : Select- Edit Virtual Machine Settings
5
11) Set the virtual machine to start. Check the box labeled “Power
on this virtual machine after creation”
6
Exercise 2: Create VM using QEMU
Solution:
Host: Ubuntu
Guest: Any Operating System
Steps:
7
Exercise 3: Folder Sharing
Solution:
Host: Windows
Guest: Ubuntu
Steps:
In Host:
1) Create folder and enable sharing option for that. [ Folder Properties –>
Sharing -> Share -> Everyone -> Add -> Share -> Done ]
In Guest:
1) Launch VMware and right-click the name of the virtual machine
you wish to manage. Click "Virtual Machine Settings" to display
the Virtual Machine Settings window.
8
3) Click "Add" to launch the "Add Shared Folder" wizard. Click
"Next" and then click "Browse" to view your hard drive's folders.
Click the folder you'd like to share and then click "OK."
9
4) Click "Next" and review the check boxes in the Additional
Attributes section. The "Enable this Share" check box is checked
by default. Leave that check mark there and place a check mark in
the "Read-only" check box if you want to make the shared folder
read-only. If you choose that option, the guest machine cannot
write to the shared folder. Click "Finish" and then click "OK" to
close the Virtual Machine Settings window and return to the main
window that displays your virtual machines.
10
5) Power on VM
6) All shared folders will be in /mnt/hgfs folder.
11
Exercise 4: Scale-Up and Scale-Down VM resources
Solution:
Host: Ubuntu
Guest: Any Operating System
12
Exercise 5: Attach and detach a new storage volume
Solution:
Host: Ubuntu
Guest: Any Operating System
1) cd /var/lib/libvirt/images/
2) sudo qemu-img create -f raw new_volume.img 1G
3) virsh attach-disk VM_Name --source
/var/lib/libvirt/images/new_volume.img --target vdb
13
Exercise 5: Generate Report on resource usage
Solution:
Host: Ubuntu
Guest: Any Operating System
14