Technical article 127407

How can I create an Emergency BOOT/ROOT recovery CD images for my OpenServer 5.0.7V Virtual Machine and how can I then boot my Virtual Machine using these images under VMware ESX 3.5?

OpenServer 5.0.7

Written · Last revised

Problem

How can I create an Emergency BOOT/ROOT recovery CD images for my OpenServer 5.0.7V Virtual Machine and how can I then boot my Virtual Machine using these images?

Solution

This TA is divided into two sections:

1) Creation of the OSR507V Emergency BOOT/ROOT Recovery CD image

and

2) Booting from the OSR507V Emergency BOOT/ROOT Recovery CD

1) Creation of the OSR507V Emergency BOOT/ROOT Recovery CD image: ----------------------------------------------------------------- Please follow the below steps as root:

1- cd into /usr/lib/mkdev directory
# cd /usr/lib/mkdev

2- Edit the fd file and make the following changes:

In the write_cd() function, comment out the cdrecord line as follows:

###cdrecord -v dev=$cdnum,0,0 $ISO_OUT
Note: OSR5.0.7V does not support "cdrecord" command
In the cleanup() function, comment the "rm" line
### rm -rf $WORK
Save the file.
3- Run "mkdev fd"
# mkdev fd
choose option "2"
2. Emergency Boot and Root floppy filesystems

Next screen, choose the hidden option "5" (This option is not displayed on the screen)

5. bootable CD (requires mkisofs, cdrecord) (2.88M floppy image)

Next screen, choose option "3"

3. Single floppy Boot and Root filesystem (2.88M only)

Next screen where it asks you to place extra files on the root filesystem, answer with "n"

Note: "y" answer for experts who need to add extra files.

Next screen, choose option "1"
1. System specific boot

Then hit RETURN on the next 4 screens.

You will then be put back to the main "Emergency Boot "and Root Filesystems" menu screen. Exit with "q".

4- cd into /etc/bootroot.d directory
# cd /etc/bootroot.d

You will see a file called "bootcd.iso". Ftp the file /etc/bootroot.d/bootcd.iso from your OpenServer 5.0.7V VM to the Windows PC you are using to run the VMware VI/VC client.

5- Remove the /etc/bootroot.d directory
# rm -rf /etc/bootroot.d

6- Shutdown OSr507V and power off the OSR507V Virtual Machine.

2) Booting from the OSR507V Emergency BOOT/ROOT Recovery CD:
------------------------------------------------------------

Please note that the default Power-on Boot Delay is quite short and this may make it difficult to access the VMware BIOS when booting your Virtual Machine. We recommend therefore that you change the default to 10 seconds using the VI/VC client. To edit the OSR507VM VM settings:

Under "Option" tab --> Boot Options, add 10000 millsec.

There are a number of ways to boot from the bootcd.iso including:

1) Booting from a physical drive that is attached to your ESX 3.5 server.

2) Booting from a physical drive that is attached to the Windows PC.

3) Booting from an iso image that is loaded on the ESX(i) server.

4) Booting from an iso image that is loaded on your Windows PC.

1- If your ESX 3.5 Server has a physical attached CD/DVD-ROM drive and you want to boot the OSR507V emergency BOOT/ROOT CD from it:

Note: This is not true in case of ESXi 3.5, as
      VMware ESXi does not support Guest OS VM access
      to its local attached CD/DVD-ROM drive.

- Burn the "bootcd.iso" image on to a CD-R/CD-RW using any type of burning software like nero.

- Within the VI/VC client, edit the OSR507V VM Settings

- Mark the "CD/DVD Drive 1"

- Under "Device Type", choose "Host Device - /dev/hda"

Note: /dev/hda could be different depending on the ESX 3.5 server hardware

Check "Connect at Power on" at the "Device Status".

Make sure that the "Virtual Device Node" should have "IDE (0:0) CD/DVD Drive 1"

- Then click "OK" to save the settings.

- Place the OSR507V Emergency BOOT/ROOT Recovery CD on to the ESX CD/DVD-ROM drive and power on the OSR507V VM.

OSr507V VM will now boot from the OSE507V Emergency BOOT/ROOT Recovery CD" image.

