From Fedora Project Wiki
No edit summary |
(→Setup) |
||
(10 intermediate revisions by the same user not shown) | |||
Line 20: | Line 20: | ||
=== Setup === | === Setup === | ||
{{admon/important|Bare metal required|This can not be run in virtual machine}} | {{admon/important|Bare metal required|This can not be run in virtual machine}} | ||
{{admon/important|Data will be lost|This test case requires installation on hard drives. All data will be deleted during setup and/or installation}} | |||
# You need a machine with bios/firmware RAID supported by dmraid or MD. Linux MD driver supports Intel Matrix RAID technology, dmraid supports following products: | # You need a machine with bios/firmware RAID supported by dmraid or MD. Linux MD driver supports Intel Matrix RAID technology, dmraid supports following products: | ||
#* asr : Adaptec HostRAID ASR (0,1,10) | #* asr : Adaptec HostRAID ASR (0,1,10) | ||
Line 50: | Line 51: | ||
== Installation on iSCSI == | == Installation on iSCSI == | ||
# | === Setup === | ||
{{admon/important|Additional computer required|This test case requires test machine and another computer providing necessary services}} | |||
{{admon/note|The other iSCSI targets|This document describes, how to work with sw iSCSI target on Fedora with <code>scsi-target-utils</code> package. If you managed hw target for testing or if you are using different tools for sw targets, hopefully you are also able to control it.}} | |||
{{admon/important|Firewall settings|Ensure, '''port 3260''' is available for incoming connection and there is no blocking firewall in the way between target and test machine.}} | |||
{{admon/note|Hint|You can setup iSCSI target on the physical host where you are running your virtual machines}} | |||
* Setup iSCSI target (server providing iSCSI drive). To run software iSCSI target on Fedora run following commands: | |||
<pre> | |||
# dd if=/dev/zero of=/tmp/disk bs=1M seek=8000 count=1 | |||
# losetup /dev/loop0 /tmp/disk | |||
# yum -y install scsi-target-utils | |||
# service tgtd start | |||
# tgtadm --lld iscsi --op new --mode target --tid=1 --targetname iqn.2009-02.com.example:for.all | |||
# tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 1 -b /dev/loop0 | |||
# tgtadm --lld iscsi --op bind --mode target --tid 1 -I ALL | |||
</pre> | |||
* note the IP address of machine hosting the iSCSI target, | |||
* run the installation on bare metal or virtual machine, | |||
** To start virtual machine you can use this command: | |||
<pre> | |||
# virt-install --accelerate -n test-machine101 -r 1024 -f /var/lib/libvirt/images/test-machine101.img -s 21 -c /var/lib/libvirt/images | |||
</pre> | |||
=== Action === | |||
# In ''INSTALLATION DESTINATION'' select review/modify click ''Add a disk'' button, | |||
# press ''Add iSCSI Target'' button on next screen, | |||
# put IP address of machine hosting the prepared iSCSI target and finish the procedure, | |||
# ensure the iSCSI disk as well as local hard drive is selected for installation, | |||
# select review/modify choice for partitioning, | |||
# create / mountpoint, place it on iSCSI target, | |||
# create /boot mountpoint, place it on local disk, | |||
# create all other necessary partitions, | |||
# complete the installation and reboot the system. | |||
=== Expected Results === | |||
# iSCSI target is added and used for installation, | |||
# mountpoints can be assigned to patitions/logical volumes placed on iSCSI disk, | |||
# installation is finished and system starts up, | |||
# iSCSI is initialized during boot and all filesystems are mounted, | |||
# filesystem layout is in accordance with setup in the installer. | |||
=== Cleanup === | |||
* To stop iSCSI target: | |||
<pre> | |||
# service tgtd stop | |||
# losetup -d /dev/loop0 | |||
# rm -f /tmp/disk | |||
</pre> | |||
* To destroy virtual machine run: | |||
<pre> | |||
# virsh destroy test-machine101 | |||
# virsh undefine --remove-all-storage test-machine101 | |||
</pre> | |||
== Default LVM with encryption == | == Default LVM with encryption == | ||
Line 123: | Line 177: | ||
=== Action === | === Action === | ||
# In INSTALLATION DESTINATION select all available disks, | # In INSTALLATION DESTINATION select all available disks, | ||
# use partitioning layout which utilizes all the disks, custom partitioning or automatic LVM should work, | |||
# complete the installation in setup of own choice. | # complete the installation in setup of own choice. | ||
Line 191: | Line 246: | ||
=== Action === | === Action === | ||
# In INSTALLATION DESTINATION | # In INSTALLATION DESTINATION select review/modify choice, | ||
# '''do not format or delete existing LVM logical volumes''', | |||
# create / as LVM logical volume placed in already existing volume group, | |||
# create additional partitions/mount points if necessary (e.g. /boot, /usr), | |||
# optionally assign mount point to existing LVM logical volumes, | |||
=== Expected Results === | === Expected Results === | ||
Line 207: | Line 266: | ||
</pre> | </pre> | ||
== LVM on top of RAID == | == LVM on top of sw RAID == | ||
=== Setup === | === Setup === | ||
{{admon/important|Multiple hard drives required|You need a machine with more than 1 disks}} | |||
# Run the installation on machine including more than 1 hard drives | |||
#* For testing in virtual machine run: | |||
<pre> | |||
# virt-install --accelerate -n test-machine101 -r 1024 --disk /var/lib/libvirt/images/test-machine101.img,device=disk,bus=virtio,size=21 --disk /var/lib/libvirt/images/additional-disk101,device=disk,bus=virtio,size=21 -c /var/lib/libvirt/images/Fedora.iso | |||
</pre> | |||
=== Action === | === Action === | ||
# In INSTALLATION DESTINATION choose review/modify choice for partitioning, | |||
# create / which is placed on LVM logical volume, | |||
# physical volume of the volume group including / has to be software RAID /dev/md{N} device with level of your own choice with accordance to available hard drives, | |||
# create other mountpoints/partitions if necessary (/boot, /usr, ...) | |||
# complete the installation and start up the system. | |||
=== Expected Results === | === Expected Results === | ||
# Requested filesystem layout is created, | |||
# installation is finished, | |||
# systems starts up properly, | |||
# filesystem layout of the system is in accordance with setup in installer. | |||
=== Cleanup === | === Cleanup === | ||
# To destroy virtual machine run: | |||
<pre> | |||
# virsh destroy test-machine101 | |||
# virsh undefine --remove-all-storage test-machine101 | |||
</pre> | |||
== Reuse encrypted partitions == | == Reuse encrypted partitions == | ||
=== Setup === | === Setup === | ||
{{admon/important|Preliminary installation required|}} | |||
# Do an installation with custom partitioning layout: | |||
#* create /, use encryption for it, | |||
#* create /home, use encryption for it, | |||
#* create any other partition/mountpoint if necessary (/boot, /usr ...) | |||
# complete the installation, reboot system, | |||
# put some data to /home, | |||
# reboot the system and change boot order to boot from installation media, | |||
# start installation again. | |||
To start virtual machine, run: | |||
<pre> | |||
# virt-install --accelerate -n test-machine101 -r 1024 -f /var/lib/libvirt/images/test-machine101.img -s 21 -c /var/lib/libvirt/images/Fedora.iso | |||
</pre> | |||
=== Action === | === Action === | ||
# In INSTALLATION DESTINATION select review/modify choice, | |||
# enter correct passphrase if you are asked for it, | |||
# reuse partition formerly created as / for new / again, reformat it, | |||
# assign /home mountpoint to partition formerly created for /home, '''do not''' reformat it, | |||
# create any additional mountpoint/partition if necessary (/usr, /boot ...) | |||
# finish the installation and reboot the system. | |||
=== Expected Results === | === Expected Results === | ||
# It is possible to reuse encrypted partitions, | |||
# installation is finished, | |||
# system starts up without issue, | |||
# passphrase for encrypted disks is requested during boot, | |||
# data in /home are preserved, | |||
# filesystem layout is in accordance to setup in installer. | |||
=== Cleanup === | === Cleanup === | ||
# To destroy virtual machine run: | |||
<pre> | |||
# virsh destroy test-machine101 | |||
# virsh undefine --remove-all-storage test-machine101 | |||
</pre> | |||
== Create multiple VGs == | == Create multiple VGs == | ||
=== Setup === | === Setup === | ||
{{admon/important|Multiple hard drives required|You need a machine with more than 1 disks}} | |||
# Run the installation on machine including more than 1 hard drives | |||
#* For testing in virtual machine run: | |||
<pre> | |||
# virt-install --accelerate -n test-machine101 -r 1024 --disk /var/lib/libvirt/images/test-machine101.img,device=disk,bus=virtio,size=21 --disk /var/lib/libvirt/images/additional-disk101,device=disk,bus=virtio,size=21 -c /var/lib/libvirt/images/Fedora.iso | |||
</pre> | |||
=== Action === | === Action === | ||
# In INSTALLATION DESTINATION choose review/modify choice for partitioning, create following partitioning layout: | |||
# create / mountpoint | |||
#* it is placed on LVM logical volume, | |||
#* logical volume is part of LVM volume group called System, | |||
#* just one drive is assigned to volume group System, | |||
# create /srv mountpoint: | |||
#* it is placed on LVM logical volume, | |||
#* logical volume is part of LVM volume group called Data, | |||
#* the second one hard drive is assigned to volume group Data, | |||
# create all other necessary partitions/mountpoints (/boot, /usr, ...), | |||
# complete the installation and reboot system. | |||
=== Expected Results === | === Expected Results === | ||
# It is possible to create two volume groups, | |||
# it is possible to assign chosen hard drive to volume group, | |||
# it is possible to create logical volumes in all volume groups and assign mountpoints, | |||
# installation is completed, installed system starts up without issue, | |||
# filesystem layout is in accordance with setup in the installer. | |||
=== Cleanup === | === Cleanup === | ||
# To destroy virtual machine run: | |||
<pre> | |||
# virsh destroy test-machine101 | |||
# virsh undefine --remove-all-storage test-machine101 | |||
</pre> | |||
[[Category:Test_Plans]] | [[Category:Test_Plans]] |
Latest revision as of 09:35, 20 May 2013
Initial setup
- Prepare installation media available at {URL} according to instructions from Installation Guide
- Optionally install virtualization support in Fedora:
# yum -y install @virtualization # service libvirtd start # cp $FEDORA_ISO /var/lib/libvirt/images/Fedora.iso
- To start virtual machine you can use this command:
# virt-install --accelerate -n test-machine101 -r 1024 -f /var/lib/libvirt/images/test-machine101.img -s 21 -c /var/lib/libvirt/images/Fedora.iso
- You can destroy virtual machine right after execution of a test case with these commands:
# virsh destroy test-machine101 # virsh undefine --remove-all-storage test-machine101
Installation on bios/firmware RAID
Setup
- You need a machine with bios/firmware RAID supported by dmraid or MD. Linux MD driver supports Intel Matrix RAID technology, dmraid supports following products:
- asr : Adaptec HostRAID ASR (0,1,10)
- ddf1 : SNIA DDF1 (0,1,4,5,linear)
- hpt37x : Highpoint HPT37X (S,0,1,10,01)
- hpt45x : Highpoint HPT45X (S,0,1,10)
- isw : Intel Software RAID (0,1,5,01)
- jmicron : JMicron ATARAID (S,0,1)
- lsi : LSI Logic MegaRAID (0,1,10)
- nvidia : NVidia RAID (S,0,1,10,5)
- pdc : Promise FastTrack (S,0,1,10)
- sil : Silicon Image(tm) Medley(tm) (0,1,10)
- via : VIA Software RAID (S,0,1,10)
- dos : DOS partitions on SW RAIDs
- you need multiple hard drives connected to controller supporting RAID setup,
- setup arbitary RAID level in your firmware.
Action
- Boot the installation media on prepared machine,
- finish the installation by choosing default options.
Expected Results
- Installation starts up properly,
- RAID device is recognized and used,
- system is installed without issue, it boots up,
- system is installed on RAID and not underlying devices.
Cleanup
N/A
Installation on iSCSI
Setup
- Setup iSCSI target (server providing iSCSI drive). To run software iSCSI target on Fedora run following commands:
# dd if=/dev/zero of=/tmp/disk bs=1M seek=8000 count=1 # losetup /dev/loop0 /tmp/disk # yum -y install scsi-target-utils # service tgtd start # tgtadm --lld iscsi --op new --mode target --tid=1 --targetname iqn.2009-02.com.example:for.all # tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 1 -b /dev/loop0 # tgtadm --lld iscsi --op bind --mode target --tid 1 -I ALL
- note the IP address of machine hosting the iSCSI target,
- run the installation on bare metal or virtual machine,
- To start virtual machine you can use this command:
# virt-install --accelerate -n test-machine101 -r 1024 -f /var/lib/libvirt/images/test-machine101.img -s 21 -c /var/lib/libvirt/images
Action
- In INSTALLATION DESTINATION select review/modify click Add a disk button,
- press Add iSCSI Target button on next screen,
- put IP address of machine hosting the prepared iSCSI target and finish the procedure,
- ensure the iSCSI disk as well as local hard drive is selected for installation,
- select review/modify choice for partitioning,
- create / mountpoint, place it on iSCSI target,
- create /boot mountpoint, place it on local disk,
- create all other necessary partitions,
- complete the installation and reboot the system.
Expected Results
- iSCSI target is added and used for installation,
- mountpoints can be assigned to patitions/logical volumes placed on iSCSI disk,
- installation is finished and system starts up,
- iSCSI is initialized during boot and all filesystems are mounted,
- filesystem layout is in accordance with setup in the installer.
Cleanup
- To stop iSCSI target:
# service tgtd stop # losetup -d /dev/loop0 # rm -f /tmp/disk
- To destroy virtual machine run:
# virsh destroy test-machine101 # virsh undefine --remove-all-storage test-machine101
Default LVM with encryption
Setup
- Run the installation on bare metal or virtual machine.
- To start virtual machine, run:
# virt-install --accelerate -n test-machine101 -r 1024 -f /var/lib/libvirt/images/test-machine101.img -s 21 -c /var/lib/libvirt/images/Fedora.iso
Action
- In INSTALLATION DESTINATION choose automatic layout with LVM,
- select encryption and put passphrase,
- complete the installation.
Expected Results
- Default partitioning layout is created,
- partitions are encrypted,
- installer asks for passphrase,
- system requests passphrase during boot,
- systems starts without issue with passphrase.
Cleanup
- To destroy virtual machine run:
# virsh destroy test-machine101 # virsh undefine --remove-all-storage test-machine101
Reuse /home on LVM
Setup
- Do an installation with separate /home partition placed on LVM logical volume.
- To start virtual machine, run:
# virt-install --accelerate -n test-machine101 -r 1024 -f /var/lib/libvirt/images/test-machine101.img -s 21 -c /var/lib/libvirt/images/Fedora.iso
- start up installed system, store some data in /home
- change the boot order to boot up again from installation media,
- start the installation again.
Action
- Select review/modify choice partitioning in INSTALLATION DESTINATION,
- assign existing home logical volume to /home mount point, do not format partition,
- create & assign other required mount points (/, /boot, ...), complete the partitioning,
- complete the installation and start up installed system.
Expected Results
- Existing home logical volume is visible in installer,
- it is possible to assign mount point to this volume,
- it is possible to disable formatting,
- installation is completed,
- systems starts up,
- data in /home partition still exist.
Cleanup
- To destroy virtual machine run:
# virsh destroy test-machine101 # virsh undefine --remove-all-storage test-machine101
More disks
Setup
- Run the installation on machine including more than 1 hard drives
- For testing in virtual machine run:
# virt-install --accelerate -n test-machine101 -r 1024 --disk /var/lib/libvirt/images/test-machine101.img,device=disk,bus=virtio,size=21 --disk /var/lib/libvirt/images/additional-disk101,device=disk,bus=virtio,size=10 -c /var/lib/libvirt/images/Fedora.iso
Action
- In INSTALLATION DESTINATION select all available disks,
- use partitioning layout which utilizes all the disks, custom partitioning or automatic LVM should work,
- complete the installation in setup of own choice.
Expected Results
- All disks are visible in installer,
- all disks can be selected,
- all disks are used for installation,
- installation is finished without issue,
- system starts up properly,
- all filesystems are present with accordance to setup in installer.
Cleanup
- To destroy virtual machine run:
# virsh destroy test-machine101 # virsh undefine --remove-all-storage test-machine101
Separate mountpoints
Setup
- Run the installation on bare metal or virtual machine.
- To start virtual machine, run:
# virt-install --accelerate -n test-machine101 -r 1024 -f /var/lib/libvirt/images/test-machine101.img -s 21 -c /var/lib/libvirt/images/Fedora.iso
Action
- In INSTALLATION DESTINATION choose review/modify choice for partitioning
- Create following layout:
- create /boot,
- create /, use encryption for it,
- create /usr,
- create /home, use encryption for it,
- create /var,
- create swap, use encryption for it,
- complete the installation and start the system.
Expected Results
- Defined disk layout is created,
- installer asks for a passphrase,
- installation is completed,
- installed systems starts and asks for a passphrase to unlock encrypted disks,
- login is possible,
- disk layout on installed system is in accordance with installation setup, all filesystems are mounted, swap is enabled.
Cleanup
- To destroy virtual machine run:
# virsh destroy test-machine101 # virsh undefine --remove-all-storage test-machine101
Reuse existing VG
Setup
- Do an installation with custom partitioning layout:
- create / placed on LVM logical volume,
- create /boot on raw partition,
- keep some free space on underlaying hard drive(s),
- keep some free space in LVM volume group,
- To start virtual machine, run:
# virt-install --accelerate -n test-machine101 -r 1024 -f /var/lib/libvirt/images/test-machine101.img -s 21 -c /var/lib/libvirt/images/Fedora.iso
- complete the installation,
- change the boot order to boot up again from installation media,
- start the installation again.
Action
- In INSTALLATION DESTINATION select review/modify choice,
- do not format or delete existing LVM logical volumes,
- create / as LVM logical volume placed in already existing volume group,
- create additional partitions/mount points if necessary (e.g. /boot, /usr),
- optionally assign mount point to existing LVM logical volumes,
Expected Results
- It is possible to reuse free space in already existing LVM volume group,
- installation is finished,
- system starts up properly,
- filesystem layout is in accordance with setup in installer,
- unmodified LVM logical volumes are preserved including the content.
Cleanup
- To destroy virtual machine run:
# virsh destroy test-machine101 # virsh undefine --remove-all-storage test-machine101
LVM on top of sw RAID
Setup
- Run the installation on machine including more than 1 hard drives
- For testing in virtual machine run:
# virt-install --accelerate -n test-machine101 -r 1024 --disk /var/lib/libvirt/images/test-machine101.img,device=disk,bus=virtio,size=21 --disk /var/lib/libvirt/images/additional-disk101,device=disk,bus=virtio,size=21 -c /var/lib/libvirt/images/Fedora.iso
Action
- In INSTALLATION DESTINATION choose review/modify choice for partitioning,
- create / which is placed on LVM logical volume,
- physical volume of the volume group including / has to be software RAID /dev/md{N} device with level of your own choice with accordance to available hard drives,
- create other mountpoints/partitions if necessary (/boot, /usr, ...)
- complete the installation and start up the system.
Expected Results
- Requested filesystem layout is created,
- installation is finished,
- systems starts up properly,
- filesystem layout of the system is in accordance with setup in installer.
Cleanup
- To destroy virtual machine run:
# virsh destroy test-machine101 # virsh undefine --remove-all-storage test-machine101
Reuse encrypted partitions
Setup
- Do an installation with custom partitioning layout:
- create /, use encryption for it,
- create /home, use encryption for it,
- create any other partition/mountpoint if necessary (/boot, /usr ...)
- complete the installation, reboot system,
- put some data to /home,
- reboot the system and change boot order to boot from installation media,
- start installation again.
To start virtual machine, run:
# virt-install --accelerate -n test-machine101 -r 1024 -f /var/lib/libvirt/images/test-machine101.img -s 21 -c /var/lib/libvirt/images/Fedora.iso
Action
- In INSTALLATION DESTINATION select review/modify choice,
- enter correct passphrase if you are asked for it,
- reuse partition formerly created as / for new / again, reformat it,
- assign /home mountpoint to partition formerly created for /home, do not reformat it,
- create any additional mountpoint/partition if necessary (/usr, /boot ...)
- finish the installation and reboot the system.
Expected Results
- It is possible to reuse encrypted partitions,
- installation is finished,
- system starts up without issue,
- passphrase for encrypted disks is requested during boot,
- data in /home are preserved,
- filesystem layout is in accordance to setup in installer.
Cleanup
- To destroy virtual machine run:
# virsh destroy test-machine101 # virsh undefine --remove-all-storage test-machine101
Create multiple VGs
Setup
- Run the installation on machine including more than 1 hard drives
- For testing in virtual machine run:
# virt-install --accelerate -n test-machine101 -r 1024 --disk /var/lib/libvirt/images/test-machine101.img,device=disk,bus=virtio,size=21 --disk /var/lib/libvirt/images/additional-disk101,device=disk,bus=virtio,size=21 -c /var/lib/libvirt/images/Fedora.iso
Action
- In INSTALLATION DESTINATION choose review/modify choice for partitioning, create following partitioning layout:
- create / mountpoint
- it is placed on LVM logical volume,
- logical volume is part of LVM volume group called System,
- just one drive is assigned to volume group System,
- create /srv mountpoint:
- it is placed on LVM logical volume,
- logical volume is part of LVM volume group called Data,
- the second one hard drive is assigned to volume group Data,
- create all other necessary partitions/mountpoints (/boot, /usr, ...),
- complete the installation and reboot system.
Expected Results
- It is possible to create two volume groups,
- it is possible to assign chosen hard drive to volume group,
- it is possible to create logical volumes in all volume groups and assign mountpoints,
- installation is completed, installed system starts up without issue,
- filesystem layout is in accordance with setup in the installer.
Cleanup
- To destroy virtual machine run:
# virsh destroy test-machine101 # virsh undefine --remove-all-storage test-machine101