|
Quick Demo: Basics |
Download and Initialization
- First download the most recent sbuml-core-* file from the SourceForge download page: SBUML Core Package
- Extract the contents of this file with tar:
$ tar xzvf sbuml-core-2423-2um-1sb-060904b.tar.gz
- Change into the sbumldemo directory:
$ cd sbumldemo
- Initialize SBUML:
$ ./sbumlinitdemo
|
Booting, Hibernation, & Resuming
Note: If there is any problem during any of the demos, issuing the sbuml--kill-all-xterm-linux command will kill all SBUML/UML related processes and clean out all the SBUML machine state. Usually, this command is unnecessary.
- Boot a new machine:
[(sbumldemo subshell) sbumldemo]$ sbumlboot m1
Toms filesystem should boot within 10 seconds or so and show the login prompt.
- Hibernate the machine:
[(sbumldemo subshell) sbumldemo]$ sbumlhibernate m1
- Resume the machine from hibernation:
[(sbumldemo subshell) sbumldemo]$ sbumlresume m1
- Press return and the resumed machine should display another login prompt.
|
Saving and Restoring Snapshots
- Login the machine with user name root and password root.
- Create a new file in the machine:
# echo This is a test >new-file
- Save a snapshot and give it the name snap1:
[(sbumldemo subshell) sbumldemo]$ sbumlsave m1 snap1 -f -c
(-f means freeze the machine before saving, -c means continue execution after saving)
- Restore the snapshot to a new machine m2:
[(sbumldemo subshell) sbumldemo]$ sbumlrestore m2 snap1 -c
- Check to see if the new machine contains the same state:
# cat new-file
|
Removing and Halting Machines
- Remove m2 and all of its state:
[(sbumldemo subshell) sbumldemo]$ sbumlremove m2
- Halt m1, keeping its disk state:
# halt
Note: init 0 will work too, as will shutdown -h, but reboot and shutdown -r will not.
- Reboot m1:
[(sbumldemo subshell) sbumldemo]$ sbumlreboot m1
- Check to see if the rebooted machine contains the same state:
# cat new-file
|
Uninstalling SBUML (optional!)
- Just exit the subshell and remove the whole directory subtree:
[(sbumldemo subshell) sbumldemo]$ exit
$ cd ..
$ rm sbumldemo -fr
|
|
|