13,420
edits
Changes
no edit summary
# Start <code>'''virt-manager'''</code>.
# Shutdown ''fedora1'' if it is running.
# Open the console window for '''''fedora1'''''.
# Select the menu option '''View'''>'''Details'''.
# Click '''''Add Hardware''''' button at the bottom left-hand corner.
# In Make certain to remain in the ''Adding new virtual hardware'' window that appears, select a Hardware Type of ''"'''storage'''default section called "'' and click ''Storage"'''Forward'''"''.# Make certain option the following selections in this "Managed or other existing storageStorage" is selected. Click dialog box:::* Under Create a disk image on the Computer'''''Browse''''' buttons Hard Drive, then click change the size to 2 GB.::* Click on '''''New Volume'''''Select Managed or Other Existing Storage.# Give You can specify a file pathname for the new virtual disk Hard Drive (refer to diagram). If no file pathname is provided, then the system will assign a name of in the directory <code>'''fedora1b'''/var/lib/libvirt/images/</code>, a format of '''''raw''''', with a ''Max Capacity'' and ''Allocation'' of '''2000 MB'''. Click '''''Finish'''''.# ::* Select the new virtual disk file '''''fedora1b.img''''' and click '''''Choose Volume'''''.Device Type: Virtio Disk# ::* Select a device type of '''''Virtio Disk'''''Storage Format: raw::* Click FINISH to proceed.# Finish creating the new virtual disk by clicking '''''Forward''''' and then '''''Finish'''''.
# Boot the system. You should now have both <code>/dev/vda</code> and <code>/dev/vdb</code>.
# Record the size of the volume group and the amount of free space (Hint: use a command that you learned in a previous lab).
# Refer to the following tutorial to use the <code>fdisk</code> command: :* [http://tldp.org/HOWTO/Partition/fdisk_partitioning.html Partitioning with fdisk]# Use the <code>fdisk</code> command to create a primary partition for <code>/dev/vdb</code> with a single partition (number 1) that fills the whole disk.
# Check the messages printed when <code>fdisk</code> exits -- you may need to reboot the system in order for the new partition table to take effect.
# Run this command to format the physical volume: <code>pvcreate /dev/''vdb1''</code>