VirtualBox/Preparing a disk image: Difference between revisions
No edit summary |
No edit summary |
||
| Line 21: | Line 21: | ||
# toggle 1 boot | # toggle 1 boot | ||
# quit | # quit | ||
# /mnt/live/LiveOS/livecd-iso-to-disk --overlay-size-mb 256 | # umount /dev/sda1 -- F-11 auto mounts the disk, so unmount it for the next script | ||
# /mnt/live/LiveOS/livecd-iso-to-disk --overlay-size-mb 256 --home-size-mb 256 /dev/sr0 /dev/sda1 | |||
#* 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. <s>(This option causes login problems on VirtualBox with the liveuser account and should be skipped for now.)</s> | ||
# shutdown -h now | # shutdown -h now | ||
# Unmount CDROM in Vbox config | # Unmount CDROM in Vbox config | ||
| Line 30: | Line 31: | ||
# su - | # su - | ||
# yum install dkms gcc make ppl binutils glibc-devel glibc-headers kernel-headers kernel-devel | # yum install dkms gcc make ppl binutils glibc-devel glibc-headers kernel-headers kernel-devel | ||
Soas2-20090325 (Fedora 10.92) fails on VirtualBox at this point for lack of disk expansion. See {{Trac|633|this bug report}}. | |||
# go to VirtualBox Devices Menu->Install Guest Additions | # go to VirtualBox Devices Menu->Install Guest Additions | ||
# mkdir /mnt/cdrom | # mkdir /mnt/cdrom | ||
| Line 86: | Line 88: | ||
## click the apply action button, approve change | ## click the apply action button, approve change | ||
## File>Quit | ## File>Quit | ||
# | # pico /etc/ssh/sshd_config | ||
## [add] PermitEmptyPasswords yes | ## [add] PermitEmptyPasswords yes | ||
## ^O (WriteOut), <Enter> on File Name to Write: /etc/ssh/sshd_config , ^X (Exit) | ## ^O (WriteOut), <Enter> on File Name to Write: /etc/ssh/sshd_config , ^X (Exit) | ||
# chkconfig --level 345 sshd on | # chkconfig --level 345 sshd on | ||
# service sshd start | # service sshd start | ||