Week 4, February 18 VMware * Virtual Devices virtual disk virtual cdrom * Virtual Machine processes timer interrupts TRAP/response Two traps we need to handle differently: * disk drive (also monitor!): access virtual disk instead!!! * timer: must cede control to parent Strategy: move disk-response code to "user space", not kernel. Actual i/o call still a trap, this time with new trap handler Timer interrupt: set things up to check next virtual process, but exit to host machine x86 problems: instructions that behave differently in kernel mode instructions that give status of hardware user space: user code + library code kernel space recompilation necessary DMA ================== Typical linux session openOffice directories, folders shared folders terminal, sh/bash (cygwin) ================================================== Installation: 1. Create machine, 256MB ram, 3GB disk, or more (128 MB ram did not work!) 2. In summary window, click on cdrom and choose edit. Connect the CDROM to the ubuntu .iso file 3. Power up: ubuntu LiveCD should load 4. You should get an Install icon at the upper-left corner, and a menu bar at the top (sort of mac-style; the actual window system is called "gnome", with the g voiced). 5. Try using top_bar => System => Preferences => Screen_Resolution to change the resolution, say to 1024x768, or even 800x600. (Note that the abstract vmware *potential* screen resolution is something insanely high, so "guest" systems tend to install with very high default resolutions that can be excessively tedious to scroll. Guest screen resolutions that are too big will *not* successfully enter full-screen mode; if full-screen mode fails the most likely cause is that the guest resolution is too big. (The second most likely cause is that something isn't working.) Hint for scrolling: if you click on a menu, and can't scroll the menu far enough without scrolling the vmware window, you may have trouble in that moving the mouse to scroll the vmware window may signal to the guest that you've clicked somewhere off the scrolling menu, and so the menu closes. The workaround: after you click on the menu to open it, move the mouse straight up (pressing CNTL+ALT if necessary) to get it into the host zone, *then* move it to the vertical vmware-window scroll bar, and then move it back into the guest pane. 6. Answer the installation questions. Accept the default answers for the disk partitioning. That's a step windows omits, although the formatting and file-system creation parts are completely analogous. 7. Reboot. Fix resolution again 8. Add vmtools: (a) choose to mount virtual drive in Summary (b) within the program, copy, unzip, run using sudo.