VirtualBox/Preparing a disk image: Difference between revisions

No edit summary
No edit summary
Line 24: Line 24:
# quit
# quit
# umount /dev/sda1  -- (not required with soas-2-blueberry.iso)
# umount /dev/sda1  -- (not required with soas-2-blueberry.iso)
# /media/soas-2-blueberry/LiveOS/livecd-iso-to-disk --overlay-size-mb 300 --home-size-mb 160 --unencrypted-home --delete-home /dev/sr0 /dev/sda1
# /media/soas-2-blueberry/LiveOS/livecd-iso-to-disk --overlay-size-mb 400 /dev/sr0 /dev/sda1
#: (for earlier versions of SoaS, like Strawberry, use /mnt/live/LiveOS/livecd-iso-to-disk ...<br>soas05.iso carries an incompatible version of livecd-iso-to-disk, see [http://bugs.launchpad.net/soas/+bug/417415 this bug report].)
#: (for earlier versions of SoaS, like Strawberry, use /mnt/live/LiveOS/livecd-iso-to-disk ...<br>soas05.iso carries an incompatible version of livecd-iso-to-disk, see [http://bugs.launchpad.net/soas/+bug/417415 this bug report].)
#* the --overlay-size-mb NNN option creates space for persistence of changes on the disk; otherwise, a liveOS disk is read-only.
#* the --overlay-size-mb NNN option creates space for persistence of changes on the disk; otherwise, a liveOS disk is read-only.
#: <br>The following optional parameters seem to be incompatible with soas-1-strawberry and soas-2-blueberry released versions.  (The script completes successfully, but the virtual machine startup process has trouble finding the home directory and fails to complete.)
#* the --home-size-mb NNN option creates space for saving the /home/liveuser folder if you want to update the OS image while keeping the user files.  (In this case, skip the new disk creation and parted steps and leave out the --home-size-mb NNN option at this step and continue on.)
#* the --home-size-mb NNN option creates space for saving the /home/liveuser folder if you want to update the OS image while keeping the user files.  (In this case, skip the new disk creation and parted steps and leave out the --home-size-mb NNN option at this step and continue on.)
#* the --unencrypted-home option prevents password protection and encryption on the /home/liveuser folder. This releaves the overhead on the compressed squashfs and should be more robust to file system failures (outside of security).
#* the --unencrypted-home option prevents password protection and encryption on the /home/liveuser folder. This releaves the overhead on the compressed squashfs and should be more robust to file system failures (outside of security).
Line 35: Line 36:
# Mount VBoxGuestAdditions.iso in its place.
# Mount VBoxGuestAdditions.iso in its place.
# Boot VM
# Boot VM
#* (Fails for soas-2-blueberry.iso, cycling between a character mode and graphics mode screen.)
# Open Terminal
# Open Terminal
# su -
# su -
# yum install dkms gcc make ppl binutils glibc-devel glibc-headers kernel-headers kernel-devel
# yum install dkms gcc make  
#: (Other dependencies will be called into the installation.)
yum.log:
yum.log:
  Apr 27 21:42:42 Updated: libgcc-4.4.0-1.i586
  Apr 27 21:42:42 Updated: libgcc-4.4.0-1.i586