Configuring a Virtual Machine by Modifying its xend Settings

The machine settings of each virtual guest are stored in an internal database managed by xend. You can change a virtual machine’s settings by modifying the settings stored in xend. This process requires you to export a virtual machine’s settings from the xend database to a text file, edit the settings in the file to meet your configuration requirements, import the file back into xend, and restart the virtual machine.

[Note]Note

It is no longer recommended that you edit the initial startup files stored in /etc/xen/vm, because they are used only during the creation of a new virtual machine.

To modify a virtual machine’s settings that is administrated with the virtual machine manager:

  1. At Domain0, enter

    xm list -l vm_name > filename
    

    where vm_name is the name of the virtual machine you want to modify and filename is whatever you want to name the text file.

  2. Use a text editor to make and save any desired changes.

    (domain
       (domid 1)
       (on_crash destroy)
       (memory 384)
       (uuid 4fbcb943-871c-9a51-3a48-3ad99d933841)
       (bootloader_args '- -entry=xvda2:/boot/vmlinuz-xen,/boot/initrd-xen')
       (name SLES10SP1withOES2)    (maxmem 512)
       (on_reboot restart)
       (on_poweroff destroy)
       (vcpus 1)
       (bootloader /usr/lib/xen/boot/domUloader.py)
       (shadow_memory 0)
       (cpu_weight 256)
       (cpu_cap 0)
       (features )
       (on_xend_start ignore)
       (on_xend_stop ignore)
       (start_time 1178219902.47)
       (cpu_time 4574.26779201)
       (online_vcpus 1)
       (image
           (linux
               (kernel /var/lib/xen/tmp/kernel.Bg0o6h)
               (ramdisk /var/lib/xen/tmp/ramdisk.Bch8YM)
               (args 'TERM=xterm ')
           )
       )
       (status 2)
    ....
    
  3. Delete the existing configuration from xenstore with the command xm del vm_name

  4. Enter xm new -F filename to import the virtual machine’s new settings into xend.

  5. Enter xm start vm_name to start the virtual machine with its new settings.

    You should repeat the entire process of exporting the file each time you want to make changes to a virtual machine’s settings.


SUSE Linux Enterprise Server 10 SP2