Open main menu

CDOT Wiki β

Changes

OPS335 Installation Lab draft

168 bytes removed, 06:47, 9 January 2016
Configuring a VM host
===Configuring a VM host===
# You will need to install some software to allow your machine to act as a host for virtual machines. We'll be using the same libvirt and virt-manager you used in OPS235.You may find it helpful to refer back to the OPS235 notes if you don't remember the commands you need for these steps.#* Install the software you need#* Start and enable the virtualization service '# Start the graphical virtual machine manager (''yum install virt-manager libvirt''')# We will be creating our own virtual network. A default virtual network has been created for you, but you will be using a <olu>custom<li value="2"/u>Start one in this course.#* Right click '''localhost (QEMU)''' and enable select '''Details'''.#* Click on the virtualization service:</li></ol> '''systemctl start libvirtdVirtual Networks'''tab. #* Stop and delete the '''systemctl enable libvirtddefault'''network.
<ol><li value="3">Reboot your machine. If you do not, you will not be able to install any virtual machines.</li><li>Start the graphical virtual machine manager (''virt-manager'')<ul><li>You will need to enter your root password.</li></ul><li>We will be creating our own virtual network. A default virtual network has been created for you, but you will be using a <u>custom</u> one in this course.<ul type="a"><li>Right click '''localhost (QEMU)''' and select '''Details'''. Click on the '''Virtual Networks''' tab.</li><li>Stop and delete the '''default''' network.</li><li>Run, and record the output of the following command:</li></ul></li></ol>
'''iptables -t nat -L'''
<ol><li value="6">Use the '''plus sign''' to add a new virtual network using the following options.<ol type="a"><li>Name your virtual network '''ops335'''</li><li>Use the '''last two digits of your student number for the third octet of network IP address''' (for example, if your student number is 000-000-0<b>90</b>, the network address would be 192.168.<b>90</b>.0/24.</li><li>Ensure the DHCP range will allow you to assign '''at least 10 static IP addresses outside it'''.</li><li>Choose '''Forwarding to physical network''' radio button, '''Destination: Any physical device''' and '''Mode: NAT'''</li><li>Ensure the network is '''started at boot'''.</li></ol></li><li>Once completed changing these settings, open a terminal and observe and record the output of the following command (noting the difference from the last time you ran it. We will discuss it in a few weeks):</li></ol>
If it has not been made available use the publicly available link:
'''wget --no-check-certificate https://download.fedoraproject.org/pub/fedora/linux/releases/22/Server/x86_64/iso/Fedora-Server-DVD-x86_64-22.iso'''
 
===Installation===
#Click on the icon '''Create a new virtual machine''' to begin.