How to boot a para virtualised guest OS [PV-GuestOS] into rescue mode?

Steps to boot a PV-guestOS in to rescue mode

A. Create an installation tree and get it available through http or nfs for the guest OS. You can also your existing installation tree if available in your enviroment. It will look like this.

drwxr-xr-x 2 user user 532480 Mar 21 13:18 CentOS
-rw-r--r-- 8 root root 212 Nov 20 2007 EULA
-rw-r--r-- 8 root root 18009 Nov 20 2007 GPL
drwxr-xr-x 4 root root 2048 Mar 21 13:18 images
drwxr-xr-x 2 root root 2048 Mar 21 13:14 isolinux
drwxr-xr-x 2 root root 14336 Mar 17 23:19 NOTES
-rw-r--r-- 2 root root 655 Mar 9 03:12 RELEASE-NOTES-cs
-rw-r--r-- 2 root root 1401 Mar 9 03:12 RELEASE-NOTES-cs.html
-rw-r--r-- 2 root root 839 Mar 9 03:12 RELEASE-NOTES-de
-rw-r--r-- 2 root root 1571 Mar 9 03:12 RELEASE-NOTES-de.html
-rw-r--r-- 2 root root 694 Mar 9 03:12 RELEASE-NOTES-en
-rw-r--r-- 2 root root 1367 Mar 9 03:12 RELEASE-NOTES-en.html
-rw-r--r-- 2 root root 694 Mar 9 03:12 RELEASE-NOTES-en_US
-rw-r--r-- 2 root root 1367 Mar 9 03:12 RELEASE-NOTES-en_US.html
-rw-r--r-- 2 root root 788 Mar 9 03:12 RELEASE-NOTES-es
-rw-r--r-- 2 root root 1619 Mar 9 03:12 RELEASE-NOTES-es.html
-rw-r--r-- 2 root root 852 Mar 9 03:12 RELEASE-NOTES-fr
-rw-r--r-- 2 root root 1641 Mar 9 03:12 RELEASE-NOTES-fr.html
-rw-r--r-- 2 root root 766 Mar 9 03:12 RELEASE-NOTES-ja
-rw-r--r-- 2 root root 1565 Mar 9 03:12 RELEASE-NOTES-ja.html
-rw-r--r-- 2 root root 706 Mar 9 03:12 RELEASE-NOTES-nl
-rw-r--r-- 2 root root 1433 Mar 9 03:12 RELEASE-NOTES-nl.html
-rw-r--r-- 2 root root 752 Mar 9 03:12 RELEASE-NOTES-pt_BR
-rw-r--r-- 2 root root 1480 Mar 9 03:12 RELEASE-NOTES-pt_BR.html
-rw-r--r-- 2 root root 801 Mar 9 03:12 RELEASE-NOTES-ro
-rw-r--r-- 2 root root 1473 Mar 9 03:12 RELEASE-NOTES-ro.html
drwxr-xr-x 2 root root 2048 Mar 21 13:08 repodata
-rw-r--r-- 8 504 508 1512 Jun 14 2008 RPM-GPG-KEY-beta
-rw-r--r-- 2 504 508 1504 Jun 14 2008 RPM-GPG-KEY-CentOS-5
-r--r--r-- 1 root root 7048 Mar 21 13:18 TRANS.TBL

------------------------------------------------------------------------------

B. On Dom-0, copy /images/xen/* to /tmp from your installation tree.

C. Shutdown guest OS.
D. Boot your guest os now with following options.

    [root@myxen01]# xm list

    Name ID Mem(MiB) VCPUs State Time(s)
    Domain-0 0 997 2 r----- 2197.0
    virtual00 1 511 1 -b---- 917.8

    [root@myxen01]# xm shutdown virtual00
    [root@myxen01]# xm create virtual00 kernel="/tmp/vmlinuz" ramdisk=/tmp/initrd.img bootloader="" extra=rescue Using config file "/etc/xen/virtual00".
    Started domain virtual00
    [root@myxen01#

E. You can specify -c switch along with create to launch console Or execute following command to launch a console.
[root@myxen01# xm console virtual00
F. Follow the screen, choose language and installation source from the prompt, it will boot the system into rescue mode.

hope this article will help ...

Back to top