Emulating the XO/Mac Parallels3: Difference between revisions
(New page: <gallery> Image:gsk-olpc-mac-par-01.jpg Image:gsk-olpc-mac-par-02.jpg Image:gsk-olpc-mac-par-03.jpg Image:gsk-olpc-mac-par-04.jpg Image:gsk-olpc-mac-par-05.jpg Image:gsk-olpc-mac-par-06.jp...) |
m (Walter smells 17 moved to Emulating the XO/Mac Parallels3 over redirect: revert) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
=== Step by step instructions for getting XO emulation up on a Mac using Parallels v3 === |
|||
<gallery> |
<gallery> |
||
Image:gsk-olpc-mac-par-01.jpg |
Image:gsk-olpc-mac-par-01.jpg|Create a new virtual machine. |
||
Image:gsk-olpc-mac-par-02.jpg |
Image:gsk-olpc-mac-par-02.jpg|Specify Custom OS. |
||
Image:gsk-olpc-mac-par-03.jpg |
Image:gsk-olpc-mac-par-03.jpg|Select Other Linux. |
||
Image:gsk-olpc-mac-par-04.jpg |
Image:gsk-olpc-mac-par-04.jpg|Specify 256MB RAM. |
||
Image:gsk-olpc-mac-par-05.jpg |
Image:gsk-olpc-mac-par-05.jpg|Create new (empty) 1GB hard disk. |
||
Image:gsk-olpc-mac-par-06.jpg |
Image:gsk-olpc-mac-par-06.jpg|Specify 1GB plain disk. |
||
Image:gsk-olpc-mac-par-07.jpg |
Image:gsk-olpc-mac-par-07.jpg|Choose networking option. |
||
Image:gsk-olpc-mac-par-08.jpg |
Image:gsk-olpc-mac-par-08.jpg|Name the virtual machine OLPC. |
||
Image:gsk-olpc-mac-par-09.jpg |
Image:gsk-olpc-mac-par-09.jpg|Optimize performance for VM. |
||
Image:gsk-olpc-mac-par-10.jpg |
Image:gsk-olpc-mac-par-10.jpg|Uncheck Start Other Linux installation. |
||
Image:gsk-olpc-mac-par-11.jpg |
Image:gsk-olpc-mac-par-11.jpg|(blank) 1GB HD image is created. |
||
</gallery> |
</gallery> |
||
Quit Parallels, since so far we only have a blank disk image. Take a look at it. |
|||
$ ls -l ${HOME}/Documents/Parallels/OLPC/otherlin.hdd/*.hds |
|||
-rw-r--r-- ... 1073995776 Jan 3 00:30 .../otherlin.hdd.0.{some-parallels-hex-code}.hds |
|||
I use a script to copy an XO image onto the blank 1GB disk just created. |
|||
$ cat ~/bin/mk-otherlin-olpc |
|||
#!/bin/bash |
|||
# edit these to match your system |
|||
IND=/Users/gknauth/test/olpc |
|||
INF=xo-1-olpc-stream-joyride-build-1492-20080102_2219-devel_ext3.img.bz2 |
|||
OUTD=/Users/gknauth/Documents/Parallels/OLPC/otherlin.hdd |
|||
OUTF='otherlin.hdd.0.{some-parallels-hex-code}.hds' |
|||
bzcat "$IND/$INF" | dd "of=$OUTD/$OUTF" bs=1024 conv=notrunc,noerror,sync |
|||
Invoke the script. |
|||
$ ~/bin/mk-otherlin-olpc |
|||
949840+1 records in |
|||
949841+0 records out |
|||
972637184 bytes transferred in 190.564697 secs (5103974 bytes/sec) |
|||
I am glad that the number of bytes transferred is less than the size of the hard disk I created. If that had not been the case, I would later get a Grub Error 18 (selected cylinder exceeds maximum supported by BIOS). |
|||
$ ls -l ${HOME}/Documents/Parallels/OLPC/otherlin.hdd/*.hds |
|||
-rw-r--r-- ... 1073995776 Jan 3 00:40 .../otherlin.hdd.0.{some-parallels-hex-code}.hds |
|||
Now that we have a real XO image copied over to our hard disk, we can start Parallels again. |
|||
<gallery> |
<gallery> |
||
Image:gsk-olpc-mac-par-18.jpg |
Image:gsk-olpc-mac-par-18.jpg|Select OLPC VM to run. |
||
Image:gsk-olpc-mac-par-19.jpg |
Image:gsk-olpc-mac-par-19.jpg|Start OLPC VM. |
||
Image:gsk-olpc-mac-par-20.jpg |
Image:gsk-olpc-mac-par-20.jpg|OLPC VM begins to boot. |
||
Image:gsk-olpc-mac-par-21.jpg |
Image:gsk-olpc-mac-par-21.jpg|OLPC VM is booting. |
||
Image:gsk-olpc-mac-par-22.jpg |
Image:gsk-olpc-mac-par-22.jpg|Enter your name. |
||
Image:gsk-olpc-mac-par-23.jpg |
Image:gsk-olpc-mac-par-23.jpg|Your OLPC is running. |
||
Image:gsk-olpc-mac-par-24.jpg |
Image:gsk-olpc-mac-par-24.jpg|Trusty terminal. |
||
</gallery> |
</gallery> |
||
At this point, there is no networking. What I want to do is the following: |
|||
$ sudo bash |
|||
# ifup eth0 |
|||
However <tt>ifup eth0</tt> is failing for me. I still mention it because it seems to have worked for most other people. Try different networking options when initially creating the Parallels virtual machine. |
|||
Some of the suggestions I pursued, such as creating an empty hard disk and then using a <tt>dd</tt> command that does not truncate the image, came from [[User:BruceB|BruceB]] and [[User:ScottSwanson|ScottSwanson]] at [[Emulating_the_XO/Mac]]. |
Latest revision as of 14:36, 7 October 2009
Step by step instructions for getting XO emulation up on a Mac using Parallels v3
Quit Parallels, since so far we only have a blank disk image. Take a look at it.
$ ls -l ${HOME}/Documents/Parallels/OLPC/otherlin.hdd/*.hds -rw-r--r-- ... 1073995776 Jan 3 00:30 .../otherlin.hdd.0.{some-parallels-hex-code}.hds
I use a script to copy an XO image onto the blank 1GB disk just created.
$ cat ~/bin/mk-otherlin-olpc #!/bin/bash # edit these to match your system IND=/Users/gknauth/test/olpc INF=xo-1-olpc-stream-joyride-build-1492-20080102_2219-devel_ext3.img.bz2 OUTD=/Users/gknauth/Documents/Parallels/OLPC/otherlin.hdd OUTF='otherlin.hdd.0.{some-parallels-hex-code}.hds' bzcat "$IND/$INF" | dd "of=$OUTD/$OUTF" bs=1024 conv=notrunc,noerror,sync
Invoke the script.
$ ~/bin/mk-otherlin-olpc 949840+1 records in 949841+0 records out 972637184 bytes transferred in 190.564697 secs (5103974 bytes/sec)
I am glad that the number of bytes transferred is less than the size of the hard disk I created. If that had not been the case, I would later get a Grub Error 18 (selected cylinder exceeds maximum supported by BIOS).
$ ls -l ${HOME}/Documents/Parallels/OLPC/otherlin.hdd/*.hds -rw-r--r-- ... 1073995776 Jan 3 00:40 .../otherlin.hdd.0.{some-parallels-hex-code}.hds
Now that we have a real XO image copied over to our hard disk, we can start Parallels again.
At this point, there is no networking. What I want to do is the following:
$ sudo bash # ifup eth0
However ifup eth0 is failing for me. I still mention it because it seems to have worked for most other people. Try different networking options when initially creating the Parallels virtual machine.
Some of the suggestions I pursued, such as creating an empty hard disk and then using a dd command that does not truncate the image, came from BruceB and ScottSwanson at Emulating_the_XO/Mac.