Triple Boot Bootcamp & Parallels working for Windows but not Linux.

Discussion in 'Parallels Desktop for Mac' started by sck_nogas, Feb 21, 2007.

  1. sck_nogas

    sck_nogas Junior Member

    Messages:
    15
    New Parallel user here...

    I have a triple bootcamp system following the instructions from OnMac.net's Wiki and also have a working Custom BootCamp Image for the Windows partition (disk0s4) running on the new Parallels Desktop for Mac build 3170 RC3

    But, what I can't get working is the Linux partition (disk0s3) to work via Parallels Desktop. I have a working Fedora Core 6 install via BootCamp and can select it via rEFIt to let me boot any of the three OS's. So, I know the OS and partition are good. Here is the pvs for my Linux side...
    Code:
    [System]
    Boot = c
    Parallels VM Name = Fedora Core 6
    VM Id = {f63d3798-cc64-4e08-a1c2-bbb92feb8fef}
    VM Description = 
    OS Type = 151
    Memory = 512
    Video Memory = 16
    Memory block size = 10
    Acceleration level = 2
    Enable write-back disk cache = 1
    VT-x support = 1
    Start auto = 0
    AutoShutdown = 0
    Start full screen = 21
    Start dashmode = 0
    Start full screen warning = 1
    PC Speaker enable = 1
    Window Mode = 1
    Multi frame = -1
    Guest Tools Status = -1
    [Shared folders]
    Shared folders enabled = 1
    Sharing enabled = 0
    Shared folders count = 0
    [Video]
    Video resolutions enabled = 1
    Video resolutions count = 0
    [Coherence]
    Show taskbar = 1
    Relocate taskbar = 0
    Exclude Dock = 1
    Multiple displays = 0
    [IDE devices]
    Disk 0:0 enabled = 1
    Disk 0:0 = 1
    Disk 0:0 media = 1
    Disk 0:0 connected = 1
    Disk 0:0 image = Boot Camp;disk0s3
    Disk 0:0 cylinders = 65016
    Disk 0:0 heads = 16
    Disk 0:0 sectors = 63
    Disk 0:1 enabled = 1
    Disk 0:1 = 2
    Disk 0:1 media = 1
    Disk 0:1 connected = 1
    Disk 0:1 image = Default CD/DVD-ROM
    Disk 1:0 enabled = 0
    Disk 1:0 = 0
    Disk 1:1 enabled = 0
    Disk 1:1 = 0
    [Floppy disks]
    Floppy 0 enabled = 0
    Floppy 0 = 1
    [Serial ports]
    COM1 enabled = 0
    COM1 = 0
    COM2 enabled = 0
    COM2 = 0
    COM3 enabled = 0
    COM3 = 0
    COM4 enabled = 0
    COM4 = 0
    [Parallel ports]
    LPT1 enabled = 0
    LPT1 = 0
    LPT2 enabled = 0
    LPT2 = 0
    LPT3 enabled = 0
    LPT3 = 0
    [Sound]
    Sound enabled = 1
    Sound = 1
    Sound connected = 1
    Sound device = Default Audio
    Mixer device = Default Audio
    [Network]
    Network enabled = 1
    Network = 3
    Network connected = 1
    Adapter No = 0
    Adapter name = Default Adapter
    Adapter type = 4
    Port = 0x00000300
    IRQ = 3
    MAC address = 005a63ba2825
    Network2 enabled = 0
    Network2 = 0
    Network3 enabled = 0
    Network3 = 0
    Network4 enabled = 0
    Network4 = 0
    Network5 enabled = 0
    Network5 = 0
    [Usb]
    USB enabled = 1
    USB = 1
    USB autoconnect = 0
    
    Any ideas?

    Scott
     
  2. darkone

    darkone Forum Maven

    Messages:
    804
    i dont believe parallels has ever supported booting linux via bootcamp. someone feel free to correct me if i'm wrong..
     
  3. sck_nogas

    sck_nogas Junior Member

    Messages:
    15
    I sent this into Parallels Support via the webform on Thu Feb 22 @ 13:21:47 2007
    So, we'll see what they say...
     
  4. sck_nogas

    sck_nogas Junior Member

    Messages:
    15
    Got this respone back from them on 2/24/07 6:25 AM,
    Not the helpful response I was hoping for. So, yesterday 2/24 at 6:36am, I sent back
    Let's see what they say to this.
     
  5. amper

    amper Bit poster

    Messages:
    5
    I'm having a similar problem. I have a triple boot setup, as well, though I am using GRUB to choose between Windows and Linux, rather than using rEFIt. I can't get either Windows XP or Fedora to boot at all using Parallels 3186. I started a thread here:

    http://forum.parallels.com/thread9430.html
     
  6. sck_nogas

    sck_nogas Junior Member

    Messages:
    15
    With Build 3186, I managed to go from not being able to boot at all, to being able to load grub. But I too get the warning "You are trying to boot via virtual machine into the Boot Camp partition with operating system that is not supported by Parallels Desktop...blah, blah, blah" and I select cancel an then get dumped into grub...

    But, it can't seem to find the disk to boot from. So, I'll be trying to figure out the grub.conf details to let me boot... :)

    Scott
     
  7. sck_nogas

    sck_nogas Junior Member

    Messages:
    15
    By the way, I got some more "incredibly useful" tech support back from my email..
    To which I replied (but also sent it to beta@parallels...)
    So basically, the responses I got from tech support were incredibly useless. I can't seem to get it through their heads that I WANT to help them be able to do this, and if I can work with them to do it, then great.

    So, it's off to do it myself. :mad:

    Scott
     
  8. alessandrobo

    alessandrobo Bit poster

    Messages:
    5
    I had the same problem. In my case, and maybe in yours too, is that when you install linux in bootcamp it will detect the hard disk partion as /dev/sda2 or /dev/sda3 which is what its supposed to do with a sata drive. when you boot in parallel, that's sees as a hda2/hda3, so it's ide.
    All you need to do is add an entry in your grub configuration file for parallels (copy the existing one and change sda<X> into hda<X>.

    Good luck.
    Alessandro
    P.S.
    Of course, you will have more trouble after you suffesfully boot, when the Xorg driver will die on the emulated vesa, but then all you need to do is change the driver to vesa (and swap xorg.conf files from parallels to bootcamp, if you want the zippy native graphics when you boot on bare metal)
     
  9. sck_nogas

    sck_nogas Junior Member

    Messages:
    15
    alessandrobo.... Not sure what you meant when you said...
    Since grub itself is device independant, but you got me thinking and googling and what I found in Linux, Boot Camp, Parallels was this nugget...
    So, from that URL I pointed the path to the "correct" grub.conf.
    [​IMG]

    But, then I needed to "tweak" my grub.conf to point to the right device. So, I did this to make a more flexible grub.conf for Parallels and for BootCamp boots...
    Code:
    # grub.conf generated by anaconda
    #
    # Note that you do not have to rerun grub after making changes to this file
    # NOTICE:  You do not have a /boot partition.  This means that
    #          all kernel and initrd paths are relative to /, eg.
    #          root (hd0,2)
    #          kernel /boot/vmlinuz-version ro root=/dev/sda3
    #          initrd /boot/initrd-version.img
    #boot=/dev/sda3
    default saved
    fallback 1
    timeout=5
    splashimage=(hd0,2)/boot/grub/splash.xpm.gz
    hiddenmenu
    title Fedora Core (2.6.19-1.2911.fc6)
            root (hd0,2)
            kernel /boot/vmlinuz-2.6.19-1.2911.fc6 ro root=LABEL=/ rhgb quiet
            initrd /boot/initrd-2.6.19-1.2911.fc6.img
            savedefault fallback
    title Fedora Core (2.6.19-1.2911.fc6) Parallels
            root (hd0,0)
            kernel /boot/vmlinuz-2.6.19-1.2911.fc6 ro root=LABEL=/ rhgb quiet
            initrd /boot/initrd-2.6.19-1.2911.fc6.img
            savedefault fallback
    After now the system finds the right config file, and the right disk partition, and the kernel should boot.[​IMG]

    But now, X won't work yet, since my /etc/X11/xorg.conf is not using the 'vesa' driver, but is using the 'fglrx' driver, so I skip through these steps, and leave my X config along.
    [​IMG]

    Finally login is shown, and I can login and continue working on this...
    [​IMG]

    But, there's more work to be done.
    1. Find a way to have the correct grub.conf file location be flexible between BootCamp & Parallels
    2. Find a flexible way to have the right xorg.conf be chosen between the native driver and the Parallels driver
    3. Get rid of the annoying, you're booting a non-Windows BootCamp warning from Parallels.
    4. Find a solution to the 512 MB RAM limit for Fedora Core 6.

    Scott
     
  10. amper

    amper Bit poster

    Messages:
    5
    Nice! That makes a lot more sense now...I'll have to try this, but I don't have the time today.
     
  11. spook

    spook Bit poster

    Messages:
    8
    identifying unique xorg.conf / other files

    Hi all,

    I've been messing about with triple booting my macbook pro for a while and finally have everything almost working... just a few tweaks here and there to do...

    Anyway... I got my MacBook Pro to boot OS X, Windows XP, and Slackware 11.

    I did the install using Lilo as the boot loader. I used the MBR of /dev/sda3 (the slackware partition) this was important as otherwise the efi partition breaks in an unfixable manner....
    and I copy that MBR to a file and point the Windows Boot Loader at it...


    Ok, so the way that I get parallels to boot my linux is using a floppy image with lilo installed onto it... (i did this using a generic slackware kernel disk (sata.i) and pointed the root to /dev/hda1 then created the relavant lilo.conf....

    Anyway, I can go into more detail if people want...

    The interesting part is that you can use the boot process to identify if you are native or parallels, by detecting hardware differences...

    With Slackware you have an initialisation script /etc/rc.d/rc.S

    this is the Single user script...
    Code:
    ------ snip -------
    
    # Mount /proc right away:
    /sbin/mount -v proc /proc -n -t proc
    
    # this is near the top of the file I have added the following lines after the /proc 
    #is mounted
    
    # I know that in native mode I don't have a HDB I only have HDA and SDA you may need to 
    #tweak this for other systems... I only have a MBP so this is how I distinguish between 
    #modes... other ways may be detecting number of processors, grapics card, 
    #ethernet adapter etc..
    
    if [ -x /proc/ide/hdb ]; then[INDENT]
       # first off we need to be able to edit files....
       mount /dev/hda1 / -o rw,remount
       # perform file changes here like examples below...
       cp /etc/fstab.parallels /etc/fstab
       cp /etc/lilo.conf.parallels /etc/lilo.conf
       # just to let you know where you are, useful for debugging....
       echo *************PARALLELS CONFIGURATION**************
       mount /dev/hda1 / -o ro,remount
       # it is important to remount as read only or you get diskcheck problems later[/INDENT]
    else[INDENT]
       mount /dev/sda3 / -o rw,remount
       cp /etc/fstab.native /etc/fstab
       cp /etc/lilo.conf.native /etc/lilo.conf
       echo *************NATIVE CONFIGURATION****************
       mount /dev/sda3 / -o ro,remount[/INDENT]
    fi
    
    ------ snip -------
    
    I hope this is helpful to someone out there....
     
    Last edited: Apr 4, 2007
  12. Ashish Singh

    Ashish Singh Bit poster

    Messages:
    1
    Extensive support of OpenGl for 3D acceleration in Linux

    I installed Suse 10.1 in Parallel (not natively). I couldn't get 3D enabled. I have natively installed Suse 10.1 too with 3D acceleration enabled. An attempt to run through bootcamp will help? Any hint?
     
  13. Geffy

    Geffy Bit poster

    Messages:
    5
    the parallels graphics driver isnt 3d enabled yet, might work with 3.0 though once its out.
     
  14. sck_nogas

    sck_nogas Junior Member

    Messages:
    15
    Well, to update...

    I've still not been able to successfully boot my Linux Bootcamp partition after Apple replaced my 160GB drive ( formatted 100GB Mac, 15GB Linux, 40GB Windows) with a 200GB drive (formated 131GB Mac, 15GB Linux, 40GB Windows). I was having issues with Parallels booting my Windows Bootcamp until I got this suggestion.

    This worked, but I still don't understand why it worked. Since the solution they gave me was to add the Linux Bootcamp partition as a second entry in the Windows Partition statement for Parallels? I wonder if it's because that partition is just on the other side of the 132 GB boundary? But, Linux itself doesn't boot.

    I have since upgraded to Parallels Desktop 3.0 and Bootcamp 1.3 and Windows XP is still happy, though I can't boot my Linux partition at all.

    On the old 160GB drive, I could at least get Linux booting if I manually tweaked GRUB, but now on the 200GB drive, I just get..
    [​IMG]

    So, my ideas have been...

    1) Create a GRUB floppy image (same error)
    2) Use a different Boot Loader (like GAG) But it can't see the partitions
    3) Use an ISO image of the RescueCD, which can mount the partition.

    Anyone got any other ideas?

    Scott
     
  15. Milamber_Cubed

    Milamber_Cubed Junior Member

    Messages:
    16
    Hi All,

    I was going to post my solution for this in here, but it got pretty long so I created a separate thread. Couldn't have done it without threads like this one though - especially when I was just starting with Parallels.

    My solution (including automatic xorg config at boot) available here:

    http://forums.parallels.com/showthread.php?p=64392#post64392

    Enjoy (?)
     

Share This Page