QA:Testcase Virtualization Import Guest Install

From FedoraProject

(Difference between revisions)
Jump to: navigation, search
(Create page)
 
(Create page)
 
Line 1: Line 1:
 
{{QA/Test_Case
 
{{QA/Test_Case
 
|description=
 
|description=
Install a Fedora VM from PXE.
+
Import an existing VM disk image.
  
 
|setup=
 
|setup=
{{admon/note | Setting up PXE is outside the scope of this test case. | If you don't have a pre-existing PXE setup, please skip this test. }}
+
{{admon/note | A  pre-existing VM image is required. | If you don't have a pre-existing VM image, please skip this test. }}
Initial test day setup, a pre-existing PXE setup. Either a specially configured virtual network or host bridge device is required for guests to PXE boot.
+
Initial test day setup, a pre-existing VM image.
  
 
|actions=
 
|actions=
Line 12: Line 12:
 
# Run virt-manager (should autoconnect to qemu)
 
# Run virt-manager (should autoconnect to qemu)
 
# Launch the 'New VM' wizard
 
# Launch the 'New VM' wizard
# Choose the 'PXE' option
+
# Choose the 'Import' option
 +
# Browse to the existing VM image.
 
# Make sure to enter a valid OS type, it's important for performance defaults.
 
# Make sure to enter a valid OS type, it's important for performance defaults.
 
# Proceed with through the wizard, using the default suggested values.
 
# Proceed with through the wizard, using the default suggested values.
 
# On the final page, use the VM name: test-day-vm
 
# On the final page, use the VM name: test-day-vm
# Ensure there are no network warnings on the final page. Choose the appropriate network device for PXE booting.
+
# Finish the install, verify your VM boots as expected. Depending on the OS and content of the image, additional devices may need to be configured in the 'customize before install' step.
# Start the install, and perform the install as you would on a normal machine.
+
  
 
=== virt-install ===
 
=== virt-install ===
Line 24: Line 24:
  
 
   $> virt-install --name test-day-vm --ram 2048 \
 
   $> virt-install --name test-day-vm --ram 2048 \
         --disk path=/var/lib/libvirt/images/test-day-vm.img,size=10 \
+
         --disk path=/path/to/my/existing/vm/disk.img \
 
         --os-variant fedora20 \
 
         --os-variant fedora20 \
         --pxe
+
         --import
  
 
|results=
 
|results=

Latest revision as of 13:02, 8 October 2013

Contents

Description

Import an existing VM disk image.

Setup

Note.png
A pre-existing VM image is required.
If you don't have a pre-existing VM image, please skip this test.

Initial test day setup, a pre-existing VM image.

How to test

virt-manager

  1. Run virt-manager (should autoconnect to qemu)
  2. Launch the 'New VM' wizard
  3. Choose the 'Import' option
  4. Browse to the existing VM image.
  5. Make sure to enter a valid OS type, it's important for performance defaults.
  6. Proceed with through the wizard, using the default suggested values.
  7. On the final page, use the VM name: test-day-vm
  8. Finish the install, verify your VM boots as expected. Depending on the OS and content of the image, additional devices may need to be configured in the 'customize before install' step.

virt-install

An example virt-install invocation looks like

 $> virt-install --name test-day-vm --ram 2048 \
        --disk path=/path/to/my/existing/vm/disk.img \
        --os-variant fedora20 \
        --import

Expected Results

Guest installations start and perform without any issues. Guest is bootable after install completes.