WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: AW: [Xen-users] DomU freezes during boot

To: Andrew Kilham <andrew@xxxxxxxxxxxxxx>
Subject: Re: AW: [Xen-users] DomU freezes during boot
From: Boris Derzhavets <bderzhavets@xxxxxxxxx>
Date: Tue, 31 Mar 2009 22:36:30 -0700 (PDT)
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 31 Mar 2009 22:37:31 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1238564190; bh=CYyAbE/VtB4BJXzqVzmEt8zf+j0ErPOVjrNwLQf88xY=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=ImDAP84HjmeMHCrIOBZU5DVcCPyN96Jj5vDZfVgZN48JFT0IXZ2loq2yupRP5IK/wP/i6+TvfyQdE/Z9AgG7DK1mHr07QK5EOxm5PpQgk7dJwM2bGcFAoT+SuXtOGu25r10bykd4qzCjjFzpmEUDlutuwXiDVsTFkBFjIzhq72A=
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=DEHY2UEYlUs1+d3o550XVpsYkYwa27J2llvkwIbII8fSrtIPOYm1dfLMD3j/Fd6dUM38bDDwYJHGdDNsfzI/fOzERLla4TMxmzYJwbQYKVNABvzfaJcw6zpA7cu/9GpaNasOn7I1epl6azvJ4uKHi05cSTQA2VH8OqJU1rSbSro=;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <49D2E53B.8050002@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Reply-to: bderzhavets@xxxxxxxxx
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Andrew ,

 Please , configure IP of your Dom0 and post "ifconfig" report.

1. Goto Services  start "nfsd" and make sure your "libvirtd" daemon"
    is up and runnning.
2. Add entry to /etc/exports:-
/mnt/tmp
Goto Services and restart "nfsd".
3. Try mount and umount IP:/mnt/tmp from remote host to
    make sure you've done a remote share.
4. # mount -o loop,ro /etc/xen/isos/centos.iso  /mnt/tmp
and run
# df -h
make sure it's mounted
5. During virt-install run you must submit exactly IP address of your box
   and  "/mnt/tmp" ( i mean directory, which you did NFS share, and nothing
   else).  At this time issue "ifconfig" in other terminal session to doublecheck
   your IP is in place). Please, post this snaphot as well.

You might experience network problem ussually connected with presence of WI-FI
adapter catching up IP on the fly and making up mess ( my experience)

*****************************
SECOND WAY TO INSTALL.
*****************************

If you see that your IP is good all the time and NFS fails to work.

1. Goto Services and start "httpd" daemon
2. mkdir -p /var/www/html/centos
3. mount -o loop centos.iso   /var/www/html/centos
Launch browser to http://IP/centos and make sure you see a DVD ISO as web page
4. Then try :-
--location http://IP/centos
and select HTTP setup for virt-install
5. Submit your IP and URL -   /centos
At the same time verify ifconfig in other terminal session , verify that browser may launched to http://IP/centos.

You may take a look at :-

  http://lxer.com/module/newswire/view/110642/index.html

Actually, there is no any difference between Xen 3.2 Ubuntu Dom0 and
Xen 3.3 CentOS 5.2 Dom0 in regards of procedure desribed above.

***********************
Worst case scenario:-
***********************

During Gitco's upgrade something went wrong and "libvirt" gets broken
I had some trouble doing Gitco's Hypervisor Upgrades. It works , but
might require some background to complete things properly

You may try reinstall CentOS 5.2 with native Xen 3.1.X. Make sure
"libvirt ","dnsmask" services have been picked up during install.
Then you can run in Xen environment :-
# yum update
# yum upgrade
to install the most recent RH patches (500 MB download).

Then try native virt-install or virt-manager. They should work both.

Boris.

-- On Tue, 3/31/09, Andrew Kilham <andrew@xxxxxxxxxxxxxx> wrote:
From: Andrew Kilham <andrew@xxxxxxxxxxxxxx>
Subject: Re: AW: [Xen-users] DomU freezes during boot
To: bderzhavets@xxxxxxxxx
Cc: "Fajar A. Nugraha" <fajar@xxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Date: Tuesday, March 31, 2009, 11:53 PM

Hi Boris,

I apologise for ignoring your previous comments!

I attempted your instructions and ran virt-install like this:

virt-install -n test5  -r 1024 -p -f /vm/images/CentOS5-2.img -l nfs:localhost:/test1 --nographics


I received no errors or anything until the CentOS installer was running (right after I configured my IP address etc), I got this error:

+-----------+ Error +------------+
                       |                                |
                       | That directory could not be    |
                       | mounted from the server.       |
                       |                                |
                       |            +----+              |
                       |            | OK |              |
                       |            +----+              |
                       |                                |
                       |                                |
                       +--------------------------------+

