Differences between revisions 8 and 26 (spanning 18 versions)
Revision 8 as of 2021-07-26 08:12:04
Size: 1371
Editor: hgiger
Comment:
Revision 26 as of 2023-10-16 13:56:26
Size: 1752
Editor: alders
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
There are situations where you want to have a system on which you can manage by yourself as 'root', e.g. to install and test software.
In such cases a virtual machine is a good idea. To create your own virtual machine on an ISG-managed Linux client proceed as followed:
There are situations where you want to have a system, which you can manage by yourself as 'root', e.g. to install and test software.
In such cases a virtual machine is a good idea. To create your own virtual machine on an ISG D-ITET-managed Linux client proceed as followed:
Line 6: Line 6:
 1. In '/scratch' create a directory <username>
 1. Download a virtual machine image to '/scratch/<username>'
 1. Ttype following command on the console:
 1. On one of the machine's disks '/scratch' or '/scratch-second' (hereinafter referred to as: DISK) create a directory <username>. In addition create directory '/DISK/<username>/VM' to store your finally created VM.
 1. Download any operating system installation image to '/DISK/<username>'.
 1. Type following command on the console:
Line 14: Line 14:
 1. In the upcoming window klick "Create a New Virtual Machine" and use the virtual machine image, which you have downloaded before.  1. In the upcoming window klick "Create a New Virtual Machine" and use your downloaded virtual machine image.
Line 18: Line 18:
     RAM: min. -> 1-2 GB max. -> 50% of the RAM of your machine
     CPU: min. -> 1-2 max. -> 50% of the CPUs of your machine
     Disk: reasonable percentage of your machine's disk (which is '/scratch' by the way)
     RAM: min. -> 1-2 GB   max. -> 50% of the RAM of your machine
     CPU: min. -> 1-2   max. -> 50% of the CPUs of your machine
     Disk: min. -> 10-30 GB max. -> reasonable percentage of your machine's disk
Line 22: Line 22:

 1. Finally set the path of your new VM to '/DISK/<username>/VM' and start the installation process.
 1. After finishing the installation use command 'vmplayer' to start, resp. changing VM parameters in the future.

Creating your own virtual machine

There are situations where you want to have a system, which you can manage by yourself as 'root', e.g. to install and test software. In such cases a virtual machine is a good idea. To create your own virtual machine on an ISG D-ITET-managed Linux client proceed as followed:

  1. On one of the machine's disks '/scratch' or '/scratch-second' (hereinafter referred to as: DISK) create a directory <username>. In addition create directory '/DISK/<username>/VM' to store your finally created VM.

  2. Download any operating system installation image to '/DISK/<username>'.

  3. Type following command on the console:
    •      $ vmplayer
  4. In the upcoming window klick "Create a New Virtual Machine" and use your downloaded virtual machine image.
  5. Make reasonable settings concerning RAM, CPU and Disk (dependend on your machine's hardware setup):
    •      RAM:  min. -> 1-2 GB    max. -> 50% of the RAM of your machine
           CPU:  min. -> 1-2       max. -> 50% of the CPUs of your machine
           Disk: min. -> 10-30 GB  max. -> reasonable percentage of your machine's disk
  6. Finally set the path of your new VM to '/DISK/<username>/VM' and start the installation process.

  7. After finishing the installation use command 'vmplayer' to start, resp. changing VM parameters in the future.

/!\ Note: 'Virtualization Technology' must be activated in the BIOS of your machine to create VMs in your environment. You can test that with following command:

  •      $ ls -l /dev/kvm

    If this file doesn't exist, 'Virtualization Technology' is deactivated. In this case write to: support@ee.ethz.ch to make the BIOS settings accordingly.

FAQ/VirtualMaschine (last edited 2023-10-16 13:56:26 by alders)