Parallels 6 and Bootcamp: missing operating system

Discussion in 'Windows Virtual Machine' started by Tobias Severin, Oct 11, 2010.

  1. Tobias Severin

    Tobias Severin Bit poster

    Messages:
    3
    Hi there,
    I am trying to use Parallels 6 with my Bootcamp Partition under Windows 7 (running on my iMac).
    Bootcamp runs perfect but after creating the VM based on "Bootcamp partition" the VM tells me "missing operating system".

    I have tried out several things like:
    - re-install parallels
    - removing and re-creating the VMs
    - changing partition options

    nothing works.

    any ideas?

    -Toby
     
  2. joevt

    joevt Forum Maven

    Messages:
    1,229
    Try reselecting the Boot Camp disk in the Hard Disk settings. Is there an "Edit Partitions..." button (only visible when there's more than one Windows partition) ?

    Check your partitions using Terminal.app:
    Code:
    diskutil list /dev/disk0
    sudo gpt -r show -l /dev/disk0
    sudo gpt -r show /dev/disk0
    sudo fdisk /dev/rdisk0
    
    Check the boot code:
    Code:
    sudo dd if=/dev/disk0 count=1 | xxd
    
    Post the info here (inside [code] and [/code] to preserve spacing).
     
  3. Tobias Severin

    Tobias Severin Bit poster

    Messages:
    3
    Thank you for the hint. Indeed I had more than one Windows partition. I tried "Edit partitions" but this does not help. (telling me that the VM could not access the harddrive).
    I decided to check the partitions under Windows and I deleted one volume/partition I did not need. After that the creation of the Bootcamp-VM runs smoothly without any problems. :)

    thanks for your help again. tobi
     
  4. datn

    datn Bit poster

    Messages:
    2
    Hello joevt, help me this, I have same this error .


     
  5. joevt

    joevt Forum Maven

    Messages:
    1,229
    Note: to preserve spacing in the output, surround it with [code] and [code] instead of [QUOTE] and [/QUOTE] or attach a txt file to the post.

    Which version of Windows are you using?

    Are you able to boot your Mac into the Boot Camp partition? The MBR (output from fdisk) says the DATA partition is set as the boot partition.

    Which Windows partition has the boot files (DATA or BOOTCAMP)?

    Which Windows partition has the Windows folder?

    Which boot files are on the partitions?
    (C:\bootmgr and C:\Boot\BCD for new Windows Vista or Windows 7)
    (C:\ntldr and C:\boot.ini for Windows XP)

    Use the following commands to list the files:
    Code:
    ls -l /Volumes/DATA/ /Volume/DATA/Boot/
    ls -l /Volumes/BOOTCAMP/ /Volume/BOOTCAMP/Boot/
    
    If DATA contains the boot files, but Windows is on the BOOTCAMP partition, then you need to make sure that both partitions are selected in Virtual Machine -> Configure... -> Hardware -> Hard Disk 1 -> Edit Partitions -> select each partition that you want to be visible in the VM -> OK.

    It might be better to move the boot files to the same disk containing Windows (if they're not already there). Use EasyBCD to do that.
     
  6. joevt

    joevt Forum Maven

    Messages:
    1,229
    The following commands will show the boot block of your Windows partitions:
    Code:
    sudo dd if=/dev/disk0 count=1 skip=195979264 | xxd
    sudo dd if=/dev/disk0 count=1 skip=451289088 | xxd
    
     
  7. datn

    datn Bit poster

    Messages:
    2
    Hello, tks for reply me soon, my version windows is XP,

    I do not understand what you say, please give me detailed instructions, thank you,

    My Command.

    Code:
    SLOWLYs-MacBook-Pro:~ slowlyrain$ ls -l /Volumes/DATA/ /Volume/DATA/Boot/
    ls: /Volume/DATA/Boot/: No such file or directory
    /Volumes/DATA/:
    total 237248
    drwxrwxrwx  1 slowlyrain  staff      32768 Aug 23 07:58 DATA-ITUNES
    drwxrwxrwx  1 slowlyrain  staff      32768 Sep  2 00:32 DESIGN PRO
    drwxrwxrwx  1 slowlyrain  staff      32768 Sep  3 15:40 DU LIEU
    drwxrwxrwx  1 slowlyrain  staff      32768 Jul 23 00:34 Danh Ba Hien - 22 - 07-2011
    drwxrwxrwx  1 slowlyrain  staff      32768 Aug 21 09:15 Download
    drwxrwxrwx  1 slowlyrain  staff      32768 Aug  7 17:48 GAME
    drwxrwxrwx  1 slowlyrain  staff      32768 Aug  7 22:51 HOCTAP
    -rwxrwxrwx  1 slowlyrain  staff          0 Jul 22 13:20 IO.SYS
    drwxrwxrwx  1 slowlyrain  staff      32768 Aug  6 12:35 Itunes fake toan tap
    -rwxrwxrwx  1 slowlyrain  staff          0 Jul 22 13:20 MSDOS.SYS
    drwxrwxrwx  1 slowlyrain  staff      32768 Sep  1 16:37 MUSIC
    drwxrwxrwx  1 slowlyrain  staff      32768 Aug 24 07:52 MY WEB
    -rwxrwxrwx  1 slowlyrain  staff      47564 Aug  4  2004 NTDETECT.COM
    drwxrwxrwx  1 slowlyrain  staff      32768 Aug 26 11:08 Photos gui Dat
    drwxrwxrwx  1 slowlyrain  staff      32768 Jul 23 10:08 Recycled
    drwxrwxrwx  1 slowlyrain  staff      32768 Aug 30 00:43 SETUP
    drwxrwxrwx  1 slowlyrain  staff      32768 Jul 22 13:28 System Volume Information
    drwxrwxrwx  1 slowlyrain  staff      32768 Aug 26 21:59 TRANH ANH
    -rwxrwxrwx  1 slowlyrain  staff        262 Jul 22 13:15 boot.ini
    -rwxrwxrwx  1 slowlyrain  staff        512 Jul 22 13:10 bootsect.dos
    -rwxrwxrwx  1 slowlyrain  staff     250032 Aug  4  2004 ntldr
    -rwxrwxrwx  1 slowlyrain  staff  120586240 Jul 22 13:11 pagefile.sys
    SLOWLYs-MacBook-Pro:~ slowlyrain$ ls -l /Volumes/BOOTCAMP/ /Volume/BOOTCAMP/Boot/
    ls: /Volume/BOOTCAMP/Boot/: No such file or directory
    /Volumes/BOOTCAMP/:
    total 4190464
    drwxrwxrwx  1 slowlyrain  staff       16384 Aug 11 20:48 Config.Msi
    drwxrwxrwx  1 slowlyrain  staff       16384 Jul 22 13:11 Documents and Settings
    drwxrwxrwx  1 slowlyrain  staff       16384 Aug 11 20:28 Hotspot Shield
    drwxrwxrwx  1 slowlyrain  staff       16384 Jul 27 13:40 Intel
    drwxrwxrwx  1 slowlyrain  staff       16384 Jul 22 13:12 Program Files
    drwxrwxrwx  1 slowlyrain  staff       16384 Jul 23 10:08 Recycled
    drwxrwxrwx  1 slowlyrain  staff       16384 Jul 22 13:28 System Volume Information
    drwxrwxrwx  1 slowlyrain  staff       16384 Jul 22 13:03 WINDOWS
    -rwxrwxrwx  1 slowlyrain  staff  2145386496 Aug 31 07:15 pagefile.sys
    SLOWLYs-MacBook-Pro:~ slowlyrain$ sudo dd if=/dev/disk0 count=1 skip=195979264 | xxd
    Password:
    1+0 records in
    1+0 records out
    512 bytes transferred in 0.000240 secs (2134676 bytes/sec)
    0000000: eb58 9042 5344 2020 342e 3400 0240 2000  .X.BSD  4.4..@ .
    0000010: 0200 0000 00f8 0000 2000 ff00 0068 ae0b  ........ ....h..
    0000020: 00b8 370f b779 0000 0000 0000 0200 0000  ..7..y..........
    0000030: 0100 0600 0000 0000 0000 0000 0000 0000  ................
    0000040: 8000 2902 0de7 7c44 4154 4120 2020 2020  ..)...|DATA     
    0000050: 2020 4641 5433 3220 2020 33c9 8ed1 bcf4    FAT32   3.....
    0000060: 7b8e c18e d9bd 007c 884e 028a 5640 b408  {......|.N..V@..
    0000070: cd13 7305 b9ff ff8a f166 0fb6 c640 660f  ..s......f...@f.
    0000080: b6d1 80e2 3ff7 e286 cdc0 ed06 4166 0fb7  ....?.......Af..
    0000090: c966 f7e1 6689 46f8 837e 1600 7538 837e  .f..f.F..~..u8.~
    00000a0: 2a00 7732 668b 461c 6683 c00c bb00 80b9  *.w2f.F.f.......
    00000b0: 0100 e82b 00e9 4803 a0fa 7db4 7d8b f0ac  ...+..H...}.}...
    00000c0: 84c0 7417 3cff 7409 b40e bb07 00cd 10eb  ..t.<.t.........
    00000d0: eea0 fb7d ebe5 a0f9 7deb e098 cd16 cd19  ...}....}.......
    00000e0: 6660 663b 46f8 0f82 4a00 666a 0066 5006  f`f;F...J.fj.fP.
    00000f0: 5366 6810 0001 0080 7e02 000f 8520 00b4  Sfh.....~.... ..
    0000100: 41bb aa55 8a56 40cd 130f 821c 0081 fb55  A..U.V@........U
    0000110: aa0f 8514 00f6 c101 0f84 0d00 fe46 02b4  .............F..
    0000120: 428a 5640 8bf4 cd13 b0f9 6658 6658 6658  B.V@......fXfXfX
    0000130: 6658 eb2a 6633 d266 0fb7 4e18 66f7 f1fe  fX.*f3.f..N.f...
    0000140: c28a ca66 8bd0 66c1 ea10 f776 1a86 d68a  ...f..f....v....
    0000150: 5640 8ae8 c0e4 060a ccb8 0102 cd13 6661  V@............fa
    0000160: 0f82 54ff 81c3 0002 6640 490f 8571 ffc3  ..T.....f@I..q..
    0000170: 4e54 4c44 5220 2020 2020 2000 0000 0000  NTLDR      .....
    0000180: 0000 0000 0000 0000 0000 0000 0000 0000  ................
    0000190: 0000 0000 0000 0000 0000 0000 0000 0000  ................
    00001a0: 0000 0000 0000 0000 0000 0000 0d0a 4e54  ..............NT
    00001b0: 4c44 5220 6973 206d 6973 7369 6e67 ff0d  LDR is missing..
    00001c0: 0a44 6973 6b20 6572 726f 72ff 0d0a 5072  .Disk error...Pr
    00001d0: 6573 7320 616e 7920 6b65 7920 746f 2072  ess any key to r
    00001e0: 6573 7461 7274 0d0a 0000 0000 0000 0000  estart..........
    00001f0: 0000 0000 0000 0000 00ac bfcc 0000 55aa  ..............U.
    SLOWLYs-MacBook-Pro:~ slowlyrain$ sudo dd if=/dev/disk0 count=1 skip=451289088 | xxd
    1+0 records in
    1+0 records out
    512 bytes transferred in 0.000300 secs (1707062 bytes/sec)
    0000000: eb58 904d 5344 4f53 352e 3000 0220 2000  .X.MSDOS5.0..  .
    0000010: 0200 0000 00f8 0000 3f00 ff00 0020 e61a  ........?.... ..
    0000020: 0010 e902 8c2e 0000 0000 0000 0200 0000  ................
    0000030: 0100 0600 0000 0000 0000 0000 0000 0000  ................
    0000040: 8000 29ba a6be 084e 4f20 4e41 4d45 2020  ..)....NO NAME  
    0000050: 2020 4641 5433 3220 2020 33c9 8ed1 bcf4    FAT32   3.....
    0000060: 7b8e c18e d9bd 007c 884e 028a 5640 b408  {......|.N..V@..
    0000070: cd13 7305 b9ff ff8a f166 0fb6 c640 660f  ..s......f...@f.
    0000080: b6d1 80e2 3ff7 e286 cdc0 ed06 4166 0fb7  ....?.......Af..
    0000090: c966 f7e1 6689 46f8 837e 1600 7538 837e  .f..f.F..~..u8.~
    00000a0: 2a00 7732 668b 461c 6683 c00c bb00 80b9  *.w2f.F.f.......
    00000b0: 0100 e82b 00e9 4803 a0fa 7db4 7d8b f0ac  ...+..H...}.}...
    00000c0: 84c0 7417 3cff 7409 b40e bb07 00cd 10eb  ..t.<.t.........
    00000d0: eea0 fb7d ebe5 a0f9 7deb e098 cd16 cd19  ...}....}.......
    00000e0: 6660 663b 46f8 0f82 4a00 666a 0066 5006  f`f;F...J.fj.fP.
    00000f0: 5366 6810 0001 0080 7e02 000f 8520 00b4  Sfh.....~.... ..
    0000100: 41bb aa55 8a56 40cd 130f 821c 0081 fb55  A..U.V@........U
    0000110: aa0f 8514 00f6 c101 0f84 0d00 fe46 02b4  .............F..
    0000120: 428a 5640 8bf4 cd13 b0f9 6658 6658 6658  B.V@......fXfXfX
    0000130: 6658 eb2a 6633 d266 0fb7 4e18 66f7 f1fe  fX.*f3.f..N.f...
    0000140: c28a ca66 8bd0 66c1 ea10 f776 1a86 d68a  ...f..f....v....
    0000150: 5640 8ae8 c0e4 060a ccb8 0102 cd13 6661  V@............fa
    0000160: 0f82 54ff 81c3 0002 6640 490f 8571 ffc3  ..T.....f@I..q..
    0000170: 4e54 4c44 5220 2020 2020 2000 0000 0000  NTLDR      .....
    0000180: 0000 0000 0000 0000 0000 0000 0000 0000  ................
    0000190: 0000 0000 0000 0000 0000 0000 0000 0000  ................
    00001a0: 0000 0000 0000 0000 0000 0000 0d0a 5265  ..............Re
    00001b0: 6d6f 7665 2064 6973 6b73 206f 7220 6f74  move disks or ot
    00001c0: 6865 7220 6d65 6469 612e ff0d 0a44 6973  her media....Dis
    00001d0: 6b20 6572 726f 72ff 0d0a 5072 6573 7320  k error...Press 
    00001e0: 616e 7920 6b65 7920 746f 2072 6573 7461  any key to resta
    00001f0: 7274 0d0a 0000 0000 00ac cbd8 0000 55aa  rt............U.
    SLOWLYs-MacBook-Pro:~ slowlyrain$ 
    
     
  8. joevt

    joevt Forum Maven

    Messages:
    1,229
    The Windows XP boot files are on the partition named DATA.

    The WINDOWS folder (that contains Windows XP) is on the partition named BOOTCAMP.

    You need to do one of the following (A or B) to boot your BOOTCAMP partition in Parallels:

    A) Make sure the virtual hard disk includes both partitions. Go to Virtual Machine -> Configure... -> Hardware -> Hard Disk 1 -> Edit Partitions, then make sure both partition 3 and 4 are selected.

    B) Make BOOTCAMP bootable. Copy the boot files (ntldr, NTDETECT.COM, and boot.ini) from the DATA partition to the BOOTCAMP partition. Make sure boot.ini points to partition 4 (use a text editor). Then use fdisk to set partition 4 in the MBR as the bootable partition.
    Code:
    sudo fdisk -e /dev/rdisk0
    
    To use fdisk, type "?" for help, "p" to display the partitions, "f 4" to flag partition 4 as the boot partition, "p" to display your changes, "q" to save your changes and quit. If you don't want to save changes, type "exit" instead. After making changes to the MBR, you may need to remove the Hard Disk 1 from your Parallels virtual machine, and then add the hard disk again so that Parallels will see the change. You will only need to include partition 4 to boot Parallels. You may want to include partition 3 still so that you can see it in the Parallels virtual machine.
     

Share This Page