Article ID: 6698, created on Sep 23, 2009, last review on May 10, 2014

  • Applies to:
  • Virtuozzo hypervisor 4.0 for Mac Bare Metal

Resolution

Installing Parallels Server for Mac Bare Metal on an Apple XServe

To install Parallels Server Bare Metal on an Apple XServe:

1. Insert Parallels Server 4.0 for Mac Bare Metal (PSfM BM) boot CD into your server's DVD/CD-ROM drive, and  restart the server.
2. Press and hold the C key when the system starts up to force booting from the "PSfM BM Boot CD" CD.
3. From the grub2 menu, choose the "Parallels Server Bare Metal Installation" option.
4. In the Installation Method window, select "Local CDROM", and replace the ejected CD with the main PSfM BM installation DVD.
5. Follow the on-screen instructions to install Parallels Server Bare Metal.

Booting Parallels Server for Mac Bare Metal on an Apple XServe

When installing the necessary files from the "Parallels Server for Mac Bare Metal Edition" CD, a separate partition with the HFS+ filesystem is created. This partition contains the so-called "blessed" grub2 bootloader file. When the system starts up, the firmware of the Apple XServe checks all connected disks, searches for NFS+ partitions, checks the "blessed" file, and runs the grub2 bootloader. The bootloader reads the configuration file (/boot/grub2/grub.cfg) and loads the specified kernel.

Troubleshooting

1. Apple XServe loads Mac OS X from another disk or via network.

   To troubleshoot the problem, load Mac OS X, and use the bless utility to set up the default startup volume to the Parallels Server Bare Metal's HFS+ partition:
   1.1. Open a terminal application.
   1.2. In the terminal window, locate the mount point of the HFS+ partition. This partition contains only the grub.efi and grub.hfs.cfg files.
     
# mount
...
/dev/disk1s4 on /Volumes/untitled (hfs, local)
# ls /Volumes/untitled/
.Trashes    grub.efi    grub.hfs.cfg
  
   1.3. Use the bless utility to set up the permanent default startup option:
  
# bless --folder /Volumes/untitled/ --file /Volumes/untitled/grub.efi --setBoot

  On the next system start-up, the blessed grub.efi will be started.

2. The PSfM BM's HFS+ partition was removed or its content  was corrupted.

   To troubleshoot the problem, do the following:
   2.1. Boot from the "PSfM BM Boot CD" CD, and select Rescue mode.
   2.2. In the Rescue Method window, select "Local CDROM", and replace the ejected disc with the main PSfM BM installation DVD. If required, set up the correct network configuration settings.
   2.3. In the Rescue window, select "Continue".
   2.4. Mount the installation DVD by running this command in the command line:
  
# mount /dev/hda /mnt/source

   2.5. Use the parted command to specify the name of the HFS+ partition. If necessary, decrease the size of the linux-swap partition and create a new 32-MB partition.
     
# parted /dev/sda
GNU Parted 1.8.1
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p

Model: ATA ST380815AS N (scsi)
Disk /dev/sda: 82.0GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End     Size    File system  Name  Flags
 1      17.4kB  10.6GB  10.6GB  ext3                   
 2      10.6GB  79.4GB  68.8GB  ext3                   
 3      79.4GB  81.9GB  2525MB  linux-swap             
 4      81.9GB  82.0GB  32.9MB  hfs+   

(parted) quit

  2.6. Execute the following command to renew the HFS+ partition:
  
# dd if=/mnt/source/efi/hfs.grub.dsk of=<correct name of HFS+ partition>

      Note: In example above, the correct name of the HFS+ partition is /dev/sda4.

3. I can boot PSfM BM only using the "Option" key because another configuration is booted by default.

   - Check that the disks connected to your server have only one HFS+ partition.
   - If possible, detach the other disks containing HFS+ partitions.
   - If you cannot detach the disks, boot Mac OS X and use the "bless" utility to set up the default startup volume to the PSfM BM's HFS+ partition. If your disks do not have Mac OS X installed:

     3.1.Boot from the Mac OS X installation disk.
     3.2. On the Mac OS X Install screen, select "Utilities" from the top menu, and then select "Terminal".
     3.3. In the terminal, find the mount point of the PSfM BM's HFS+ partition and use the bless utility to set up the default startup options. See Problem 1 for more details.

4. I would like to renew the "blessing" of the grub2 bootloader file on the HFS+ partition without restoring the partition image.

   You can do it by running the hfsbless command from the grub2 command line:

   4.1. Boot from the "PSfM BM Boot" CD and press Q key to enter the grub2 command line.
   4.2. Use the ls utility to find the Parallels Server Bare Metal's HFS+ partition.
   4.3. Run the hfsbless command.

   For example:
sh.grub> ls -al
....

   This command list all the available partitions. Select the hfsplus partition.

sh.grub> ls (hd1,4)/
grub.efi  grub.hfs.cfg

sh.grub> hfsbless (hd1,4)/grub.efi

   Now you can type "reboot" to restart the server.

5. grub started, but failed to find the configuration file (/boot/grub2/grub.cfg).

   To troubleshoot this problem, do the following:

   5.1. Boot from a local disc and in the grub menu press the Q key to enter the grub shell.
   5.2. Locate the /boot/grub2/grub.cfg file using the search and ls commands.
  
sh.grub>  search -f /boot/grub2/grub.cfg
 hd0,1
sh.grub>  ls (hd0,1)/boot/grub2/grub.cfg
 grub.cfg

    You can use the cat command to view the contents of the configuration file.

sh.grub>  cat (hd0,1)/boot/grub2/grub.cfg
 ....

    Once you have located the correct configuration file, you can load it using the configfile command:

sh.grub> configfile (hd0,1)/boot/grub2/grub.cfg

    This will display the grub menu where you can select the PSfM BM kernel and boot it.

    If you cannot find the correct configuration file, try to find the kernel and the initrd image in the /boot directory and boot the kernel manually.
    Use the 'ls -al' command to get the list of detected partitions. In the list, locate the ext2 partition with the /1 label and use the ls command to search for the /boot directory containing the vmlinuz* and initrd* files.

    Then, execute the following commands:

sh.grub> fakebios
sh.grub> linux (hd0,1)/boot/vmlinuz-2.6.18-028stab065.7 root=LABEL=/1 acpi=force
sh.grub> initrd (hd0,1)/boot/initrd-2.6.18-028stab065.7.img
sh.grub> boot

    You need to run the fakebios command from the grub command line first. Do not forget to add the acpi=force option to the kernel command line and specify the correct root partition.

6. grub started and detected the configuration file, but failed to find the kernel or the initrd image.

   To troubleshoot this problem:

   6.1. Boot from the "PSfM BM Boot" CD in Rescue mode as described in troubleshooting for Problem 2.
   6.2. Set the correct networking configuration settings.
   6.3. Run this command in the command line:
  
# chroot /mnt/sysimage

   6.4. Download the rpm package containing the PSfM BM kernel and install it on the server using the 'rpm -ihv' command.

# rpm -ihv vzkernel-2.6.18-028stab065.7.x86_64.rpm

   After installation, the update-grub2 script will be called automatically and will update the grub.cfg file.

a26b38f94253cdfbf1028d72cf3a498b 0fe456bdc1f41aefe37dd2554a60437e 2897d76d56d2010f4e3a28f864d69223

Email subscription for changes to this article
Save as PDF