Difference between revisions of "VMware"

From Sugar Labs
Jump to navigation Jump to search
 
(200 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Stub}}
+
<noinclude>[[Category:Virtual machine or platform emulator]]</noinclude>
{{TOCright}}
+
[[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.
[[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 you to run OLPC 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).
 
  
===How to Make Emulation Files for running SUGAR Desktop===
+
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.
*VMWorkstation 6.5.2 with Fedora-11-Preview-i386-netinst.iso
 
*Settings for VMWorkstation: (1)create new virtual machine(2)Typical(3)Installer Disk image file (iso):(Fedora-11-Preview-i386-netinst.iso)
 
(4)Linux(5)other linux 2.6xx kernel 8Gib disk(6)Max Disk Size (GB) 8.0(7)Split disk into 2GB files(8)512 memory.
 
*net install with network connection
 
*use entire disk
 
*deselect Gnome Desktop
 
*customize now
 
*select Sugar Desktop (Only selection entered)
 
*Set root password(sugarroot?) and time zone
 
*when finished (about 45 min on cable)
 
*Reboot set user password(sugaruser?) Shut down.
 
*Clone and save clone on Desktop and use to load on 4GiB SD or USB or make DVD (3.2Gib files)
 
(#)see note below to remove sugar user info and make ready for first user login.
 
Original Passwords for root and user(sugarroot/sugaruser?)entered during install remain and are needed for Login & Administration
 
This needs to be done so copies will have different identities.
 
==Comments==
 
*Run on FREE VMPlayer loaded on any SchoolPC with 512 Memory (requires 256 for VMplayer) [updated satellit 05/06/2009]
 
*ADVANTAGE: No Need to boot USB Stick on problem machines
 
*Same machine can be used by a succession of students with their own copy of sugar
 
*Students can take USB/SD home and run on their own PC's
 
*Disadvantage: Have to install VMPlayer on PC's
 
2 emulations on different PC's each running NAT on same network seem to cause "collisions" in jabber (Neighborhood View gets depopulated on both ???) [satellit 05/05/2009]
 
 
(#) Fix From davb [[VirtualBox/Preparing_a_disk_image]]
 
1. Open Terminal
 
2. Terminal
 
3. rm -rf ~/.sugar (if distributing image)
 
4. su -
 
5. shutdown -h now
 
[satellit 05/05/2009]
 
  
Logon screen allows user to  switch session types:
+
==Appliance files==
*Default *Custom *KDE KDE(failsafe session) *Metacity(previous) *Sugar *Failsafe
+
See '''[[Emulator image files]]'''.
(It is Fedora 0.93 on startup bar) Applications in KDE  include:*Firefox 3.5 beta*Groupware Suite (evolution mail and calendar)
 
and a lot of other applications and Utilities...[satellit 05/06/2009]
 
  
===Running VMPlayer Appliance using a Single 8 GB USB Boot Stick===
+
=====[http://www.easyvmx.com/easyvmx.shtml EasyVMX!] (build your own VMware virtual machine for VMware Player)=====
Ubuntu 9.04 has a "USB Startup Disk Creator". I used a 8 GB USB Stick with 2 Partitions to Run a VMPlayer Appliance on the Same Stick
+
: 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
VMPlayer WILL INSTALL on Ubuntu unlike F11.
+
:: 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.)
 +
 
 +
* Web Page:-[http://www.easyvmx.com/easyvmx.shtml] Info:[http://www.virtualization.info/2005/12/guide-to-create-vmx-files-for-vmware.html]
 +
 
 +
*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==
 +
====from a live.iso file (No persistence)====
 +
This appliance runs just like a bootable CD&mdash;it has no data persistence&mdash;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.
 +
* Set XXX-live.iso as CD in VMware Workstation with a 0.1 GB hard disk.
 +
* Boot and run VMware Workstation, then shut down.
 +
* Copy contents of the new Appliance in the VMware directory to a [[wikipedia:USB flash drive|USB flash drive]].
 +
* Copy XXX-live.iso file to the same USB drive.
 +
* 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''.
 +
 
 +
 
 +
'''Boot this Appliance from a USB boot drive/stick (see below)'''
 +
* The system can be run on any PC without changing or accessing its primary hard disk.
 +
* Use it to run Soas .iso images on PCs lacking a CD-ROM reader but with a USB port.
 +
* Run Sugar on unbootable PC's using a VMware Player application
 +
 
 +
====Appliances with persistence====
 +
* VMware Workstation 6.5.2 with Fedora-11-i386-netinst.iso
 +
http://mirrors.fedoraproject.org/publiclist/Fedora/11/i386/
 +
Fedora 11 DVD does not include Sugar Desktop
 +
* Settings for VMware Workstation:
 +
*# Create a new virtual machine
 +
*# Typical
 +
*# Installer disk image file:(Fedora-11-i386-netinst.iso)
 +
*# Linux
 +
*# Other linux 2.6xx kernel 8-GiB disk
 +
*# Max Disk Size (GB) 8.0
 +
*# Split disk into 2-GiB files
 +
*# 512 kB memory.
 +
* Net install with network connection
 +
* Use entire disk
 +
* De-select Gnome Desktop
 +
* Customize now
 +
* Select Sugar Desktop (Only selection entered)
 +
* Set a root password (sugarroot?) and time zone
 +
* When finished (about 45 min on ??-kbyte/s cable)
 +
* Reboot, set user password (sugaruser?), shut down.
 +
* Clone and save clone on Desktop and use to load on 4-GiB SD or USB or make DVD (3.2-Gib files)
 +
*: See note below to remove the Sugar user information and make the image ready for a new first user login. Original passwords for root and user (sugarroot/sugaruser?) entered during the install will remain and are needed for login & administration. This is required so that copies will have different identities.
 +
 
 +
:Method to remove Sugar user information (from Dave Bauer [[VirtualBox/Preparing_a_disk_image]]).
 +
:# Open Terminal
 +
:# Terminal
 +
:# rm -rf ~/.sugar (if distributing image)
 +
:# su -
 +
:# shutdown -h now
 +
 
 +
====Alternatives====
 +
* Fedora-edu spin-(latest versions of F12(rawhide) Gnome & Sugar) [http://spins.fedoraproject.org/edu/]
 +
(enter liveinst in terminal to install to VMworkstation disks or USB)
 +
* 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====
 +
* 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 computers that have a problem booting from a USB device.
 +
* 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.
 +
* Disadvantage: Have to install VMware Player on PCs
 +
====More Info====
 +
# Other Methods:http://www.pendrivelinux.com/category/virtual-machine/
 +
 
 +
===Two stick alternative===
 +
* 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.
 +
 
 +
'''This allows VMware Player to be used by multiple students without rebooting the PC.'''
 +
 
 +
===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
 +
VMware Player WILL install on Ubuntu or Fedora 10, but NOT on F11 at this time.
 
METHOD:
 
METHOD:
*In PC running Ubuntu 9.04 (or running in VMworkstation6.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 [sdb?]
+
* Delete existing partitions on USB [/dev/sdb?]
(BE CAREFUL TO BE LOOKING AT USB and not your Hard Disk)
+
*: (BE CAREFUL TO BE LOOKING AT the USB drive and not your Hard Disk.)
*Create a fat16 2 GB Primary Partition set boot flag and label it Ubuntu
+
* Create a FAT16 2-GiB Primary Partition, set boot flag, and label it Ubuntu
*Create a fat34 primary partition with the remaining unformatted space on the USB, set boot flag and label VM_Apps
+
* Exit partition manager
*exit Partition Manager
+
* Run USB Startup Disk Creator
=Run "USB Startup Disk Creator=
+
* Create USB, select: /dev/sdb1 "Ubuntu"
*create USB select: /dev/sdb1 "Ubuntu"
+
* Select "Other" and find Ubuntu 9.04.iso  (not live install) previously downloaded to Desktop
*Select "Other" and find Fedora.iso  (not live install) previously downloaded to Desktop
+
* Create live usb on first partition.
*Run USB Startup Disk Creator
+
* Start partition manager again
=Remove and reinstall USB stick=
+
*: (BE CAREFUL TO BE LOOKING AT the USB drive and not your Hard Disk.)
*Two USB icons will appear cut and paste previously obtained VMPlayer Appliance to VM_Apps
+
* Create a FAT32 primary partition with the remaining, unformatted space on the USB drive, set boot flag, and label VM_Apps
=ReBoot PC with USB Stick=
+
* Exit Partition Manager
*Start Firefox and download VMPlayer (free)  Linux xxxx.bundle
+
====Remove and reinstall USB stick====
*Place .bundle file in /tmp
+
* Two USB icons will appear
*su - command in /tmp
+
* Copy VM Appliance into VM_Apps
*enter password for root
 
Install:( bundle in /tmp( ./ command as administrator. )
 
=Run VMPlayer Program=
 
*chooseVM_apps and open VM Appliance file
 
*choose Gnome or SUGAR as login  enter password
 
  Initial Password sugar = sugaruser (change user name and password in live user)
 
                    root=sugarroot       
 
Have Fun  (Fedora 11 0.93 0.84-2)
 
The Sugar Appliance runs nicely on a EeePC900
 
Thus one 8 GB USB stick loaded with Ubuntu 9.04 and VMPlayer plus the Appliance, a Student can
 
Carry the OS and a full copy of GNOME Desktop and SUGAR on a single USB Stick
 
It is complicated to make but simple to use and it works.
 
  
==Windows XP SP2==
+
====Re-boot PC with USB stick====
  Loads and runs emulation files in windows XP SP2 {Dell 2350 Tower}
+
* Start Firefox and download VMware Player Linux xxxx.bundle
Appliance(Emulation) transfered by DVD and loaded on Hard Disk
+
* Place .bundle file in /tmp
[satellit 05/04/2009]
+
* su - command in /tmp
 +
* Enter password for root
 +
* Install bundle in /tmp ( ./ command as administrator. )
 +
====Run VMware Player====
 +
* Start VMware Player
 +
* Choose VM_apps Icon and open VM Appliance file
 +
* Choose Gnome or Sugar as login, enter password
 +
*: Initial Password for Sugar = sugaruser (change user name and password in live user)
 +
*: Passwoord for root = sugarroot       
 +
:Have Fun  (Fedora 11 0.93 0.84-2)
 +
*Thus, with one 8-GiB USB stick loaded with Ubuntu 9.04 and VMware Player, plus the Appliance, a Student can carry the OS and a full copy of GNOME Desktop and Sugar on a single USB stick.
 +
* It is complicated to make, but simple to use and it works.
  
==Ubuntu 8.04 Hardy==
+
===Operating system notes===
VMworkstation 6.5.2 can make emulation files in Ubuntu 8.04 {Dell 530n tower} & run only on:{hp e-pc}
 
can run files with free VMPlayer, (available on line)
 
distribute them with DVD, 4 Gib SD, 4Gib USB or Future downloads from sugarlabs server?
 
[satellit 05/05/2009]
 
==Fedora 11==
 
VMPlayer will not load in Fedora 11 beta or Fedora Preview
 
loaded with sh command; Gets Unable to modify kernel error and quits
 
[satellit 05/04/2009]
 
See above VMPlayer USB Boot Stick to run Fedora [satellit 05/14/2009]
 
  
==Resources==
+
Archive: [[Talk:VMware#Operating System Notes]]
* http://www.vmware.com/
 
* [[OLPC:VMware]]
 

Latest revision as of 11:00, 1 February 2013

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 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.

Appliance files

See Emulator image files.

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
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.)
  • openSUSE-edu:
NEW : OpenSUSE#openSUSE_12.2-sugar_0.96.2 --Satellit 08:07, 10 September 2012 (EDT)
Old : http://sourceforge.net/projects/opensuse-edu/files/Sugar/

Building a virtual appliance

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 (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.
  • Boot and run VMware Workstation, then shut down.
  • Copy contents of the new Appliance in the VMware directory to a USB flash drive.
  • Copy XXX-live.iso file to the same USB drive.
  • 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 (free downwload) and open this Appliance from the USB drive, or any other VMware Player on any PC.


Boot this Appliance from a USB boot drive/stick (see below)

  • The system can be run on any PC without changing or accessing its primary hard disk.
  • Use it to run Soas .iso images on PCs lacking a CD-ROM reader but with a USB port.
  • Run Sugar on unbootable PC's using a VMware Player application

Appliances with persistence

  • VMware Workstation 6.5.2 with Fedora-11-i386-netinst.iso
http://mirrors.fedoraproject.org/publiclist/Fedora/11/i386/
Fedora 11 DVD does not include Sugar Desktop
  • Settings for VMware Workstation:
    1. Create a new virtual machine
    2. Typical
    3. Installer disk image file:(Fedora-11-i386-netinst.iso)
    4. Linux
    5. Other linux 2.6xx kernel 8-GiB disk
    6. Max Disk Size (GB) 8.0
    7. Split disk into 2-GiB files
    8. 512 kB memory.
  • Net install with network connection
  • Use entire disk
  • De-select Gnome Desktop
  • Customize now
  • Select Sugar Desktop (Only selection entered)
  • Set a root password (sugarroot?) and time zone
  • When finished (about 45 min on ??-kbyte/s cable)
  • Reboot, set user password (sugaruser?), shut down.
  • Clone and save clone on Desktop and use to load on 4-GiB SD or USB or make DVD (3.2-Gib files)
    See note below to remove the Sugar user information and make the image ready for a new first user login. Original passwords for root and user (sugarroot/sugaruser?) entered during the install will remain and are needed for login & administration. This is required so that copies will have different identities.
Method to remove Sugar user information (from Dave Bauer VirtualBox/Preparing_a_disk_image).
  1. Open Terminal
  2. Terminal
  3. rm -rf ~/.sugar (if distributing image)
  4. su -
  5. shutdown -h now

Alternatives

  • Fedora-edu spin-(latest versions of F12(rawhide) Gnome & Sugar) [3]

(enter liveinst in terminal to install to VMworkstation disks or USB)

Comments

  • 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 computers that have a problem booting from a USB device.
  • 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.
  • Disadvantage: Have to install VMware Player on PCs

More Info

  1. Other Methods:http://www.pendrivelinux.com/category/virtual-machine/

Two stick alternative

  • 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.

This allows VMware Player to be used by multiple students without rebooting the PC.

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 VMware Player WILL install on Ubuntu or Fedora 10, but NOT on F11 at this time. METHOD:

  • In PC running Ubuntu 9.04 (or running in VMware Workstation 6.5.2.)

Start partition manager

  • Delete existing partitions on USB [/dev/sdb?]
    (BE CAREFUL TO BE LOOKING AT the USB drive and not your Hard Disk.)
  • Create a FAT16 2-GiB Primary Partition, set boot flag, and label it Ubuntu
  • Exit partition manager
  • Run USB Startup Disk Creator
  • Create USB, select: /dev/sdb1 "Ubuntu"
  • Select "Other" and find Ubuntu 9.04.iso (not live install) previously downloaded to Desktop
  • Create live usb on first partition.
  • Start partition manager again
    (BE CAREFUL TO BE LOOKING AT the USB drive and not your Hard Disk.)
  • Create a FAT32 primary partition with the remaining, unformatted space on the USB drive, set boot flag, and label VM_Apps
  • Exit Partition Manager

Remove and reinstall USB stick

  • Two USB icons will appear
  • Copy VM Appliance into VM_Apps

Re-boot PC with USB stick

  • Start Firefox and download VMware Player Linux xxxx.bundle
  • Place .bundle file in /tmp
  • su - command in /tmp
  • Enter password for root
  • Install bundle in /tmp ( ./ command as administrator. )

Run VMware Player

  • Start VMware Player
  • Choose VM_apps Icon and open VM Appliance file
  • Choose Gnome or Sugar as login, enter password
    Initial Password for Sugar = sugaruser (change user name and password in live user)
    Passwoord for root = sugarroot
Have Fun (Fedora 11 0.93 0.84-2)
  • Thus, with one 8-GiB USB stick loaded with Ubuntu 9.04 and VMware Player, plus the Appliance, a Student can carry the OS and a full copy of GNOME Desktop and Sugar on a single USB stick.
  • It is complicated to make, but simple to use and it works.

Operating system notes

Archive: Talk:VMware#Operating System Notes