Xen VM rescue mode


 
Thread Tools Search this Thread
Operating Systems Linux Xen VM rescue mode
# 1  
Old 10-02-2008
Xen VM rescue mode

Hi all,

I am running xen virtual machine on centos 5 and xen gust o.s is centos.

I cannot boot my xen vm machine it saying cannot find /bin/sh to execute.

I want to go to rescue mode of my xen vm machine.

I know how to do on actual physical machine but how i can enter in rescue mode of xen virtual machine.

Please can someone help me?

thanks
Lalit
# 2  
Old 10-02-2008
Re: Xen VM rescue mode

You can go into single user mode by passing 1 or single on the guest kernel command line.

Try adding the following config option to your guest config file

extra="single"

OR

extra="1"

I would recommend the xen-users list for the type of questions
(Xen: Xen-users Info Page)
Also you could try searching at xen.markmail.org.

Cheers,
Todd
# 3  
Old 10-06-2008
Hi Deshantm,

I did try to boot into single user mode but it doesn't boot. It giving me error saying /bin/sh cannot excute. So i might need to boot into rescue mode so i can fix /bin/sh.

Thanks for responding my thread.

Please help.

Regards,
Lalit
# 4  
Old 10-06-2008
Re: Xen VM rescue mode

Another alternative would be to mount the root partition.

Use kpartx -av on the disk image, and then you may then need to use lvscan (if the centos guest is install in an LVM partiton), otherwise you can mount the /dev/mapper/loop* partition directly.
# 5  
Old 10-06-2008
Hi deshantm,

Your first post was really helpful. I got it.

Thanks for the help.
so much.


Regards,
Lalit
# 6  
Old 03-16-2009
Hi

This is how I do it: link

(I hope its ok to post such a link)

cheers
# 7  
Old 03-16-2009
Quote:
Originally Posted by madmadmod
Hi
(I hope its ok to post such a link)
cheers
Well since the previous one on this thread passed, I hardly see a reason to refuse yours (nice.. keep up the good work!).

All the best
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How to fix and manage data in rescue mode?

Hello, I am running ubuntu 14.04 My server has problems again. I need to manage system files in rescue mode, backup some files, edit /etc/crontab and rc.local files etc. root@rescue:~# cat /proc/mdstat Personalities : md2 : active raid1 sda2 sdb2 4193216 blocks md3 :... (4 Replies)
Discussion started by: baris35
4 Replies

2. HP-UX

From a C++ application how to find if a hpux host is in standard mode or trusted mode

is there a way for my C++ application to find out which mode the hpux OS is running in? standard mode or trusted mode. (3 Replies)
Discussion started by: einsteinBrain
3 Replies

3. UNIX for Dummies Questions & Answers

How to get cpanel backup data in rescue mode?

How to get cpanel backup data in rescue mode? Server OS 6.3 minimal with cPanel /dev/sdb1 is main partition root@rescue ~ # fdisk -l Anyone can help Thank you (0 Replies)
Discussion started by: jaydul
0 Replies

4. Red Hat

You' dont have any Linux partition- Rescue Mode

I accidently deleted fstab file from one of the compute nodes of the cluster (RHEL 5.3). Due to this no filesystem/directory is mounted on the system during bootup. I started system in rescue mode but it says You don't have any linux partitions. Press return to get a shell. The system will reboot... (2 Replies)
Discussion started by: ahsanpmd
2 Replies

5. Solaris

DNS service is in maintenance mode. How to bring it back to online mode?

:confused: when i tried to look the status of DNS-client, it is in maintenance mode..... Please tell me how to bring it back to online mode...PLEASE TELL ME STEP BY STEP.... PLEASE... :wall: (2 Replies)
Discussion started by: vamshigvk475
2 Replies

6. UNIX for Advanced & Expert Users

What is the difference between single line mode and multiline mode in Regular expressions?

Hi All, Can please let me know what is the difference between the single line mode and multi line mode in regular expresions? Thanks, Chidhambaram B (3 Replies)
Discussion started by: chidhu.anu
3 Replies

7. Red Hat

I cannot find ext2online or resize2fs in RHEL 4 rescue mode

Hi, I'm trying to resize an ext3 FS (filesystem) under an LVM. I have booted the OS (RHEL 4) in rescue mode using the CD media and I'm able to use lvm commands. Now, I'm trying to shrink the filesystem before actually shrinking the logical volume but I cannot find ext2onlone or resize2fs... (1 Reply)
Discussion started by: verdepollo
1 Replies

8. UNIX and Linux Applications

Xen VM rescue mode

Hi all, I am running xen virtual machine on centos 5 and xen gust o.s is centos. I cannot boot my xen vm machine it saying cannot find /bin/sh to execute. I want to go to rescue mode of my xen vm machine. I know how to do on actual physical machine but how i can enter in rescue mode of... (1 Reply)
Discussion started by: email-lalit
1 Replies

9. Shell Programming and Scripting

Partitioning script for rescue mode (disk size calculation)

Hello! I need to write partitioning script wich would work in rescue mode. It will prepare partitions and unpack linux on it. However I need to calculate whole size of the disk and create: /dev/sda1 --> One big partition (minus (2*size of memory) for swap) /dev/sda2 --> Swap partition... (1 Reply)
Discussion started by: pug123
1 Replies
Login or Register to Ask a Question