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: [Xen-users] how to boot domU XEN guest in safe mode?

To: Rudi Ahlers <rudiahlers@xxxxxxxxx>
Subject: Re: [Xen-users] how to boot domU XEN guest in safe mode?
From: "Fajar A. Nugraha" <fajar@xxxxxxxxx>
Date: Sun, 5 Apr 2009 22:21:10 +0700
Cc: xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Sun, 05 Apr 2009 08:21:49 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <695200da0904050723m35b3d176l1a8414823be16b70@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>
References: <695200da0904050723m35b3d176l1a8414823be16b70@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Sun, Apr 5, 2009 at 9:23 PM, Rudi Ahlers <rudiahlers@xxxxxxxxx> wrote:
> Hi all,
>
> How can I boot a XEN domU guest into safe mode?

When using pygrub, start the guest with "xm create -c" or "xm start
-c", and you can edit the grub menu to add "single".

If the domU is using kernel and initrd from dom0, you should be able
to add "extra=single" on domU config file.

> /sbin/init: error while loading shared libraries: libselinux.so.1:
> cannot open shared object file: No such file or directory
> Kernel panic - not syncing: Attempted to kill init!

As Stefan said, it might be easier to check for the missing file by
fsck and mounting domU's filesystem from dom0. Be sure to do this ONLY
while domU is stopped though. If it was indeed missing, then most
likely you're experiencing a serious problem and the missing file is
just the tip of the iceberg. I highly suggest you call a Linux expert
to help fix the problem.

If you insist on restoring the file manually, you need to know :
- which packages were damaged, what version (something like "rpm -V"
and "rpm -qa" on chroot or single mode)
- get the original package.
- extract it and copy the missing package
If you don't know how to perform the above steps, it would be easier
to simply create a new domU and copy data from the old one.

Regards,

Fajar

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