0bo0
2010-Jun-03 03:04 UTC
[Xen-users] help launching a Centos 5.5 Xen PV guest on an OpenSuse 11.2 Dom0 host ?
i''ve Opensuse 11.2 Xen Dom0, lsb_release -dr Description: openSUSE 11.2 (x86_64) Release: 11.2 uname -a Linux server 2.6.34-42-xen #1 SMP 2010-06-01 15:17:00 +0200 x86_64 x86_64 x86_64 GNU/Linux rpm -qa | grep -i xen xen-libs-4.0.0_21087_01-38.1.x86_64 kernel-xen-devel-2.6.34-42.1.x86_64 xen-tools-4.0.0_21087_01-38.1.x86_64 kernel-xen-2.6.34-42.1.x86_64 xen-4.0.0_21087_01-38.1.x86_64 I build & run numerous OpenSuse DomUs -- no issues. I need to netinstall a Centos 5.5 PV''d DomU Guest on this host. Using the procedure & config below, it starts to boot -- then hangs, with not much useful debugging info ... at least, not to my eye, where/how I''m looking. If someone could once-over the following, and make any suggestions/hints as to what''s up, it''d be appreciated! Here''s the current step-by-step: lvcreate -n vm_boot -L 160M /dev/VG0 lvcreate -n vm_swap -L 512M /dev/VG0 lvcreate -n vm_root -L 8G /dev/VG0 mkdir -p /home/xen/centos55/xenboot/ setenv DL "http://mirrors.kernel.org/centos/5.5" cd /home/xen/centos55 wget $DL/isos/x86_64/CentOS-5.5-x86_64-netinstall.iso cd ./xenboot/ wget $DL/os/x86_64/images/xen/initrd.img wget $DL/os/x86_64/images/xen/vmlinuz vi /home/xen/centos_install.cfg --------------------------------------------- name = ''centos'' builder = ''linux'' kernel = "/home/xen/centos55/xenboot/vmlinuz" ramdisk = "/home/xen/centos55/xenboot/initrd.img" disk = [ ''phy:/dev/VG0/vm_boot,xvda,w'', ''phy:/dev/VG0/vm_swap,xvdb,w'', ''phy:/dev/VG0/vm_root,xvdc,w'', ''file:/home/xen/centos55/CentOS-5.5-x86_64-netinstall.iso,hdc:cdrom,r'', ] boot = ''d'' vif = [ ''mac=00:16:3E:01:06:00, bridge=brA, vifname=vif.A'' ] vfb = [ ''type=vnc, vncdisplay=106, vnclisten=127.0.0.1'' ] extra = ''textmode=1 xencons=xvc0 elevator=noop lang=en_US.UTF-8 keyboard=us timezone=America/Los_Angeles bootproto=static ip=192.168.1.155 gateway=192.168.1.1 nameserver=192.168.1.1 method=http://mirrors.kernel.org/centos/5.5/os/x86_64'' maxmem = 1024 memory = 1024 vcpus = 4 cpu_cap = 100 cpu_weight = 256 localtime = 0 netif = ''yes'' on_shutdown = ''destroy'' on_reboot = ''restart'' on_crash = ''destroy'' --------------------------------------------- @ xm create -c /home/xen/centos_install.cfg starts ok, but then hangs, --------------------------------------------- Using config file "/home/xen/centos_install.cfg". Started domain centos (id=5) Bootdata ok (command line is textmode=1 xencons=xvc0 elevator=noop lang=en_US.UTF-8 keyboard=us timezone=America/Los_Angeles bootproto=static ip=192.168.1.155 gateway=192.168.1.1 nameserver=192.168.1.1 method=http://mirrors.kernel.org/centos/5.5/os/x86_64) Linux version 2.6.18-194.el5xen (mockbuild@builder10.centos.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Fri Apr 2 15:34:40 EDT 2010 ... XENBUS: Device with no driver: device/vif/1 XENBUS: Device with no driver: device/vif/2 XENBUS: Device with no driver: device/vif/3 XENBUS: Device with no driver: device/console/0 Initalizing network drop monitor service Write protecting the kernel read-only data: 483k ( ... HANGS HERE ...) --------------------------------------------- and, tail -f /var/logl/xen/* --------------------------------------------- ... [2010-06-02 19:46:17 4832] DEBUG (DevController:653) hotplugStatusCallback /local/domain/0/backend/vbd/5/51744/hotplug-status. [2010-06-02 19:46:17 4832] DEBUG (DevController:667) hotplugStatusCallback 1. [2010-06-02 19:46:17 4832] DEBUG (DevController:144) Waiting for 5632. [2010-06-02 19:46:17 4832] DEBUG (DevController:653) hotplugStatusCallback /local/domain/0/backend/vbd/5/5632/hotplug-status. [2010-06-02 19:46:17 4832] DEBUG (DevController:667) hotplugStatusCallback 1. [2010-06-02 19:46:18 4832] DEBUG (DevController:139) Waiting for devices irq. [2010-06-02 19:46:18 4832] DEBUG (DevController:139) Waiting for devices vfb. [2010-06-02 19:46:18 4832] DEBUG (DevController:139) Waiting for devices pci. [2010-06-02 19:46:18 4832] DEBUG (DevController:139) Waiting for devices vusb. [2010-06-02 19:46:18 4832] DEBUG (DevController:139) Waiting for devices vtpm. [2010-06-02 19:46:18 4832] INFO (XendDomain:1207) Domain centos (5) unpaused. ( ... HANGS HERE ...) --------------------------------------------- _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Mark Pryor
2010-Jun-03 05:20 UTC
Re: [Xen-users] help launching a Centos 5.5 Xen PV guest on an OpenSuse 11.2 Dom0 host ?
Hello, You are mixing HVM and PV type installs. I take it for granted that you prefer PV type, so lets remove the HVM hybrid entries. your devices (disk=) are fine, specifying xvdi for PV. You might be surprised to find out that the C5.5 netinstall ISO is equivalent to using the xen aware boot files (vmlinuz, initrd) that you D/L''d separately. So you can ditch any mention of hdc or cdrom. The disk line with xvdc should be changed - xvdc is reserved (IIRC). boot = ''d'' is HVM only (remove) --- On Wed, 6/2/10, 0bo0 <0.bugs.only.0@gmail.com> wrote:> From: 0bo0 <0.bugs.only.0@gmail.com> > Subject: [Xen-users] help launching a Centos 5.5 Xen PV guest on an OpenSuse 11.2 Dom0 host ? > To: "Xen User-List" <Xen-users@lists.xensource.com> > Date: Wednesday, June 2, 2010, 8:04 PM > i''ve Opensuse 11.2 Xen Dom0, > > lsb_release -dr > > Description: openSUSE 11.2 > (x86_64) > > Release: 11.2 > > uname -a > > Linux server 2.6.34-42-xen #1 SMP > 2010-06-01 15:17:00 > +0200 x86_64 > x86_64 x86_64 GNU/Linux > > > rpm -qa | grep -i xen > > xen-libs-4.0.0_21087_01-38.1.x86_64 > > kernel-xen-devel-2.6.34-42.1.x86_64 > > xen-tools-4.0.0_21087_01-38.1.x86_64 > > kernel-xen-2.6.34-42.1.x86_64 > > xen-4.0.0_21087_01-38.1.x86_64 > > I build & run numerous OpenSuse DomUs -- no issues. > > I need to netinstall a Centos 5.5 PV''d DomU Guest on this > host. > > Using the procedure & config below, it starts to boot > -- then hangs, > with not much useful debugging info ... at least, not to my > eye, > where/how I''m looking. > > If someone could once-over the following, and make any > suggestions/hints as to what''s up, it''d be appreciated! > > Here''s the current step-by-step: > > lvcreate -n vm_boot -L 160M /dev/VG0 > lvcreate -n vm_swap -L 512M /dev/VG0 > lvcreate -n vm_root -L 8G /dev/VG0 > > mkdir -p /home/xen/centos55/xenboot/ > > setenv DL "http://mirrors.kernel.org/centos/5.5" > cd /home/xen/centos55 > wget $DL/isos/x86_64/CentOS-5.5-x86_64-netinstall.iso > cd ./xenboot/ > wget $DL/os/x86_64/images/xen/initrd.img > wget $DL/os/x86_64/images/xen/vmlinuz > > vi /home/xen/centos_install.cfg > --------------------------------------------- > name = ''centos'' > builder = ''linux'' > kernel > "/home/xen/centos55/xenboot/vmlinuz" > ramdisk > "/home/xen/centos55/xenboot/initrd.img" > disk = [ > ''phy:/dev/VG0/vm_boot,xvda,w'', > > ''phy:/dev/VG0/vm_swap,xvdb,w'', > > ''phy:/dev/VG0/vm_root,xvdc,w'', > > ''file:/home/xen/centos55/CentOS-5.5-x86_64-netinstall.iso,hdc:cdrom,r'',^--- remove this line> ]#boot = ''d''> vif = [ > ''mac=00:16:3E:01:06:00, bridge=brA, vifname=vif.A'' ] > vfb = [ ''type=vnc, > vncdisplay=106, vnclisten=127.0.0.1'' ] > extra = ''textmode=1 xencons=xvc0 > elevator=noop lang=en_US.UTF-8 > keyboard=us timezone=America/Los_Angeles bootproto=static > ip=192.168.1.155 gateway=192.168.1.1 > nameserver=192.168.1.1 > method=http://mirrors.kernel.org/centos/5.5/os/x86_64''OK as is> > maxmem = 1024 > memory = 1024 > vcpus = 4 > cpu_cap = 100 > cpu_weight = 256 > localtime = 0 > netif = ''yes'' > on_shutdown = ''destroy'' > on_reboot = ''restart'' > on_crash = ''destroy'' > --------------------------------------------- > > @ > > xm create -c /home/xen/centos_install.cfg > > starts ok, but then hangs,try it again with the changes. You will get the askmethod menu by virtue of the boot files. -- Mark _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
0bo0
2010-Jun-03 05:36 UTC
Re: [Xen-users] help launching a Centos 5.5 Xen PV guest on an OpenSuse 11.2 Dom0 host ?
hi, On Wed, Jun 2, 2010 at 10:20 PM, Mark Pryor <tlviewer@yahoo.com> wrote:> You are mixing HVM and PV type installs.surprised at that -- as it''s similar, though admittedly not identical, to the way in which I launch my Opensuse DomUs. more to learn ...> I take it for granted that you prefer PV type,yep.> so lets remove the HVM hybrid entries. > > You might be surprised to find out that the C5.5 netinstall ISO is > equivalent to using the xen aware boot files (vmlinuz, initrd) that you > D/L''d separately.wasn''t sure what the netinstall cont''d -- so DL''d to be sure. good, then.> So you can ditch any mention of hdc or cdrom.a bit confused. how/where do I inform the install where the installer .iso is, and how it''s available? is the presence of kernel= ... ramdisk= ... extra=''... method=http://mirrors.kernel.org/centos/5.5/os/x86_64 ...'' sufficient to get to the installer?> The disk line with xvdc should be changed - xvdc is reserved (IIRC).reserved in/by/for Centos? i''ve been using xvdc for opensuse guests for ages. simply skip xvds, then, and use xvdd instead?> boot = ''d'' is HVM only (remove)hm. again, have used that for PV clients for awhile. need to read up.>> ''file:/home/xen/centos55/CentOS-5.5-x86_64-netinstall.iso,hdc:cdrom,r'', > ^--- remove this linedone> #boot = ''d''done>> @ >> >> xm create -c /home/xen/centos_install.cfg >> >> starts ok, but then hangs, > > try it again with the changes. You will get the askmethod menu by virtue of > the boot files.unfortunately, hangs at the same point ... ... Initalizing network drop monitor service Write protecting the kernel read-only data: 483k ... _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2010-Jun-03 06:18 UTC
Re: [Xen-users] help launching a Centos 5.5 Xen PV guest on an OpenSuse 11.2 Dom0 host ?
On Thu, Jun 3, 2010 at 12:36 PM, 0bo0 <0.bugs.only.0@gmail.com> wrote:> unfortunately, hangs at the same point ... > > ... > Initalizing network drop monitor service > Write protecting the kernel read-only data: 483k > ...Let''s try something simpler. You specify vfb = [ ''type=vnc, vncdisplay=106, vnclisten=127.0.0.1'' ] It creates a vnc display for domU''s GUI. By "hang", do you mean the output of "xm create -c" didn''t continue, or are you looking at the GUI? Cause by default the graphics console will be used as default output, so you must use VNC to access it. You could always remove the vfb line, and have xen text console (the one you access with "-c") becomes the default. If it still doesn''t work, try older kernel/initrd version (5.0, or 5.2 perhaps) for installation. I had a problem earlier installing 5.5 on newer kernel/xen version, and when I use 5.0 kernel and initrd for install it just works. Didn''t have the time to investigate yet, so I''m not really sure what went wrong then. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
0bo0
2010-Jun-03 06:30 UTC
Re: [Xen-users] help launching a Centos 5.5 Xen PV guest on an OpenSuse 11.2 Dom0 host ?
hi, On Wed, Jun 2, 2010 at 11:18 PM, Fajar A. Nugraha <fajar@fajar.net> wrote:> Let''s try something simpler. You specify > > vfb = [ ''type=vnc, vncdisplay=106, vnclisten=127.0.0.1'' ] > > It creates a vnc display for domU''s GUI. > By "hang", do you mean the output of "xm create -c" didn''t continue,that''s correct, it dos not continue ...> or are you looking at the GUI? Cause by default the graphics console > will be used as default output, so you must use VNC to access it.clear. i''d tried accessing the VNC console, but no connection was apparent/available> You could always remove the vfb line, and have xen text console (the > one you access with "-c") becomes the default.i''d thought that, ''textmode=1 xencons=xvc0'' switches the default to textmode ... or at least that''s the way it workd for my opensuse guests. anyway, by removing the vfb line, i do (!!) get to: ------------------------------------------------------ Welcome to CentOS +---------+ Networking Device +----------+ | | | You have multiple network devices on | | this system. Which would you like to | | install through? | | | | eth0 - Xen Virtual Ethernet | | eth1 - Xen Virtual Ethernet | | eth2 - Xen Virtual Ethernet | | eth3 - Xen Virtual Ethernet | | | | +----+ +----------+ +------+ | | | OK | | Identify | | Back | | | +----+ +----------+ +------+ | | | | | +----------------------------------------+ <Tab>/<Alt-Tab> between elements | <Space> selects | <F12> next screen ------------------------------------------------------ so that''s progress! atm, though, eth0 is supposed to be ''live'', but it -- and all the other interfaces -- are currently reporting +--------+ Network Error +---------+ | | | There was an error configuring | | your network interface. | i''ll worry about VNC access later ... for now, next step is the Network. thanks. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2010-Jun-03 12:14 UTC
Re: [Xen-users] help launching a Centos 5.5 Xen PV guest on an OpenSuse 11.2 Dom0 host ?
On Thu, Jun 3, 2010 at 1:30 PM, 0bo0 <0.bugs.only.0@gmail.com> wrote:> i''d thought that, > > ''textmode=1 xencons=xvc0'' > > switches the default to textmode ... or at least that''s the way it > workd for my opensuse guests.Nope. You''d need "console=xvc0" to force the kernel to use xen console as the default output.> atm, though, eth0 is supposed to be ''live'', but it -- and all the > other interfaces -- are currently reporting > > +--------+ Network Error +---------+ > | | > | There was an error configuring | > | your network interface. |Start by: - removing all network setup lines from your "extra" settings. You can easily set it up later. - verify that the network is correct. You used vif = [ ''mac=00:16:3E:01:06:00, bridge=brA, vifname=vif.A'' ] I wouldn''t use a dot (.) in interface name, since it''s usually used vor vlans. Just use something like "vifA-eth0". Also make sure the bridge you chose is working. In Centos, it''s much easier to start with the builtin virbr0, which is NAT network with DHCP. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
0bo0
2010-Jun-03 15:07 UTC
Re: [Xen-users] help launching a Centos 5.5 Xen PV guest on an OpenSuse 11.2 Dom0 host ?
On Thu, Jun 3, 2010 at 5:14 AM, Fajar A. Nugraha <fajar@fajar.net> wrote:> Start by: > - removing all network setup lines from your "extra" settings. You can > easily set it up later.that''s where the problem lies. using in my xen cfg, extra = ''textmode=0 xencons=xvc0 elevator=noop lang=en_US.UTF-8 keyboard=us timezone=America/Los_Angeles ip=192.168.1.106 netmask=255.255.255.0 gateway=192.168.1.1 dns=192.168.1.1 noipv6'' i get to VNC console, and can select device = "eth0", method "http:", and enter host/dir distro info. the installer then starts downloading ... removing ''bootproto=static'' seems to do the trick; specifying "ip=x.b.c.d", rhater than "ip=dhcp" is sufficient. when i add any of device=eth0 url=http://mirrors.kernel.org/centos/5.5/os/x86_64/ method=http://mirrors.kernel.org/centos/5.5/os/x86_64 however, they''re simply ignored; the installer just ignores them, re-asking me for those inputs @ console. apparently, those are not the correct variables/formats. what are the correct entries for device, method, & source url -- NOT using a kickstart file -- on the xen config''s "extra=" line for Centos? thanks. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
0bo0
2010-Jun-03 19:18 UTC
Re: [Xen-users] help launching a Centos 5.5 Xen PV guest on an OpenSuse 11.2 Dom0 host ?
the missing piece was, apparently, extra = ''... ksdevice=eth0 ...'' rather than, extra = ''... device=eth0 ...'' even to no ks is used. i''m up & running in the Centos installer now. thanks for the help! _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users