I hit OK and it just confirms my details (I tried /mnt/tmp, same problem, and I also tried localhost, same problem):
 +----------------------+ NFS Setup +----------------------+
          |                                                         |
          | Please enter the following information:                 |
          |                                                         |
          |     o the name or IP number of your NFS server          |
          |     o the directory on that server containing           |
          |       CentOS for your architecture                      |
          |                                                         |
          |       NFS server name:  10.0.0.81_______________        |
          |       CentOS directory: /test1__________________        |
          |                                                         |
          |          +----+                     +------+            |
          |          | OK |                     | Back |            |
          |          +----+                     +------+            |
          |                                                         |
          |                                                         |
          +---------------------------------------------------------+

Cheers,

Andrew


Boris Derzhavets wrote:
Andrew,

  As i have noticed two times your mistake when creating PV DomU via virt-install is well known:-

************************************************************************************
--location <-l>  should point to NFS shared directory with loop mounted ISO image of
CentOS 5. 2 , NOT to path to ISO image itself.
************************************************************************************

That is what Red Hat Inc. and Sun Inc. taught customers to do for several years already.

I've also twice wrote to you how to do that. You can also view it third time:-

Insert your CentOS 5 DVD in the drive. Run "df -h" to find out what mount point is.  Suppose, it is /dev/hde

# dd if=/dev/hde of=/etc/xen/disks/CentOS5.iso
# dd if=/dev/zero of=/etc/xen/images/CentOS5.img  bs=1024k count=12000
# mkdir  -p /mnt/tmp
# mount -o loop,ro   /etc/xen/disks/CentOS5.iso    /mnt/tmp

Edit /etc/exports and add the line:-
/mnt/tmp
Restart Service "nfsd"

In other words make /mnt/tmp NFS shared directory at your local machine.
Run :-
# ifconfig
to find out your IP address (IP-Dom0) and run

# virt-install -n CentOS5PV -r 1024  -p  -f /etc/xen/images/CentOS5.img \
      -l   nfs:IP-Dom0:/mnt/tmp

However with Xen Hypervisor 3.3 you might have reissue
# vncviewer localhost:0
several times during installation procedure, to get reconnected
Be sure it's there on display 0 ( port 5900 ) .

Virt-install option <--nographics>  will allow you to get text mode install.

When graphical install gets done:-
# xm start CentOS5PV
# vncviewer localhost:0

When text mode install gets done :-
# xm start -c CentOS5PV

Personally, i have never suggested  you to run rinse & xen-tools on system
with virt-install ready to go.
The other person did. Keep track of your threads

Regards.
B.

--- On Tue, 3/31/09, Andrew Kilham <andrew@xxxxxxxxxxxxxx> wrote:
From: Andrew Kilham <andrew@xxxxxxxxxxxxxx>
Subject: Re: AW: [Xen-users] DomU freezes during boot
To: bderzhavets@xxxxxxxxx
Cc: "Fajar A. Nugraha" <fajar@xxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Date: Tuesday, March 31, 2009, 7:34 AM

Hmm, someone told me the other day that I should be using xen-tools and rinse, and NOT virt-install (see http://lists.xensource.com/archives/html/xen-users/2009-03/msg00742.html).

So which one should I use and why? And if I should be using virt-install, can someone please take a look at my initial problem that I still haven't fixed in the above thread? :p

Cheers,

Andrew


Boris Derzhavets wrote:
Sure,  getting this rinse bug fixed you'll get login to DomU.
I just cannot understand why old fashioned style of PV DomUs
setup ( with all kind of debootstrap's fun) seems so attractive on the system having virt-install ready to go.
Please, advise. Where i am wrong ?

Boris.

--- On Tue, 3/31/09, Fajar A. Nugraha <fajar@xxxxxxxxx> wrote:
From: Fajar A. Nugraha <fajar@xxxxxxxxx>
Subject: Re: AW: [Xen-users] DomU freezes during boot
To: "Andrew Kilham" <andrew@xxxxxxxxxxxxxx>
Cc: "Carsten Schiers" <carsten@xxxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Date: Tuesday, March 31, 2009, 3:00 AM

On Mon, Mar 30, 2009 at 8:00 PM, Andrew Kilham
<andrew@xxxxxxxxxxxxxx>
wrote:
> Here is my complete /etc/inittab file on domU:

> # Run gettys in standard runlevels
> 1:2345:respawn:/sbin/mingetty tty1

> Nothing like the line you said. Should I add it in exactly as you typed
it?

Yup. Put it before the line "1:2345:respawn:" ...
I think what happens is your domU boots succesfully, but it does not
display any login prompt on console (which is xvc0).

Oh and you should also add "xvc0" to /etc/securetty.

Regards,

Fajar.

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



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



No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.0.238 / Virus Database: 270.11.33/2031 - Release Date: 03/30/09 17:56:00




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



No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.0.238 / Virus Database: 270.11.35/2033 - Release Date: 03/31/09 13:05:00

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

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