VirtualBox/Preparing a disk image: Difference between revisions
No edit summary |
incorporate full, uncompressed image alternate |
||
| (4 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude></noinclude> | ||
==LiveOS image== | |||
Below are instructions for preparing a VirtualBox disk image from a SoaS iso image file. The process parallels the compressed [[LiveOS image]] used on Live CD and Live USB installations. | |||
* (Taken from Dave Bauer's posting at http://schools.sugarlabs.org/mod/forum/discuss.php?d=27.) | * (Taken from Dave Bauer's posting at http://schools.sugarlabs.org/mod/forum/discuss.php?d=27.) | ||
* Updated 16 August 2010 with [http://www.virtualbox.org/wiki/Downloads VirtualBox 3.2.8] and 32-bit Fedora. | * Updated 16 August 2010 with [http://www.virtualbox.org/wiki/Downloads VirtualBox 3.2.8] and 32-bit Fedora. | ||
==Installing SoaS .iso image== | |||
('''Note:''' The SoaS .iso distribution also contains an installer for full, uncompressed, hard disc images of Fedora with the Sugar graphical interface. See [[#Uncompressed, hard disc image|Uncompressed, hard disc image]] below for instructions.) | |||
===Installing SoaS .iso image=== | |||
# Create a new VM, choose a name, such as Mirabelle | # Create a new VM, choose a name, such as Mirabelle | ||
# Choose Linux for the Operating System and Version Fedora (use 64 bit, if available) | # Choose Linux for the Operating System and Version Fedora (use 64 bit, if available) | ||
| Line 26: | Line 29: | ||
# {{Code|quit}} | # {{Code|quit}} | ||
# {{Code|mke2fs /dev/sda1}} | # {{Code|mke2fs /dev/sda1}} | ||
# {{Code|/LiveOS/livecd-iso-to-disk --overlay-size-mb 1024 --home-size-mb 200 --delete-home --unencrypted-home /dev/ | # {{Code|/LiveOS/livecd-iso-to-disk --overlay-size-mb 1024 --home-size-mb 200 --delete-home --unencrypted-home /dev/sr0 /dev/sda1}}<br>(for earlier versions of SoaS | ||
#: Blueberry - use /media/soas-2-blueberry/LiveOS/livecd-iso-to-disk<br>Strawberry - use /mnt/live/LiveOS/livecd-iso-to-disk) | #: Blueberry - use /media/soas-2-blueberry/LiveOS/livecd-iso-to-disk<br>Strawberry - use /mnt/live/LiveOS/livecd-iso-to-disk) | ||
<ul> | <ul> | ||
| Line 211: | Line 214: | ||
Processing delta metadata | Processing delta metadata | ||
Package(s) data still to download: 40 M | Package(s) data still to download: 40 M | ||
(1/13): cloog-ppl-0.15.7-1.fc12.i686.rpm | 81 kB 00:06 | (1/13): cloog-ppl-0.15.7-1.fc12.i686.rpm | 81 kB 00:06 | ||
(2/13): cpp-4.4.4-10.fc13.i686.rpm | 3.4 MB 01:47 | (2/13): cpp-4.4.4-10.fc13.i686.rpm | 3.4 MB 01:47 | ||
(3/13): dkms-2.1.0.1-1.fc12.noarch.rpm | 95 kB 00:09 | (3/13): dkms-2.1.0.1-1.fc12.noarch.rpm | 95 kB 00:09 | ||
| Line 268: | Line 269: | ||
<li> {{Code|mount /dev/sr0 /mnt/cdrom/}} </li> | <li> {{Code|mount /dev/sr0 /mnt/cdrom/}} </li> | ||
<li> {{Code|cd /mnt/cdrom/}} </li> | <li> {{Code|cd /mnt/cdrom/}} </li> | ||
<li> {{Code|./VBoxLinuxAdditions-x86.run}}<br> | <li> {{Code|./VBoxLinuxAdditions-x86.run}}<br><br> | ||
* {{Code|dmsetup status}} | You may check the consumption status of the overlay by executing, | ||
* {{Code|dmsetup status}} <br> | |||
: reveals that 953440/2097152 (512-byte sectors) or 448 MB of the 1024 MB overlay file has been consumed by the installation process | |||
* If upgrading from one VirtualBox version to another, start with fresh virtual disks and machines built with the new versions to avoid breakage.<br> | * If upgrading from one VirtualBox version to another, start with fresh virtual disks and machines built with the new versions to avoid breakage.<br> | ||
</li> | </li> | ||
<li> reboot < | <li> {{Code|reboot}} <br> | ||
{{Show|<Terminal log:> | {{Show|<Terminal log:> | ||
|<pre> | |<pre> | ||
| Line 302: | Line 304: | ||
live-osimg-min: 0 8388608 snapshot 2344/2344 24 | live-osimg-min: 0 8388608 snapshot 2344/2344 24 | ||
live-rw: 0 8388608 snapshot 953440/2097152 3720 | live-rw: 0 8388608 snapshot 953440/2097152 3720 | ||
</pre>}} | </pre>}}</li> | ||
</ol> | |||
<!-- | <!-- | ||
* Note that you will need to have the same kernel version as you have kernel-headers and kernel-devel | * Note that you will need to have the same kernel version as you have kernel-headers and kernel-devel | ||
| Line 314: | Line 317: | ||
Thanks! for this information. update kernel consumed 203280/1048576 of the overlay and install kernel-headers kernel-devel dkms gcc raised consumption to 1047112/1048576 leading to failure of the ./VBoxLinuxAdditions-x86.run --> | Thanks! for this information. update kernel consumed 203280/1048576 of the overlay and install kernel-headers kernel-devel dkms gcc raised consumption to 1047112/1048576 leading to failure of the ./VBoxLinuxAdditions-x86.run --> | ||
==Configure Screen== | |||
If you want to match the 16 bpp XO screen and a particular display size, you may | If you want to match the 16 bpp XO screen and a particular display size, you may | ||
# Edit /etc/X11/xorg.conf to match the following section: | # Edit /etc/X11/xorg.conf to match the following section: | ||
| Line 364: | Line 367: | ||
==SSH connections== | ==SSH connections== | ||
To enable SSH communications, we need to permit no passwords in the ssh daemon configuration: | To enable SSH communications, we need to permit no passwords (to match the default Sugar configuration) in the ssh daemon configuration: | ||
# in Terminal, | # in Terminal, | ||
| Line 372: | Line 375: | ||
## :wq <Enter> | ## :wq <Enter> | ||
# service sshd restart | # service sshd restart | ||
One may also supply a password for the root user: | |||
# su - | |||
# passwd | |||
#: Changing password for user root.<br>New password:<br>Retype new password:<br>passwd: all authentication tokens updated successfully. | |||
==Uncompressed, hard disc image== | |||
:'''Start VirtualBox (version 3.2.10 used here).''' | |||
#Click NEW "Welcome to New Virtual Machine Wizard" | |||
#<Next> fill out: Name (soas-i386-20101025) ; Operating system(Linux); Version (Fedora) | |||
#<Next> Base Memory Size | |||
#<Next> Create new hard disk | |||
#<Next> Storage Type (Dynamically expanding storage) | |||
#<Next> Size (8.00 GB) | |||
#<Finish> | |||
:'''Back on main Oracle VM VirtualBox screen''' | |||
#Settings/Storage (CD Image0)CD/DVD Device: (Select your CD Host Drive-(sr0) with CD inserted | |||
#<OK> | |||
:'''Start''' | |||
::SoaS will boot and run Sugar SoaS | |||
::Enter Name color | |||
::Enter Password ONE TIME then cancel next 6 times | |||
::Start Sugar-Terminal | |||
su | |||
liveinst | |||
:(Anaconda starts) Do normal HD install: Basic Storage Devices/ Reinitalize all/Host/TZ/Root Password/Use all Space/ Write Changes to Disk/ Install works to Completion. | |||
:: "Congratulations, your Fedora Installation is complete" <Close> Quit sugar-terminal; Shutdown. | |||
:'''Back on main Oracle VM VirtualBox screen''' | |||
===Firstboot of new Virtual Machine=== | |||
::Settings/Storage; Host Drive: change to empty (You can also change boot order in Systems, if needed.) | |||
:'''Start''' HD goes to firstboot (Answer questions); then to gdm login, then to Sugar. Click to Change Color_____ (hit <Back> to change name) | |||
===Export your Appliance=== | |||
:File/Export Appliance (select soas-i386-20101025)<next> fill in Settings if you want to; <next> Export settings <Finish> | |||
'''Congratulations, you have just created an importable/exportable appliance.''' | |||