The wikis are now using the new authentication system.
If you did not migrate your account yet, visit

How to Install a VM's OS from ISO

Şuraya atla: kullan, ara


If you have ISO images (CD or DVD), you can install a VM’s operating system directly from a directory containing the ISO images. Installing from a DVD ISO image is pretty easy, but installing from multiple CD ISO images requires a few commands in order to switch between CD images.

Before you begin

  • Make sure you have booted the Virtual Machine Server kernel (Xen). Check the kernel by opening a terminal window and entering uname -r.

Install a VM's OS from ISO

  1. Run YaST.
  2. Click System > Virtual Machine Management (Xen).
  3. From the Manage Virtual Machines screen, click Add.
  4. Choose Run an OS Installation program, then click Next.
  5. Choose Install Using ISO Image File, then click Next.
  6. Enter the path and name of the first ISO image file, choose SUSE Installation Source, then click Next.
  7. Review and change other Virtual Machine (Installation Settings) as required, and then click Next. (The VM starts in a new window on the desktop and starts the OS installation program.)
  8. Follow the onscreen instructions to install the operating system until the following message appears. 03cannotAccess.png
  9. You must complete the following steps each time you switch to the next ISO image file:
    1. In a terminal window, enter xm list. Note the ID of the VM you are installing.
    2. Enter xm block-list vm_ID where vm_ID is the ID number of the VM. Decide which device is the mounted ISO image and note its Vdev number. Usually the last device displayed in the list is a mounted ISO image because the first devices are usually disk drives.
    3. Enter xm block-detach vm_ID Vdev_number. This command detaches the connection between the VM and the ISO image file. For example, xm block-detach 1 832 detaches the the connection between VM ID 1 and Vdev 832.
    4. Enter cat /etc/xen/vm/vm_name | grep disk where vm_name is the name of the VM you are creating. Note the attach string for the ISO image file, which is usually listed towards the end of the output string and prefaced with file: (for example, file:/path/to/cd_image_1.iso,hdb,r).
    5. Enter xm block-attach vm_ID attach_string where vm_ID is the VM’s ID number and attach_string is the attach string for the next ISO image file. For example, xm block-attach 1 file:/path/to/cd_image_2.iso hdb r. Use spaces to replace the commas between the parameters.
    6. Return to the VM’s installation program window and press OK to continue
    7. Repeat the steps each time the installation program cannot access the installation media.
  10. Complete the installation program following the onscreen instructions.

This page is part of: