[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] OpenSuse 11 hvm domU: screen resolution up to 640x480



On Wed December 7 2011, 10:25:40 PM, Flavio wrote:
> On 7 December 2011 22:20, jim burns <jim_burn@xxxxxxxxxxxxx> wrote:
> > The odd thing is that Xorg.0.log clearly shows the evdev driver found an
> > input driver for the mouse, but the desktop isn't use it. KDE's
> > systemsettings
> > program didn't help, either:
> Very strange actually.
> I really don't have any idea now.
> I hope that it would be possible to solve, using OpenSuse 12.

Ok - back to the hvm install, and converting it to a pv domu. Actually, all 
the heavy lifting has already been done in the hvm install and the pv install. 
Only three things need to be done for the conversion:

1) As I said, all the /dev/disk/by-id references in menu.lst and fstab have to 
be changed to /dev/disk/by-uuid. By way of example, look at the end of my 
/dev/disk tree, and then my menu.lst:


/dev/disk/by-id:
total 0
drwxr-xr-x 2 root root 220 Dec  3 14:34 ./
drwxr-xr-x 6 root root 120 Dec  3 14:34 ../
lrwxrwxrwx 1 root root   9 Dec  3 14:34 ata-QEMU_DVD-ROM_QM00003 -> ../../sr0
lrwxrwxrwx 1 root root   9 Dec  3 14:34 ata-QEMU_HARDDISK_QM00001 -> ../../sda
lrwxrwxrwx 1 root root  10 Dec  3 14:34 ata-QEMU_HARDDISK_QM00001-part1 -> 
../../sda1
lrwxrwxrwx 1 root root  10 Dec  3 14:34 ata-QEMU_HARDDISK_QM00001-part2 -> 
../../sda2
lrwxrwxrwx 1 root root  10 Dec  3 14:34 ata-QEMU_HARDDISK_QM00001-part3 -> 
../../sda3
lrwxrwxrwx 1 root root   9 Dec  3 14:34 scsi-SATA_QEMU_HARDDISK_QM00001 -> 
../../sda
lrwxrwxrwx 1 root root  10 Dec  3 14:34 scsi-SATA_QEMU_HARDDISK_QM00001-part1 
-> ../../sda1
lrwxrwxrwx 1 root root  10 Dec  3 14:34 scsi-SATA_QEMU_HARDDISK_QM00001-part2 
-> ../../sda2
lrwxrwxrwx 1 root root  10 Dec  3 14:34 scsi-SATA_QEMU_HARDDISK_QM00001-part3 
-> ../../sda3

/dev/disk/by-uuid:
total 0
drwxr-xr-x 2 root root 100 Dec  3 14:34 ./
drwxr-xr-x 6 root root 120 Dec  3 14:34 ../
lrwxrwxrwx 1 root root  10 Dec  3 14:34 0b95b2ca-ffc6-486c-a11e-8c1086b88d50 -
> ../../sda1
lrwxrwxrwx 1 root root  10 Dec  3 14:34 2dcfb1a2-876d-4b36-86a5-d34641331c9e -
> ../../sda2
lrwxrwxrwx 1 root root  10 Dec  3 14:34 3ed78b97-5da1-4b3c-a1f0-4a38ba388d78 -
> ../../sda3
# Modified by YaST2. Last modification on Sun Dec  4 12:42:04 EST 2011
# THIS FILE WILL BE PARTIALLY OVERWRITTEN by perl-Bootloader
# Configure custom boot parameters for updated kernels in 
/etc/sysconfig/bootloader

default 3
timeout 8
##YaST - generic_mbr
gfxmenu (hd0,1)/boot/message
##YaST - activate

###Don't change this comment - YaST2 identifier: Original name: linux###
title openSUSE 11.4 - 2.6.37.6-0.9 (default)
    root (hd0,1)
