Documente Academic
Documente Profesional
Documente Cultură
https://docs.google.com/uc?id=0B8-168-UhNZCalJIQjdJTmNITzg
https://support.microsoft.com/kb/889768
https://winauth.epfl.ch/vmware-v5/login.aspx
After installing VMware, you should check that the network configuration
includes a NAT network (the VM shares your hosts IP address when connecting
to the Internet) and a Host-Only network (the VM and your host are connected to
a network without any external access). This will ensure you are able to properly
communicate with the VM, and to the Internet from within the VM. To do this,
follow these steps:
If you are running Linux or Windows
Go to Edit->Virtual Network Editor and check that in the list there is at
least one network of the type host-only and at least one network of the type NAT.
If either of these types are missing, click on Add Network, select the type of network to add (e.g., NAT, Host-Only), and click Save.
If you are running MacOS
Go to VMware Fusion->Preferences->Network. Make sure that you have
both the items Share with my Mac and Private to my Mac in the list. If either of
them are missing, first click on the lock icon to enable changes. Next, click on the
+ symbol, and, to create a Host-Only network (i.e., Private to my Mac), make
sure the checkbox Allow virtual machines on this network to connect to external
networks (using NAT) is deselected. Reciprocally, to create a NAT network (i.e.,
Share with my Mac), make sure that the aforementioned checkbox is selected.
Booting up the VM
Simply click inside the VM window and your keyboard and mouse input will
be redirected to the guest operating system. To release control back to your host,
simply press Ctrl+Alt or Ctrl+Cmd.
2. Connect through SSH
Your virtual machine is connected to your network card, meaning you can
access the guest operating system via SSH. You can use this to issue commands
to the guest system, as well as to copy files over. The hostname of your guest
operating system is oslab.local
To use this feature, first enter the VM (in the manner described above), and
run the following command:
$ sudo apt-get install avahi-daemon
If you are running Linux or MacOS
$ ssh oslab@oslab.local
$ scp some_file oslab@oslab.local:/home/oslab/some_file
$ scp oslab@oslab.local:/home/oslab/another_file ./another_file
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
http://winscp.net/download/winscp556.zip
We have provided the minimum set of tools and utilities that we feel you will
require to build and test your solutions. You are free to install any other tools you
might need, however, please note that your assignment will be evaluated using
only the tools that come preinstalled with the VM.
Installing a GUI
In order to reduce the size of the VM image and to simplify things, we have
not installed a GUI on the guest OS. If you want to do so, you can by running the
following command:
$ sudo tasksel install desktop
Installing a custom keyboard layout
If you need to install a custom keyboard layout in the VM (e.g., Swiss French),
you can do this by installing the console-common package:
$ sudo apt-get install console-common
Further, to make your changes permanent, edit /etc/default/keyboard and
change the following (for example, for Swiss French):
XKBLAYOUT="ch"
XKBVARIANT="fr"
Another advantage of using a Virtual Machine is that you can create snapshots of your environment and jump back to them in case something goes wrong
(e.g., your new kernel crashes on boot). These snapshots capture both the state
of the HDD and the state of the RAM, meaning that it will contain all the running
processes at the time it was taken.
Creating a snapshot
You can create a snapshot of your VM by clicking on VM->Snapshot->Take
Snapshot (or Virtual Machine->Shapshots->Take Snapshot). You can choose
a name and a brief description for your snapshot. This helps, for example, if you
want to save the state of your VM at several incremental points.
Restoring a snapshot
WARNING: When you restore a snapshot, all data written to disk from
the time the snapshot was taken is erased! This does not apply for shared
folders, so make sure to backup your files (either by SCP or shared folders).
Go to VM->Snapshot->Snapshot Manager, select the snapshot you wish to
restore,
and click on Go To.
For Mac OS Users,
go to
Virtual Machine->Shapshots->Snapshots. Select the snapshot and click on
Restore.