[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 Mon December 5 2011, 6:25:29 PM, Flavio wrote:
> > If
> > that doesn't work, I can't help you with this method, but I'll keep
> > working on the hvm to pv conversion approach.
> 
> Thanks a lot, I appreciate your effort a lot.

Ok -  I got curious about your pv install method, and tried it myself. It 
actually did work, but you may not be aware of it.

First, given your config, it looks like all you did was an 'xl create ...' to 
start your install. You (again) didn't use something like virt-install / virt-
manager to control your install. If so, you are only using xen tools, and 
nothing specific to Gentoo, and this approach would work on any distro's dom0.

Anyway, that's what I did, with this config patterned after the one you 
posted, with local differences, and hvm directives removed (and by the way, 
'vcpus' was misspelled):

name="opensuse11"
memory=768
disk = [ 'phy:/dev/disk/by-path/ip-192.168.1.101:3260-iscsi-
iqn.2001-04.com.Dell4550-iqn.2009-09.net.bellsouth.sda:041b7d3f-b008-4367-
b1f2-b4799d15e4cd-lun-3,xvda,w' ]
vif = [ 'mac=00:16:3e:00:00:21, bridge=xenbr0' ]
vfb = [ "type=vnc,vncunused=1,vnclisten=0.0.0.0,keymap=en-us" ]
#bootloader = "/usr/bin/pygrub"
kernel = "/home/jimb/Cmpq/boot/i386/vmlinuz-xenpae"
ramdisk = "/home/jimb/Cmpq/boot/i386/initrd-xenpae"
#kernel = "/boot/vmlinuz-3.1.0-7.fc16.x86_64"
#ramdisk = "/boot/initramfs-3.1.0-7.fc16.x86_64.img"
#kernel = "/boot/vmlinuz-2.6.41.1-1.fc15.x86_64"
#ramdisk = "/boot/initramfs-2.6.41.1-1.fc15.x86_64.img"
#kernel = "/boot/vmlinuz-2.6.32.39-175.xendom0.fc13.x86_64"
#ramdisk = "/boot/initramfs-2.6.32.39-175.xendom0.fc13.x86_64.img"
#kernel = "/home/jimb/Cmpq/boot/i386/vmlinuz-xenpae"
#ramdisk = "/home/jimb/Cmpq/boot/i386/initrd-xenpae"
vcpus=1
on_reboot = 'restart'
on_crash = 'destroy'
#extra = 'xencons=tty'
#extra = 'noapic ssh=1 sshpassword=lolrofl addswap=/dev/xvda2
#install='nfs://192.168.1.100:/home/jimb/Cmpq/'

You'll notice, I tried a few fedora pvops, xen enabled kernels, none of which 
worked. (Curious - I'm assuming the format of an initramfs, and how the kernel 
executes the scripts in it, is different from an initrd.) I mounted the DVD in 
the Cmpq sub-directory in my home dir, which is also a sub-dir that is nfs 
exported, and a sub-dir in a cifs export. The sub-dir /boot/i386 in the dvd 
contains a xen enabled kernel & initrd. (This is what I mean about details of 
the install dvd that only that distro's own install routines, like Yast, would 
know, and a generic install routine, like virt-manager, from some other distro 
might not.) That kernel & initrd started the install, and then I had to pick 
one of the Network install methods, after clicking on 'Back' to get to a menu. 
(Yes - it is a *pain* not having the mouse work. Fortunately, each option on 
each screen in Yast has an underlined letter. That letter, held down with the 
Alt key, selects that option.) I tried un-commenting the install= line above, 
and it did not save me any time. I still had to enter info into the Network 
install screens every time.

I had trouble using the nfs and smb (cifs) network install methods. Curiously, 
the installer, running in a domu, not the dom0, could use the Network install 
info I entered to go from the simple beginning menus to the full Yast menu, 
but once in Yast, it didn't know how to access the mount by nfs or smb anymore 
(and no indication in my network monitoring tools that it was even trying). 
Fortunately, if you pick the smb method of Network install, when you get the 
error message in Yast, when it tried to initialize the install repo, it allows 
you to switch over to an http install. I just gave the url for 
download.opensuse.org. You, of course, wouldn't have this problem, since you 
were using an http install from the beginning.

Anyway, two hours later, the vnc window disappeared. (This is about the point 
in the install where you started having problems.) I did an 'xm list', and 
found out the domu had restarted. A simple 'xm vncviewer ...' brought up the 
last part of the install - the Automatic Configuration step. (Actually, it 
asked me to inset a dvd, I selected 'Back', then 'Start Install', then 
(something like) Boot from the Installed Harddisk, to get to the Automatic 
Configuration step.)

After the install finished, I changed the config file - un-comment the 
bootloader= line, and comment out the kernel= & ramdisk= lines. I then did an 
'xm create ... -c' to be sure that grub was setup right, and then exited the 
domu's console, and did an 'xm vncviewer ...', and I am now staring at the KDE 
desktop. This is the menu.lst it installed. Notice it has kernel-desktop, and 
kernel-xen installed, with the kernel-xen as the default menu item, so the 'xm 
create' with the '-c' option was not necessary. I could have gone straight 
into a vncviewer. (I don't think menu.lst will be setup until you are past the 
Automatic Configuration step, so I didn't switch comments on bootloader and 
kernel / ramdisk till after then.)

# Modified by YaST2. Last modification on Tue Dec  6 19:48:21 EST 2011
# THIS FILE WILL BE PARTIALLY OVERWRITTEN by perl-Bootloader
# Configure custom boot parameters for updated kernels in
# /etc/sysconfig/bootloader

default 2
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.1-1.2 (default)
    root (hd0,1)
    kernel /boot/vmlinuz-2.6.37.1-1.2-default root=/dev/xvda2 
resume=/dev/xvda1 splash=silent quiet showopts
    initrd /boot/initrd-2.6.37.1-1.2-default

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

###Don't change this comment - YaST2 identifier: Original name: linux###
title Xen -- openSUSE 11.4 - 2.6.37.1-1.2
    root (hd0,1)
    kernel /boot/vmlinuz-2.6.37.1-1.2-xen root=/dev/xvda2 resume=/dev/xvda1 
splash=silent quiet showopts
    initrd /boot/initrd-2.6.37.1-1.2-xen

Unfortunately, the desktop I'm looking at is 800x600, so we are back to one of 
the original problems. I'll try putting 'vga=0x31a' in menu.lst, or Fajar's 
suggestions about setting resolution in a pv domu, in the next day or two, and 
tell you what I come up with.

_______________________________________________
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®.