#    kernel /boot/vmlinuz-2.6.37.6-0.9-default root=/dev/disk/by-id/ata-
QEMU_HARDDISK_QM00001-part2 resume=/dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-
part1 showopts vga=0x31a
    kernel /boot/vmlinuz-2.6.37.6-0.9-default root=/dev/sda2 resume=/dev/sda1  
splash=silent showopts vga=0x31a
    initrd /boot/initrd-2.6.37.6-0.9-default

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 11.4 - 2.6.37.6-0.9 (default)
    root (hd0,1)
    kernel /boot/vmlinuz-2.6.37.6-0.9-default root=/dev/sda2 showopts apm=off 
noresume nosmp maxcpus=0 edd=off powersaved=off nohz=off highres=off 
processor.max_cstate=1 nomodeset x11failsafe vga=0x314
    initrd /boot/initrd-2.6.37.6-0.9-default

###Don't change this comment - YaST2 identifier: Original name: xen###
title Xen -- openSUSE 11.4 - 2.6.37.6-0.9
    root (hd0,1)
    kernel /boot/vmlinuz-2.6.37.6-0.9-xen root=/dev/disk/by-
uuid/2dcfb1a2-876d-4b36-86a5-d34641331c9e resume=/dev/disk/by-uuid/0b95b2ca-
ffc6-486c-a11e-8c1086b88d50 showopts vga=0x31a
    initrd /boot/initrd-2.6.37.6-0.9-xen

###Don't change this comment - YaST2 identifier: Original name: linux###
title Desktop -- openSUSE 11.4 - 2.6.37.6-0.9
    root (hd0,1)
    kernel /boot/vmlinuz-2.6.37.6-0.9-desktop root=/dev/disk/by-
uuid/2dcfb1a2-876d-4b36-86a5-d34641331c9e resume=/dev/disk/by-uuid/0b95b2ca-
ffc6-486c-a11e-8c1086b88d50  splash=silent showopts vga=0x31a
    initrd /boot/initrd-2.6.37.6-0.9-desktop

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 11.4 - 2.6.37.6-0.9 (desktop)
    root (hd0,1)
    kernel /boot/vmlinuz-2.6.37.6-0.9-desktop root=/dev/sda2 showopts apm=off 
noresume nosmp maxcpus=0 edd=off powersaved=off nohz=off highres=off 
processor.max_cstate=1 nomodeset x11failsafe vga=0x314
    initrd /boot/initrd-2.6.37.6-0.9-desktop

I left the stanza for the -default kernel as it was originally from the hvm 
install. (Yeah, the hvm install only installed the -desktop version of the 
kernel. I installed the other two with zypper, and upgraded the -desktop 
kernel. This doesn't change the discussion about /dev/disk/by-uuid.)

Eg - see how my ata-QEMU_HARDDISK_QM00001-part2 points to /dev/sda2 (the root 
filesystem). The UUID 2dcfb1a2-876d-4b36-86a5-d34641331c9e also points to 
/dev/sda2, so all three are equivalent in the hvm domu. However, the 
/dev/disk/by-id links completely go away when you boot up with a pv config. 
(Yeah, I used the pv config I posted, patterned on your pv install config.) 
Also, the /dev/sdan drives change into /dev/xvdan drives. The preferred 
standard way of representing the drives then becomes /dev/disk/by-uuid, and I 
changed that in the -desktop and -xen stanzas. The -desktop stanza boots with 
the hvm config, and the -xen stanza boots with the pv config. You also need to 
do the same thing in /etc/fstab.

2) You don't have an X desktop at this point, or an 'xm console ...' login, 
but you do have a login in the vnc window. Two files need to be edited to get 
an xm console login. You must edit /etc/inittab, find the line that looks 
like:

#S0:12345:respawn:/sbin/agetty -L 9600 ttyS0 vt102

and add a line above it that looks like:

x0:12345:respawn:/sbin/agetty -L 9600 xvc0 xterm

