VirtualBox/Preparing a disk image: Difference between revisions

No edit summary
No edit summary
Line 14: Line 14:
# Change the Network Attached to: Bridged Adapter  (This allows for networking with the host computer.)
# Change the Network Attached to: Bridged Adapter  (This allows for networking with the host computer.)
# Start the VM
# Start the VM
# Type you name and startup Sugar.
# Enter an account name and startup Sugar.
# Open Terminal.
# Open Terminal.
# su -
# su -
# parted /dev/sda
# parted /dev/sda
# mklabel msdos -- make partition table
# mklabel msdos -- make partition table
# mkpartfs primary ext2 0 2048
# mkpart primary ext2 0 2048
# toggle 1 boot
# toggle 1 boot
# quit
# quit
# umount /dev/sda1 -- (not required with soas-2-blueberry.iso)
# mke2fs /dev/sda1
# /media/soas-2-blueberry/LiveOS/livecd-iso-to-disk --overlay-size-mb 400 /dev/sr0 /dev/sda1
# /LiveOS/livecd-iso-to-disk --overlay-size-mb 200 --home-size-mb 200 --delete-home --unencrypted-home /dev/live /dev/sda1<br>(for earlier versions of SoaS
#: (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].)
#: Blueberry - use /media/soas-2-blueberry/LiveOS/livecd-iso-to-disk<br>Strawberry - use /mnt/live/LiveOS/livecd-iso-to-disk)
#* 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 and --home-size-mb NNN options creates space for persistence of changes on the disk; otherwise, a liveOS disk is read-only. See [[LiveOS image]].
#: <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.)
#: <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.)