VirtualBox/Preparing a disk image: Difference between revisions

No edit summary
No edit summary
Line 1: Line 1:
<noinclude>{{GoogleTrans-en}}{{TOCright}}</noinclude>
<noinclude>{{TOCright}}</noinclude>


Instructions for preparing a VirtualBox disk image from a SoaS iso image file.
Instructions for preparing a VirtualBox disk image from a SoaS iso image file.
Line 9: Line 9:
# Create a new disk image, 2GB
# Create a new disk image, 2GB
# Finish.
# Finish.
# Download the lastest SoaS, http://download.sugarlabs.org/soas/snapshots/2/?C=M;O=D, for Fedora-11-beta.
# Download the lastest SoaS, http://download.sugarlabs.org/soas/snapshots/2/?C=M;O=D, for Fedora-12.
# Mount SoaS ISO as a CD-ROM in the newly created VM.
# Mount SoaS ISO as a CD-ROM in the newly created VM.
# Change Network Adapter to Intel Pro/1000 MT Desktop (82540EM)
# Change Network Adapter to Intel Pro/1000 MT Desktop (82540EM)
Line 23: Line 23:
# toggle 1 boot
# toggle 1 boot
# quit
# quit
# umount /dev/sda1  -- Soas2-200905241902.iso auto mounts the disk, so unmount it for the next script
# umount /dev/sda1  -- (not required with soas06.iso)
# /mnt/live/LiveOS/livecd-iso-to-disk --overlay-size-mb 300 --home-size-mb 160 --unencrypted-home --delete-home /dev/sr0 /dev/sda1
# /media/soas06/LiveOS/livecd-iso-to-disk --overlay-size-mb 300 --home-size-mb 160 --unencrypted-home --delete-home /dev/sr0 /dev/sda1
#: (for earlier versions of SoaS, 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 option creates space for persistence of changes on the disk; otherwise, a liveOS disk is read-only.
#* 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.)
Line 31: Line 32:
# shutdown -h now
# shutdown -h now
==Installing VirtualBox Guest Additions==
==Installing VirtualBox Guest Additions==
# Unmount CDROM in Vbox config
# Unmount CDROM in VirtualBox settings
# Mount VBoxGuestAdditions.iso in its place.
# Boot VM
# Boot VM
#* (Fails for soas06.iso, cycling between to two screen resolution modes.)
# Open Terminal
# Open Terminal
# su -
# su -