Then edit /etc/securetty, and add xvc0 to the end of the list, to allow root 
to login on the agetty defined above. Then give the command 'telinit q' to 
tell init to re-read the inittab file, and create the agetty login process for 
xm console.

There is only one drawback to this: When you boot back in with an hvm config, 
/dev/xvc0 doesn't exist, and you get a lot of annoying error messages in 
syslog. Just comment out the 'x0' line in inittab, and execute telinit q.

I expect this step to be done completely differently in suse 12.1, since the 
old systemV init system is supposed to be replaced by the systemd daemon, 
according to the opensuse web site. I've worked with systemd in fedora 15 - 
it's a bit stiff. ;-(

3) And, finally, this is my xorg.conf:

# 
# This file contains the device names of tty lines (one per line,
# without leading /dev/) on which root is allowed to login.
#
tty1
tty2
tty3
tty4
tty5
tty6
xvc0
root@linux-w421 12/07/11 11:40PM:~
[508] > cat /etc/X11/xorg.conf
Section "Monitor"
  HorizSync    20-220
  Identifier   "Monitor[0]"
  VertRefresh  30-320
  UseModes     "Modes[0]"
EndSection

Section "Modes"
  Identifier   "Modes[0]"
  Modeline "1280x1024" 276.24 1280 1384 1528 1776 1024 1025 1028 1111
  Modeline "1280x1024" 108.88 1280 1360 1496 1712 1024 1025 1028 1060
  Modeline "1280x1024_60.00"  109.00  1280 1368 1496 1712  1024 1027 1034 1063 
-hsync +vsync Doublescan
  Modeline "1280x1024_75.00"  138.75  1280 1368 1504 1728  1024 1027 1034 1072 
-hsync +vsync Interlace
  Modeline "1280x1024_85.00"  159.50  1280 1376 1512 1744  1024 1027 1034 1078 
-hsync +vsync Doublescan Interlace
EndSection

Section "Device"
  BoardName    "Cirrus Logic GD 5446"
  Driver       "cirrus"
  Identifier   "Device[0]"
  VendorName   "XenSource Inc."
EndSection

Section "Screen"
  DefaultDepth 24
  SubSection "Display"
    Depth      15
    Modes      "1280x1024" "1152x864" "1024x768" "800x600" 
  EndSubSection
  SubSection "Display"
    Depth      16
    Modes      "1280x1024" "1152x864" "1024x768" "800x600" 
  EndSubSection
  SubSection "Display"
    Depth      24
    Modes      "1280x1024" "1152x864" "1024x768" "800x600" 
  EndSubSection
  SubSection "Display"
    Depth      8
    Modes      "1280x1024" "1152x864" "1024x768" "800x600" 
  EndSubSection
  Device       "Device[0]"
  Identifier   "Screen[0]"
  Monitor      "Monitor[0]"
EndSection

Section "Device"
  Identifier "fbdev"
  Driver  "fbdev"
EndSection
Section "Screen"
  Identifier "fbdev"
  Device "fbdev"
EndSection

Section "ServerLayout"
  Identifier   "Layout[all]"
  Option       "Clone" "off"
  Option       "Xinerama" "off"
  Screen       "Screen[0]"
  Screen       "fbdev"
EndSection

The only difference from what I gave you before is at the end: the extra 
Device and Screen sections for fbdev, and adding that Screen definition to 
ServerLayout. I got the idea from the xorg.conf.install file that the suse 
install left behind.

This ServerLayout tells xorg to try both fbdev and cirrus, and decide which 
one is best.

The end result is exactly the same as the pv install we've been talking about. 
The resolution is just 800x600, and there is no mouse, despite Xorg.0.log 
saying the evdev driver found one. Oh, well - at least it's an interesting 
technical exercise. ;-)

I'm out of ideas on the mouse, and the pv resolution. If anyone has any ideas, 
feel free to chime in. :-)

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.