Installing Nmag using the VMware PlayerContents IntroductionVMware is a company that provides a software that emulates a virtual computer. Let's assume for simplicity that we have an existing machine with MS Windows. This is called the host machine. One needs to install the vmware software (see Installing the VMware Player) on this host machine. Once the software is installed, it can be started like any other application. Once this virtual machine software is running, it will simulate a PC environment so that one can have a second (virtual) machine running in that window. The 'virtual' hard drive of that virtual machine is realised through a (few) big files gathered in a particular directory on the hard drive of the (Windows) host machine. It is of course required to provide an operating system for the virtual machine, which could be, for example, Linux. One would then have the normal MS Windows Operating system running on the host machine, and a Linux operating system in the VMware window. (In fact, the window can be blown up to appear as a full-screen, by pressing CTRL+ALT+Return, or clicking of the maximise icon of the window.) The performance penalty of running any software in the virtual machine (rather than on a real machine of similar specification) is usually less than 10%. In other words, a simulation that takes 10 minutes in the virtual machine, is not going to be faster than 9 minutes if run natively. The nice thing about having this virtual machine is that one can continue to use one's email, word processing, web browsing and all other applications, and simultaneously have a simulation environment for micromagnetic simulations (which provides all the necessary pre and postprocessing tools). In terms of performance, the host machine should have at least 1 GB of RAM (the more the better). It currently needs about 5GB of disk space on the host machine. Installing the VMware PlayerVMware provides a multitude of different products that allow different degrees of virtualisation. Some of them are free and some have to be paid for. We try to point to exactly the right product here, and to keep things simple although VMWare is frequently changing the names of their products. If your host runs MS Windows or Linux, then you can download the free VMware Player:
If your computer is an IntelMac, there is unfortunately no version of the free VMware Player for your machine. However, if you happen to own VMware's Fusion product (or are happy to pay for it), then install VMware fusion and use this as (a more powerful) VMware player. If you computer is a PowerPC Mac, then you cannot use the Virtual Machine method. At this stage, we have installed the VMware Player. Next, we need to obtain the 'virtual machine' that we want to execute. Downloading and starting the Nmag virtual machine
When you do this the first time, the VMware Player may warn that the machine is already in use. If so, select Take ownership. It will ask you whether this virtual machine has been moved or copied. The right answer is copied. Once you have done this, the virtual machine will boot. When the kernel boot menu appears (the first line starts "GNU GRUB"), do nothing, or press return. Wait until the graphical login turns up. Using the Nmag virtual machineThe Nmag virtual machine is a Debian Linux (Lenny) installation which provides all the software required to run micromagnetic simulations with Nmag. After booting, a login screen appears. There is only one user registered. The username is nmag and the password is nmag. (The root account has the same password; should you ever need it.) The default desktop environment is Gnome. At this point, you have a complete environment to start simulations, and the guided tour in the manual is a good starting point to explore nmag. You find a link on the Desktop (show_manual.sh) which will display a local copy of the manual on your harddrive (select 'Run' after double clicking). If you want to see the examples that are discussed in the manual directly, you can go to /home/nmag/nmag-0.1/nsim/interface/nmag/manual. Each subdirectory in there corresponds to one example. Note that there are sometimes additional files in the directory that are used for automatic creation of plots in the manual, and for automatic testing (you may want to ignore those). There is a shortcut manual for this directory on the Desktop, and also in the home directory of the nmag user. First steps
Using VMware playerThe help function of the VMware Player provides a useful summary of how to use it. Note that you can switch to full-screen mode when pressing CTRL+ALT+RETURN, and that you return from full-screen mode by either pressing CTRL+ALT, or moving the mouse to the top of the screen (to get the VMPlayer menu). Frequently Asked QuestionsHow can I exchange data between the virtual machine and the host?If you want to share data with your host, then
How can I change the keyboard in the Nmag virtual machine?Log in, then go to System->Preferences->Keyboard->Layouts. Can I also use other VMware products with the Nmag Virtual machine?Yes, as far as we know. For example, if you have the VMware Work station or VMware Server, then these can run the Nmag virtual machine as well. (It may, in fact, be easier to exchange data between the host and the virtual machine with these more powerful products.) I know Debian Linux -- can I modify this system?Of course. Once you become root, you can use aptitude and all other tools to configure your debian system. This is, after all, a normal installation (even though it is executed within a virtual machine). |