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

Re: [Xen-users] how to boot domU XEN guest in safe mode?



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


 


Rackspace

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