Once booted:
# fsck /dev/hd0root (in case it needs preparing)
# mount /dev/hd0root /mnt
# mount /dev/boot /mnt/stand
# chroot /mnt /bin/sh
Carry out the maintenance work
# cd /
# exit
# umount /mnt/stand
# umount /mnt
# haltsys

2- In case of your ESX/ESXi 3.5 does not have an physical attached CD/DVD-ROM drives.

2.1 - You want to access the OSR507V Emergency BOOT/ROOT
      Recovery CD images (bootcd.iso) that resides on
      ESX/ESXi 3.5 server

- Within VI/VC client edit the OSR507V VM Settings

- Mark the "CD/DVD Drive 1"
Under "Device Type", choose "Datastore ISO file"
Then click on the "Browse" button.

A "Browse Datastores" pop up windows will appear.

Browse under vmimages --> tools-isoimages (Or
wherever  OSR507V Emergency BOOT/ROOT iso image
resides) and choose the "bootcd" ISO image that
you want to access.

Note: The bootcd.iso needs to be beforehand placed on the ESX/ESXi 3.5 server.

Check "Connect at Power on" at the "Device Status"

Make sure that the "Virtual Device Node" should have "IDE (0:0) CD/DVD Drive 1"

- Then click "OK" to save the settings.

Start OSR507V VM and at the BIOS POST messages screen, press ESC and choose the "CD-ROM Drive" at the boot menu.

OSr507V VM will now boot from the OSE507V Emergency BOOT/ROOT Recovery CD" image.

Once booted, follow the same procedure as in section 1 for maintenance work.

2.2 - You want to boot from OSR507V Emergency BOOT/ROOT
      Recovery CD from the physical CD/DVD-ROM drive
      attached to your windows desktop which is running
      the VMware VI/VC client.

- Burn the "bootcd.iso" onto a CD-R/RW via any kind of burring software.

- Within VI/VC client edit the OSR507V VM Settings

- Mark the "CD/DVD Drive 1" Under "Device Type", choose "Client Device" Make sure that the "Mode" is "Emulate IDE" and the "Virtual Device Node" should have "IDE (0:0) CD/DVD Drive 1"

- Then click "OK" to save the settings.

- Power the OSr507V VM and at the OSR507V VM POST BIOS messages, press the ESC button in order to get the "Boot Menu".

- On the top of the OSR507V Virtual Console, you will see a "Connect CD/DVD 1" button. Choose "Connect from E:" (From your VI client local CD/DVD-ROM drive letter)

- Place the OSR507V Emergency BOOT/ROOT CD onto your VI/VC client Desktop/laptop CD-ROM drive.

- Then from the "Boot Menu", boot from the CD-ROM Drive.

OSR507V VM will now boot from the OSR507V Emergency BOOT/ROOT Recovery CD and follow the same procedure as in section 1 for maintenance work.

2.3 - You want to boot from OSR507V Emergency BOOT/ROOT
      Recovery CD image (bootcd.iso) that resides on
      your windows desktop which is running the VMware
      VI/VC client.

- Within VI/VC client edit the OSR507V VM Settings

- Mark the "CD/DVD Drive 1"
Under "Device Type", choose "Client Device"

Make sure that the "Mode" is "Emulate IDE" and the

"Virtual Device Node" should have "IDE (0:0) CD/DVD Drive 1"

- Then click "OK" to save the settings.

- Power the OSr507V VM and at the OSR507V VM POST BIOS messages, press the ESC button in order to get the "Boot Menu".

- On the top of the OSR507V Virtual Console, you will see "Connect CD/DVD 1" button. For CD/DVD driver, choose "Connect ISO image" Then browse to the location on your client desktop where the CD-ROM image ISO image file resides.

- Then from the "Boot Menu", boot from the CD-ROM drive.

OSR507V VM will now boot from the OSR507V Emergency BOOT/ROOT Recovery CD "bootcd.iso" and follow the same procedure as in section 1 for maintenance work.

From the Xinuos technical article database, record 127407. Reproduced with permission. The original is at www.sco.com/ta/127407, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.