Line 1: |
Line 1: |
− | <noinclude>{{GoogleTrans-en}}{{TOCright}}</noinclude> | + | <noinclude>[[Category:Virtual machine or platform emulator]]</noinclude> |
− | [[wikipedia:VMware|VMware]] (Workstation, Player, Server) is a commercial virtualization system that emulates hardware resources allowing one computer to host a number of x86 architecture-compatible operating systems. The Player and Server versions are distributed free of charge (gratis). It runs on either Win32 or Linux host machines, allowing one to run Sugar images within the virtual machine. A Mac version is also available, VMWare Fusion, however this is not provided free of charge. A free 30-day evaluation is available, and free licenses are [http://www.vmware.com/partners/academic/ available] for academic instruction and research use. | + | [[wikipedia:VMware|'''VMware''']] (Workstation, Player, Server) is a commercial, "non-free", virtualization system that emulates hardware resources allowing one computer to host a number of x86 architecture-compatible operating systems. The Player and Server versions are distributed free of charge (gratis). It runs on either Win32 or Linux host machines, allowing one to run Sugar images within the virtual machine. A Mac version is also available, VMware Fusion, however this is not provided free of charge. A free, 30-day evaluation is available, and free licenses are [http://www.vmware.com/partners/academic/ available] for academic instruction and research use. |
| | | |
− | Software applications, such as the Sugar platform, may be deployed as VMware Virtual Appliances, which are one or more virtual machines pre-built, packaged, installed, updated, maintained, and managed as a unit. | + | Software applications, such as the Sugar platform, may be deployed as VMware Virtual Appliances, which are one or more virtual machines pre-built, packaged, installed, updated, maintained, and managed as a unit. |
| | | |
− | ==Pre-built SUGAR appliances== | + | ==Appliance files== |
− | * KDE4 with Soas-strawberry Appliance
| + | See '''[[Emulator image files]]'''. |
− | * Fedora 11-Sugar-EDU-spin Appliance
| |
− | * sugarVM.zip (sugar only Appliance
| |
− | * Fedora11EDUspin_XFCE
| |
− | and others (look at READ ME files for each Appliance first) [http://people.sugarlabs.org/Tgillard/]
| |
| | | |
− | *openSUSE-EDU-sugar-vmx files: [http://education.opensuse.org/download/ISOs/]
| + | =====[http://www.easyvmx.com/easyvmx.shtml EasyVMX!] (build your own VMware virtual machine for VMware Player)===== |
− |
| + | : Lets you bypass the requirement to have a copy of VMware Workstation to create your own VMware Player appliance from a burned CD of a live .iso |
− | ====Minimum 4-GB USB/SD required==== | + | :: Free website to download a custom .vmx file to use with your CD Drive |
| + | :: (You must have the free application, VMware Player installed to use it.) |
| | | |
− | * Start right up after decompression of .zip files | + | * Web Page:-[http://www.easyvmx.com/easyvmx.shtml] Info:[http://www.virtualization.info/2005/12/guide-to-create-vmx-files-for-vmware.html] |
− | * Using VMware Player (free download)
| |
| | | |
− | *please test these applications | + | *openSUSE-edu: |
| + | :'''NEW''' : [[OpenSUSE#openSUSE_12.2-sugar_0.96.2]] --[[User:Satellit|Satellit]] 08:07, 10 September 2012 (EDT) |
| + | :Old : http://sourceforge.net/projects/opensuse-edu/files/Sugar/ |
| | | |
| ==Building a virtual appliance== | | ==Building a virtual appliance== |
− | ===from a live.iso file (No Persistence)=== | + | ====from a live.iso file (No persistence)==== |
| + | This appliance runs just like a bootable CD—it has no data persistence—the system image is treated as a read-only file. (You are running the .iso image with VMware Player.) The appliance file size is only slightly larger than the .iso file. |
| + | |
| * Make a new Appliance in VMware Workstation ([http://www.vmware.com/products/ws/ 30-day, free evaluation license]) with (minimal) hard disk. | | * Make a new Appliance in VMware Workstation ([http://www.vmware.com/products/ws/ 30-day, free evaluation license]) with (minimal) hard disk. |
| * Set XXX-live.iso as CD in VMware Workstation with a 0.1 GB hard disk. | | * Set XXX-live.iso as CD in VMware Workstation with a 0.1 GB hard disk. |
Line 29: |
Line 29: |
| * Open this copied Appliance on the USB drive with VMware Workstation, and edit the location of the live.iso file to point to one on the USB stick, then close it. | | * Open this copied Appliance on the USB drive with VMware Workstation, and edit the location of the live.iso file to point to one on the USB stick, then close it. |
| * Start VMware Player ([http://www.vmware.com/products/player/ free downwload]) and open this Appliance from the USB drive, or ''any other VMware Player on any PC''. | | * Start VMware Player ([http://www.vmware.com/products/player/ free downwload]) and open this Appliance from the USB drive, or ''any other VMware Player on any PC''. |
− | *: this appliance is just like a boot CD—it has no persistence—the system image is treated as a read-only file. (You are running the .iso image with VMware Player.) The appliance file size is only slightly larger than the .iso file.
| + | |
| | | |
| '''Boot this Appliance from a USB boot drive/stick (see below)''' | | '''Boot this Appliance from a USB boot drive/stick (see below)''' |
Line 36: |
Line 36: |
| * Run Sugar on unbootable PC's using a VMware Player application | | * Run Sugar on unbootable PC's using a VMware Player application |
| | | |
− | ===Appliances with Persistence=== | + | ====Appliances with persistence==== |
| * VMware Workstation 6.5.2 with Fedora-11-i386-netinst.iso | | * VMware Workstation 6.5.2 with Fedora-11-i386-netinst.iso |
| http://mirrors.fedoraproject.org/publiclist/Fedora/11/i386/ | | http://mirrors.fedoraproject.org/publiclist/Fedora/11/i386/ |
− | http://fedora.osuosl.org/linux/releases/11/Fedora/i386/iso/
| |
| Fedora 11 DVD does not include Sugar Desktop | | Fedora 11 DVD does not include Sugar Desktop |
| * Settings for VMware Workstation: | | * Settings for VMware Workstation: |
Line 68: |
Line 67: |
| :# shutdown -h now | | :# shutdown -h now |
| | | |
− | ===Alternatives=== | + | ====Alternatives==== |
− | * Fedora 11 Sugar Spin :http://spins.fedoraproject.org/torrents//F11-Preview-i686-Live-Edu.torrent see Fedora 11 below | + | * Fedora-edu spin-(latest versions of F12(rawhide) Gnome & Sugar) [http://spins.fedoraproject.org/edu/] |
− | * SUSE Sugar Spin:(see section below) | + | (enter liveinst in terminal to install to VMworkstation disks or USB) |
− | * Soas2 .iso installed to a VM Hard disk see (F11 below)
| + | * SUSE Sugar Spin: [[Talk:VMware#openSUSE]] |
| + | * EasyVMX! (build your own VMware virtual machine for VMware Player)-[http://www.easyvmx.com/easyvmx.shtml] info:[http://www.virtualization.info/2005/12/guide-to-create-vmx-files-for-vmware.html] |
| | | |
− | ===Comments=== | + | ====Comments==== |
− | * Run on free VMplayer loaded on any PC with 512 kB of memory (256 kB required for VMplayer). | + | * Run on VMware Player loaded on any PC with 512 kB of memory (256 kB required for VMware Player). |
− | * ADVANTAGE: No need to boot USB stick on problem machines. | + | * ADVANTAGE: No need to boot USB stick on computers that have a problem booting from a USB device. |
− | * Same machine can be used by a succession of students with their own copy of Sugar. | + | * The same computer can be used by a succession of students with their own copy of Sugar. |
| * Students can take USB/SD drives home and run them on their own PCs. | | * Students can take USB/SD drives home and run them on their own PCs. |
− | * Disadvantage: Have to install VMplayer on PCs | + | * Disadvantage: Have to install VMware Player on PCs |
− | :Two virtual machines on different PCs, each running NAT on same network, seem to cause "collisions" in jabber (Neighborhood View gets depopulated on both ???). | + | ====More Info==== |
− | * Logon screen allows user to switch session types:
| + | # Other Methods:http://www.pendrivelinux.com/category/virtual-machine/ |
− | ** KDE
| |
− | ** Sugar
| |
− | ** Failsafe
| |
| | | |
− | ==Two stick alternative== | + | ===Two stick alternative=== |
| * Install VMware Player on a 2-GiB USB/SD boot stick | | * Install VMware Player on a 2-GiB USB/SD boot stick |
| * Install the Sugar platform in a virtual appliance on a second 4-GiB or larger stick. | | * Install the Sugar platform in a virtual appliance on a second 4-GiB or larger stick. |
Line 91: |
Line 88: |
| '''This allows VMware Player to be used by multiple students without rebooting the PC.''' | | '''This allows VMware Player to be used by multiple students without rebooting the PC.''' |
| | | |
− | ==One 8-GiB stick with 2 partitions== | + | ===One 8-GiB stick with 2 partitions=== |
| Ubuntu 9.04 has a "USB Startup Disk Creator". I used a 8-GiB USB stick with 2 partitions to run a VMware Player Appliance on the Same Stick | | Ubuntu 9.04 has a "USB Startup Disk Creator". I used a 8-GiB USB stick with 2 partitions to run a VMware Player Appliance on the Same Stick |
| VMware Player WILL install on Ubuntu or Fedora 10, but NOT on F11 at this time. | | VMware Player WILL install on Ubuntu or Fedora 10, but NOT on F11 at this time. |
Line 97: |
Line 94: |
| * In PC running Ubuntu 9.04 (or running in VMware Workstation 6.5.2.) | | * In PC running Ubuntu 9.04 (or running in VMware Workstation 6.5.2.) |
| | | |
− | ===Start partition manager=== | + | ====Start partition manager==== |
| * Delete existing partitions on USB [/dev/sdb?] | | * Delete existing partitions on USB [/dev/sdb?] |
| *: (BE CAREFUL TO BE LOOKING AT the USB drive and not your Hard Disk.) | | *: (BE CAREFUL TO BE LOOKING AT the USB drive and not your Hard Disk.) |
Line 110: |
Line 107: |
| * Create a FAT32 primary partition with the remaining, unformatted space on the USB drive, set boot flag, and label VM_Apps | | * Create a FAT32 primary partition with the remaining, unformatted space on the USB drive, set boot flag, and label VM_Apps |
| * Exit Partition Manager | | * Exit Partition Manager |
− | ===Remove and reinstall USB stick=== | + | ====Remove and reinstall USB stick==== |
| * Two USB icons will appear | | * Two USB icons will appear |
| * Copy VM Appliance into VM_Apps | | * Copy VM Appliance into VM_Apps |
| | | |
− | ===Re-boot PC with USB stick=== | + | ====Re-boot PC with USB stick==== |
− | * Start Firefox and download VMplayer (free) Linux xxxx.bundle | + | * Start Firefox and download VMware Player Linux xxxx.bundle |
| * Place .bundle file in /tmp | | * Place .bundle file in /tmp |
| * su - command in /tmp | | * su - command in /tmp |
| * Enter password for root | | * Enter password for root |
| * Install bundle in /tmp ( ./ command as administrator. ) | | * Install bundle in /tmp ( ./ command as administrator. ) |
− | ===Run VMware Player=== | + | ====Run VMware Player==== |
| * Start VMware Player | | * Start VMware Player |
| * Choose VM_apps Icon and open VM Appliance file | | * Choose VM_apps Icon and open VM Appliance file |
Line 130: |
Line 127: |
| * It is complicated to make, but simple to use and it works. | | * It is complicated to make, but simple to use and it works. |
| | | |
− | ==Host operating systems== | + | ===Operating system notes=== |
− | ===Windows XP SP2===
| |
− | Loads and runs VMware virtual machine in Windows XP SP2 {tested on a Dell 2350 Tower and EeePC1000 }
| |
− | | |
− | Appliance (packaged virtual machine) runs from USB Stick & Hard Disk on VMPlayer or VMWorkstation
| |
− | | |
− | === Ubuntu 8.04 and 9.04 ===
| |
− | VMware Workstation 6.5.2 can make virtual machine image files in Ubuntu. VMware Player will run these virtual appliances. The appliance can be distributed by copying to a DVD or a 4-GiB SD or USB drive or by downloading prebuilt VMPlayer Appliances from Sugar Labs [[http://people.sugarlabs.org/Tgillard/]] or other server.
| |
− | | |
− | ===Fedora 11===
| |
− | VMware Player will not load in Fedora 11 beta or Fedora Preview loaded with shell command; One gets "Unable to modify kernel" error and quits.
| |
− | ====Soas-Strawberry.iso====
| |
− | '''installed to VM Hard Disk'''
| |
− | adapted from:
| |
− | http://co.sugarlabs.org/go/Sugar_en_CM
| |
− | http://wiki.sugarlabs.org/go/VMWare/Preparing_a_disk_image
| |
− | *VMware Workstation 6.5.2
| |
− | *Linux Redhat 5 8GB in 2GB
| |
− | *Soas .iso as CD (I used Soas-Strawberry.iso for this install)
| |
− | *1024 memory
| |
− | *Bridged Networking
| |
− | *start VM
| |
− | *select SUGAR name and color
| |
− | *start SUGAR terminal:
| |
− | su -
| |
− | yum install anaconda
| |
− | enter command: liveinst
| |
− | (enter language, time, location root pswd)
| |
− | /dev/sda1
| |
− | custom
| |
− | /dev/sda1 ext3 / balance remaining
| |
− | {Installer will reformat drive;install bootloader; transfer files}
| |
− | *IMPORTANT must shutdown and restart to get out of live user and start on 8GB HD as root or run out of space for the following:
| |
− | (Do normal Installation, shutdown and change VM CD to use physical drive-autoselect.)
| |
− | *Power On Virtual Machine
| |
− | *configuration setup
| |
− | *log in as root (with password entered in installation)
| |
− | yum install @kde-desktop
| |
− | yum install sugar-emulator
| |
− | yum install system-switch-displaymanager
| |
− | *StartX
| |
− | *Go to User manager and enter new user
| |
− | *edit /etc/initab id:3 to id:5 (to get graphic login)
| |
− | *Log out of root and log in as New User
| |
− | *Add sugar to KDE Menu in Education {command: sugar-emulator}
| |
− | *Start sugar-emulator and log in with sugar user name and color
| |
− | *HAVE FUN
| |
− | with gnome-desktop I was unable to install gdm due to plymouth dependency errors
| |
− | SUGAR Installed this way in a VM Appliance Works in this initial attempt but needs some more work-
| |
− | Please add to this if you have a better solution.
| |
− | This VM Application can be cloned in VMware Workstation and copied to a USB stick and run with VMware Player.
| |
− | * UNTESTED: This same procedure should work for a normal HARD DISK INSTALL
| |
− | ====Soa3-20090807.iso PRELIMINARY INSTALL FOR TESTING ONLY====
| |
− | Download link: [http://download.sugarlabs.org/soas/snapshots/3/]
| |
− | # Method used for this Install to Hard disk:
| |
− | *(#sugar from session on 08/08/2009 with <sdziallas>)
| |
− | *'''<<In sugar terminal as root>>'''
| |
− | * yum install gparted
| |
− | * yum install wget
| |
− | * wget http://www.filteredperception.org/downloads/TESTING/zyx-liveinstaller-0.1.10-1.i386.rpm
| |
− | * rpm -Uvh zyx-liveinstaller-0.1.10-1.i386.rpm
| |
− | * zyx-liveinstaller
| |
− | *'''Grapical Installer Starts'''
| |
− | * gparted
| |
− | *8GB unallocated
| |
− | *Make new partition (All of it;that just creates the partition scheme, you can create the partitions afterwards)
| |
− | =====Create new Partitions=====:
| |
− | * 1 GB ext3 for /boot
| |
− | * 4 GB ext3 for /
| |
− | * 1 GB swap
| |
− | (Partition #1 ext3 /boot 996.22 MiB/Partition #2 ext3 / 3.91 Gib/Partition #3 linux-swap 996.22)
| |
− | *cancel partitioner (hit X in Right top corner)
| |
− | *zyx-live installer behind in window
| |
− | *select the data and boot partitions and start install.
| |
− | | |
− | === Spin of Sugar on Fedora F11 preview live===
| |
− | http://spins.fedoraproject.org/torrents//F11-Preview-i686-Live-Edu.torrent
| |
− | * It works well as a boot CD or as a 4-GiB Appliance for VMware Player.
| |
− | * It contains version 0.84.2 Sugar and Xfce 4 Desktop with a KDE switcher.
| |
− | * It installs nicely in the normal manner.
| |
− | | |
− | * See the procedure above to make a VMplayer on a USB boot stick run the latest version of the Sugar platform in Fedora 11 as an Appliance.
| |
− | | |
− | ===Fedora 10===
| |
− | * VMplayer can be loaded in Fedora 10 and used to run a VMplayer Appliance of Sugar platform based on Fedora 11.
| |
− | * The Sugar platform included in Fedora 10 is not the current version.
| |
− | | |
− | ===openSUSE===
| |
− | | |
− | * http://en.opensuse.org/Sugar
| |
− | :(See: nubae and cyberorg on #irc #sugar #opensuse-edu for details.)
| |
− | | |
− | SUSE is building and hosting appliances at these sites for downloading.
| |
− | | |
− | =====Live CD=====
| |
− | '''with a very large number (~50) of activities'''
| |
− | * http://education.opensuse.org/download/ISOs/
| |
− | * http://download.opensuse.org/repositories/Education/images/iso/
| |
− | * Newest versions of live .iso can be installed to USB/SD with dd command:
| |
− | dd if=openSUSE-Sugar-live-unstable.i686-0.2.0-Build5.1.iso of=/dev/sd(x)* bs=4k
| |
− | 104704+0 records in
| |
− | 104704+0 records out
| |
− | 428867584 bytes (429 MB) copied, 34.6956 s, 12.4 MB/s
| |
− | * be careful to use correct device or you can wipe your hard disk!
| |
− | ======Installation to hard disk======
| |
− | Sugar terminal:
| |
− | :<code>su -
| |
− | : yast2 live-installer
| |
− | </code>
| |
− | | |
− | ======add user======
| |
− | :<code> yast2 users
| |
− | </code>
| |
− | | |
− | ======change networking======
| |
− | :<code> yast2 lan
| |
− | </code>
| |
− | ======wireless networking======
| |
− | :<code> yast2 lan
| |
− | </code>
| |
− | | |
− | * su -
| |
− | * yast2 lan
| |
− | * need to switch networking out of network manager; edit and add wireless wlan wireless wlan0; and enter info on encrypted or open, and if WEP, SSID plus WEP Key information.
| |
− | * select wired interface>edit>general>activate device>never
| |
− | * ok
| |
− | * yast2 lan (2nd time) select manage with Network Manager
| |
− | * ok
| |
− | * Reboot USB/SD
| |
− | * Go to drop down box on network and delete network history. Be sure to have radio box checked.
| |
− | * Reboot again, On F1 neighborhood should see circles for wireless network connections.
| |
− | * Mouse over the one you want to use and enter passwords if requested on drop down box
| |
− | * On reboot, to get wireless connection to connect, you may have to enter the following in terminal:
| |
− | su -
| |
− | rcnetwork restart
| |
− | | |
− | ====Mult-User Sugar Appliance====
| |
− | * yast2 users
| |
− | * Add User ie: Student1, student2
| |
− | * advanced>autologon no password (if you want no passwords )
| |
− | * yast2 lan
| |
− | * disconnect network manager
| |
− | * configure interface
| |
− | * restart
| |
− | To switch users (Students) log out from Sugar and you are presented
| |
− | with a list of users to connect to.
| |
− | | |
− | ====Prebuilt Sugar Appliance====
| |
− | http://education.opensuse.org/download/ISOs/ (in .zip .vmx and.tar.bz2 formats)
| |
− | | |
− | http://download.opensuse.org/repositories/Education/images/ (.raw format for USB Sticks)
| |
− | * Run on VMware Player or VirtualBox after decompressing.
| |
− | | |
− | =====Instructions=====
| |
− | '''Important, for all openSUSE Appliances:'''
| |
− | openSUSE-Sugar-0.1.0-Build2.26.1.vmx
| |
− | no password req to start
| |
− | Password(root)=sugaruser
| |
− | ====================================
| |
− | To reset SUGAR ENTIY:
| |
− | (Clear out name, color, and Sugar Journal contents)
| |
− | <sugar terminal>
| |
− | rm -rf ~/.sugar
| |
− | su -
| |
− | password:sugaruser
| |
− | shutdown -h now
| |
− | restart sugar
| |
− |
| |
− | INSTRUCTIONS ***VERY IMPORTANT!***
| |
− | ======================================
| |
− | when you open this VM Appliance with VMPlayer for first time:
| |
− | use "I moved it"
| |
− | NO NOT click "I Copied it"
| |
− | Doing so generates a 2nd MAC id for the network card and leaves it as eth0
| |
− | not configured (It will not work)
| |
− | clearing the /.sugar entity (see above) does not affect Mac address
| |
− | Nor does changing the color or name on the sugar control panel.
| |
− |
| |
− | ***** ALSO Do the following Right away after opening sugar for the first time:*****
| |
− | *<sugar terminal>
| |
− | su -
| |
− | Password:xxx (see above)
| |
− | yast2 sysconfig
| |
− | System>Sysconfig>Enable Sysconfig>(NO)
| |
− | (this locks out network reconfig)
| |
− | exit, shutdown, restart
| |
− | **(This seems to stop the autoconfiguration of openSUSE on restart)**
| |
− | ---------------------------------------
| |
− | IF F1 Neighborhood is not connecting:
| |
− | | |
− | Try this First to start Network Manager:
| |
− | *<sugar terminal>
| |
− | su -
| |
− | password:xxx
| |
− | rcnetwork restart
| |
− | =============
| |
− | NETWORKING FIX:
| |
− | (Networking Fix for loss of F1 Neighborhood:)
| |
− | <sugar terminal>
| |
− | su-
| |
− | Password:xxx (see above)
| |
− | yast2 lan
| |
− | switch to non-Network Manager control
| |
− | Delete other network cards
| |
− | configure DHCP 4 with hardware and eth0
| |
− | exit
| |
− |
| |
− | once you get networking to work;
| |
− | *<sugar terminal>
| |
− | su -
| |
− | Password:xxx (see above)
| |
− | yast2 lan
| |
− | select Network Manager
| |
− | exit
| |
− | (change to network manager for wireless configration)
| |
− | then:
| |
− | *<sugar terminal>
| |
− | su -
| |
− | Password:xxx (see above)
| |
− | yast2 sysconfig
| |
− | System>Sysconfig>Enable Sysconfig>(NO)
| |
− | (this locks out network reconfig)
| |
− | exit, shutdown, restart
| |
− | | |
− | ====Image USB/SD Drives====
| |
− | * Details on how to use uncompresses raw file: http://en.opensuse.org/Disc_image_howtos
| |
− | Latest .raw file: http://download.opensuse.org/repositories/Education/images/
| |
− | * Extract raw file
| |
− | : Unmount the USB first, then from terminal:
| |
− | <code>sudo dd if=/home/suse/"myappliance".raw of=/dev/sdb bs=4k</code>
| |
− | ===== Typical Imaging Session=====
| |
− | With raw file on ~/Desktop (BE CERTAIN your USB is sdb (the volume ID). (DO NOT use sdb1, the first partition ID). Change, if different.
| |
− | <pre>XXXX:~/Desktop/$ sudo dd if=openSUSE-Sugar-liveUSB-unstable.i686-0.0.3-Build4.17.raw of=/dev/sdb bs=4k
| |
− | [sudo] password for XXXX:
| |
− | 463360+0 records in
| |
− | 463360+0 records out
| |
− | 1897922560 bytes (1.9 GB) copied, 195.168 s, 9.7 MB/s
| |
− | </pre>
| |
| | | |
− | ==Resources==
| + | Archive: [[Talk:VMware#Operating System Notes]] |
− | * http://www.vmware.com/
| |
− | * [[OLPC:VMware]]
| |