From Fedora Project Wiki

(Create page)
(Simplify virt-install command a bit)
Line 24: Line 24:


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

Revision as of 17:19, 17 September 2014

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/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.