Back to top
 
 
 

Xen opensuse

Contents

OpenSUSE

OpenSUSE 10.3

The pygrub bootloader is not available on the SUSE platform. Instead, there is a domUloader.py located at /usr/lib/xen/boot directory. Once the installation of PV images is complete, you would have to change the bootloader manually to /usr/lib/xen/boot/domUloader.py. Also, the bootloader requires bootargs param containing the location of path to kernel and ramdisk within the VM image. The bootargs can be specified in the Miscellaneous tab. Here is an exmple entry :

bootargs =--entry=xvda1:/vmlinuz,/initrd.img 

Note: The domUloader is not able to mount the rPath Appliance images. This prevents it from being able to fetch the kernel and ramdisk from the appliance and start it. We would publish a set of steps once the domUloader issue is resolved.

OpenSUSE 11.0

Required RPMs

  1. python-crypto-2.0.1
  2. python-paramiko-1.7.4
  3. xen-3.2.1
  4. convirt-0.9.1-1.suse.noarch.rpm

Steps

Run the following commands as root

rpm -Uvh python-crypto-2.0.1-29.6.x86_64.rpm
rpm -Uvh python-paramiko-1.7.4-3.1.x86_64.rpm
rpm -Uvh xen-3.2.1_16881_04-8.6.x86_64.rpm
rpm -Uvh convirt-0.9.1-1.suse.noarch.rpm

You can safely ignore the "error: failed to stat /home/tom/.gvfs: Permission denied" error.

Then you can launch convirt as root:

[root@localhost]$ convirt

Workarounds

X Display not available to root

If you encounter the following error:

/usr/lib64/python2.5/site-packages/gtk-2.0/gtk/__init__.py:72: GtkWarning: could not open display
 warnings.warn(str(e), _gtk.Warning)
/usr/share/convirt/src/convirt/client/htmltextview.py:38: GtkWarning: gdk_screen_get_height: assertion `GDK_IS_SCREEN (screen)' failed
 display_resolution = 0.3514598*(gtk.gdk.screen_height() /
/usr/share/convirt/src/convirt/client/htmltextview.py:39: GtkWarning: gdk_screen_get_height_mm: assertion `GDK_IS_SCREEN (screen)' failed
 float(gtk.gdk.screen_height_mm()))
Traceback (most recent call last):
 File "/usr/share/convirt/src/convirt/client/convirt_client.py", line 74, in <module>
   import convirt.client.dialogs
 File "/usr/share/convirt/src/convirt/client/dialogs.py", line 36, in <module>
   from convirt.client.htmltextview import HtmlTextView
 File "/usr/share/convirt/src/convirt/client/htmltextview.py", line 39, in <module>
   float(gtk.gdk.screen_height_mm()))
ZeroDivisionError: float division

In order to launch convirt:

[user@localhost]$ xhost +
[user@localhost]$ sudo su
[root@localhost]$ export DISPLAY=:0.0
[root@localhost]$ convirt

SLES

Note : This should not be required for ConVirt 1.0 and above. For SLES environment, you would have to add to ConVirt.

use_3_1_api=True 

in the DEFAULT section of convirt.conf on the managed server machine.

 
この記事は役に立ちましたか?
0人中0人がこの記事が役に立ったと言っています

コメント