From Fedora Project Wiki

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 65: Line 65:
 
  # export OSNAME=Fedora-16-i386-DVD
 
  # export OSNAME=Fedora-16-i386-DVD
  
=== Test case 1: ISO media detection ===
+
=== Test case 1: ISO media inspection ===
  
The first test is to try to inspect the ISO media and see if libosinfo can identify the operating system. Use the 'osinfo-detect' command todo this
+
The first test is to try to inspect the ISO media and see if libguestfs can identify the operating system. Use the 'virt-inspector' command todo this
  
  # osinfo-detect /path/to/iso/image
+
  # virt-inspector /path/to/iso/image
  
'''This test shall be considered successful if the above commands outputs the name of the operating system on the media'''
+
'''This test shall be considered successful if the above commands outputs an XML document containing an <operatingsystem> element and the following child elements'''
  
If this fails, file a bug report against the libosinfo component, providing the output of the following command as an attachment to the bug
+
- <name>
 +
- <distro>
 +
- <arch>
 +
- <major_version> + <minor_version>
 +
- <format>installer</installer>
 +
 
 +
If any of this data is missing, file a bug report against the libguestfs component, providing details of the ISO image you used
  
# isoinfo -d -i /path/to/iso/image
 
  
 
For example a successful invocation on a Fedora 16 DVD looks like this:
 
For example a successful invocation on a Fedora 16 DVD looks like this:
  
 
  # cd /var/lib/libvirt/images
 
  # cd /var/lib/libvirt/images
  # osinfo-detect $OSNAME.iso  
+
  # virt-inspector $OSNAME.iso  
Media is bootable.
+
  <?xml version="1.0"?>
Media is an installer for OS 'Fedora 16'
+
  <operatingsystems>
 +
    <operatingsystem>
 +
      <root>/dev/sda</root>
 +
      <name>linux</name>
 +
      <arch>i386</arch>
 +
      <distro>fedora</distro>
 +
      <major_version>116</major_version>
 +
      <minor_version>0</minor_version>
 +
      <package_format>rpm</package_format>
 +
      <package_management>yum</package_management>
 +
      <format>installer</format>
 +
      <multipart/>
 +
      <mountpoints>
 +
        <mountpoint dev="/dev/sda">/</mountpoint>
 +
      </mountpoints>
 +
      <filesystems>
 +
        <filesystem dev="/dev/sda">
 +
          <type>iso9660</type>
 +
          <label>Fedora 16 i386 DVD</label>
 +
        </filesystem>
 +
      </filesystems>
 +
      <applications/>
 +
    </operatingsystem>
 +
  </operatingsystems>
  
 
Even if this test fails, you can still proceed with the other three tests.
 
Even if this test fails, you can still proceed with the other three tests.
Line 99: Line 127:
 
   # virt-install --hvm --noreboot  --ram 800 --vnc --name $OSNAME \
 
   # virt-install --hvm --noreboot  --ram 800 --vnc --name $OSNAME \
 
                 --network network=default \
 
                 --network network=default \
                 --disk path=/var/lib/libvirt/images/$OSNAME.raw,size=10 \
+
                 --disk path=/var/lib/libvirt/images/$OSNAME.qcow2,size=10 \
 
                 --cdrom /var/lib/libvirt/images/$OSNAME.iso
 
                 --cdrom /var/lib/libvirt/images/$OSNAME.iso
  

Please note that all contributions to Fedora Project Wiki are considered to be released under the Attribution-Share Alike 4.0 International (see Fedora Project Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To edit this page, please solve the following task below and enter the answer in the box (more info):

Cancel Editing help (opens in new window)