From Fedora Project Wiki

(Tweak virt-install command)
 
(18 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
{{QA/Test_Case
 
{{QA/Test_Case
|description=Install a Fedora guest from an install tree URL using virt-install or virt-manager.
+
|description=
 +
Install a Fedora guest from an install tree URL using virt-install or virt-manager.
  
|setup=Nothing beyond initial test day setup.
+
|setup=
 +
Nothing beyond initial test day setup.
  
 
|actions=
 
|actions=
 +
 +
=== Test OS detection on the URL ===
 +
 +
{{admon/note | Fedora 29 URLs are detected as Fedora 28 }}
 +
 +
This will determine if the virt-install/virt-manager can detect an OS from the URL. Feel free to try this with as many different OS install trees that you want, and file a bug against virt-manager if the output doesn't match the expected results.
 +
 +
For F29, this looks like
 +
 +
* <code>sudo virt-install --test-media-detection https://kojipkgs.fedoraproject.org/compose/branched/Fedora-29-20180910.n.0/compose/Workstation/x86_64/os/</code>
  
 
=== virt-manager ===
 
=== virt-manager ===
 
 
# Run virt-manager (should autoconnect to qemu)
 
# Run virt-manager (should autoconnect to qemu)
 
# Launch the 'New VM' wizard
 
# Launch the 'New VM' wizard
# Enter any name, choose network install option
+
# Choose the 'Network install' option
# Enter a URL for the latest fedora test release. F17 Alpha looks like: http://download.fedoraproject.org/pub/fedora/linux/releases/test/17-Alpha/Fedora/x86_64/os
+
# Enter the following URL for the latest fedora development bits: https://kojipkgs.fedoraproject.org/compose/branched/Fedora-29-20180910.n.0/compose/Workstation/x86_64/os/
# Note: due to an [[https://bugzilla.redhat.com/show_bug.cgi?id=785815|anaconda bug]], you'll need to add some extra info here. Under URL Options -> Kernel Options, add this:
 
  root=live:http://download.fedoraproject.org/pub/fedora/linux/releases/test/17-Alpha/Fedora/x86_64/os/LiveOS/squashfs.img
 
 
# Press enter when the URL field is active: virt-manager should auto detect the URL as a recent fedora distro
 
# Press enter when the URL field is active: virt-manager should auto detect the URL as a recent fedora distro
# 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
 
# Start the install, and perform the install as you would on a normal machine.
 
# Start the install, and perform the install as you would on a normal machine.
  
Line 22: Line 31:
 
An example virt-install invocation looks like
 
An example virt-install invocation looks like
  
  $> virt-install --name fedoratestday --ram 1024 \
+
sudo virt-install --name test-day-vm --ram 2048 --disk size=20 \
        --disk path=/var/lib/libvirt/images/fedoratestday.img,size=10 \
+
          --location https://kojipkgs.fedoraproject.org/compose/branched/Fedora-29-20180910.n.0/compose/Workstation/x86_64/os/
        --location http://download.fedoraproject.org/pub/fedora/linux/releases/test/17-Alpha/Fedora/x86_64/os \
 
        --extra-args "root=live:http://download.fedoraproject.org/pub/fedora/linux/releases/test/17-Alpha/Fedora/x86_64/os/LiveOS/squashfs.img"
 
 
 
Typically the extra-args would not be required, except for the bug mentioned in the virt-manager example.
 
  
 
|results=
 
|results=

Latest revision as of 17:46, 10 September 2018

Description

Install a Fedora guest from an install tree URL using virt-install or virt-manager.

Setup

Nothing beyond initial test day setup.

How to test

Test OS detection on the URL

Note.png
Fedora 29 URLs are detected as Fedora 28

This will determine if the virt-install/virt-manager can detect an OS from the URL. Feel free to try this with as many different OS install trees that you want, and file a bug against virt-manager if the output doesn't match the expected results.

For F29, this looks like

virt-manager

  1. Run virt-manager (should autoconnect to qemu)
  2. Launch the 'New VM' wizard
  3. Choose the 'Network install' option
  4. Enter the following URL for the latest fedora development bits: https://kojipkgs.fedoraproject.org/compose/branched/Fedora-29-20180910.n.0/compose/Workstation/x86_64/os/
  5. Press enter when the URL field is active: virt-manager should auto detect the URL as a recent fedora distro
  6. Proceed with through the wizard, using the default suggested values. On the final page, use the VM name: test-day-vm
  7. Start the install, and perform the install as you would on a normal machine.

virt-install

An example virt-install invocation looks like

sudo virt-install --name test-day-vm --ram 2048 --disk size=20 \
         --location https://kojipkgs.fedoraproject.org/compose/branched/Fedora-29-20180910.n.0/compose/Workstation/x86_64/os/

Expected Results

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