Installazione VirtualBox: differenze tra le versioni

Da MeteOceanWiki.
(Creata pagina con "You can install VirtualBox from YAST. After that you could be interested in mounting Windows. You can download a copy of Windows from")
 
 
(10 revisioni intermedie di un utente non mostrate)
Riga 2: Riga 2:
  
 
After that you could be interested in mounting Windows. You can download a copy of Windows from
 
After that you could be interested in mounting Windows. You can download a copy of Windows from
 +
 +
http://www.csita.unige.it/personalcomputer/licenze/msca
 +
 +
If your system adhers to the Unified Extensible Firmware Interface (UEFI)
 +
 +
https://en.wikipedia.org/wiki/Unified_Extensible_Firmware_Interface
 +
 +
you have to enter in BIOS setup when you start your computer (try to press F1 keyboard). Inside the BIOS you have to look for something like:
 +
 +
"activate the possibility to boot an image" or "Advanced/Intel Virtualization Technology" and turn the flag on (enable).
 +
 +
After that you have to go inside the file /etc/group and add your username to the group vboxusers. Now your user is allowed to run VirtualBox.
 +
Try to run VirtualBox. If you get an error like: "Kernel drive not found" run:
 +
 +
/etc/init.d/vboxdrv setup
 +
 +
Don't forget to install extensions and add-ons to read, for example, a usb stick.
 +
 +
In addition, in order to have your VirtualBOX reading USB sticks you have to go inside the file: /usr/lib/udev/rules.d/60-vboxdrv.rules, uncomment the following lines:
 +
 +
KERNEL=="vboxdrv", NAME="vboxdrv", OWNER="root", GROUP="vboxusers", MODE="0660"
 +
 +
#these lines below give access permission to vboxusers to properly work with usb nodes, but enabling them could be security risk (bnc#664520) !!
 +
#if you can live with this security problem put these lines below in to the new file /etc/udev/rules.d/60-vboxdrv.rules so they will stay enabled also after package update
 +
SUBSYSTEM=="usb_device", ACTION=="add", RUN+="/usr/lib/udev/VBoxCreateUSBNode.sh $major $minor $attr{bDeviceClass} vboxusers"
 +
SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", RUN+="/usr/lib/udev/VBoxCreateUSBNode.sh $major $minor $attr{bDeviceClass} vboxusers"
 +
SUBSYSTEM=="usb_device", ACTION=="remove", RUN+="/usr/lib/udev/VBoxCreateUSBNode.sh --remove $major $minor"
 +
SUBSYSTEM=="usb", ACTION=="remove", ENV{DEVTYPE}=="usb_device", RUN+="/usr/lib/udev/VBoxCreateUSBNode.sh --remove $major
 +
 +
and then copy it in /etc/udev/rules.d/60-vboxdrv.rules
 +
 +
 +
In case you work on Windows (host) and you install linux (guest) in order to set the shared folder you have to:
 +
 +
1) Install guest-additions: turn the virtual machine on, then select the Devices and click Insert Guest Additions CD image…
 +
 +
2) After installing run from terminal: sudo adduser USERNAME vboxsf
 +
 +
3)Now that the guest tool is installed, edit the gust machine settings to add the folder you want to share with the host machine. Then select the Settings tab and pick the Shared Folders from the list. Then enable it and locate the folder you wish to add. Click OK when done.
 +
 +
4) The shared folder is inside /media/

Versione attuale delle 13:40, 7 dic 2017

You can install VirtualBox from YAST.

After that you could be interested in mounting Windows. You can download a copy of Windows from

http://www.csita.unige.it/personalcomputer/licenze/msca

If your system adhers to the Unified Extensible Firmware Interface (UEFI)

https://en.wikipedia.org/wiki/Unified_Extensible_Firmware_Interface

you have to enter in BIOS setup when you start your computer (try to press F1 keyboard). Inside the BIOS you have to look for something like:

"activate the possibility to boot an image" or "Advanced/Intel Virtualization Technology" and turn the flag on (enable).

After that you have to go inside the file /etc/group and add your username to the group vboxusers. Now your user is allowed to run VirtualBox. Try to run VirtualBox. If you get an error like: "Kernel drive not found" run:

/etc/init.d/vboxdrv setup

Don't forget to install extensions and add-ons to read, for example, a usb stick.

In addition, in order to have your VirtualBOX reading USB sticks you have to go inside the file: /usr/lib/udev/rules.d/60-vboxdrv.rules, uncomment the following lines:

KERNEL=="vboxdrv", NAME="vboxdrv", OWNER="root", GROUP="vboxusers", MODE="0660"

#these lines below give access permission to vboxusers to properly work with usb nodes, but enabling them could be security risk (bnc#664520) !!
#if you can live with this security problem put these lines below in to the new file /etc/udev/rules.d/60-vboxdrv.rules so they will stay enabled also after package update
SUBSYSTEM=="usb_device", ACTION=="add", RUN+="/usr/lib/udev/VBoxCreateUSBNode.sh $major $minor $attr{bDeviceClass} vboxusers"
SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", RUN+="/usr/lib/udev/VBoxCreateUSBNode.sh $major $minor $attr{bDeviceClass} vboxusers"
SUBSYSTEM=="usb_device", ACTION=="remove", RUN+="/usr/lib/udev/VBoxCreateUSBNode.sh --remove $major $minor"
SUBSYSTEM=="usb", ACTION=="remove", ENV{DEVTYPE}=="usb_device", RUN+="/usr/lib/udev/VBoxCreateUSBNode.sh --remove $major

and then copy it in /etc/udev/rules.d/60-vboxdrv.rules


In case you work on Windows (host) and you install linux (guest) in order to set the shared folder you have to:

1) Install guest-additions: turn the virtual machine on, then select the Devices and click Insert Guest Additions CD image…

2) After installing run from terminal: sudo adduser USERNAME vboxsf

3)Now that the guest tool is installed, edit the gust machine settings to add the folder you want to share with the host machine. Then select the Settings tab and pick the Shared Folders from the list. Then enable it and locate the folder you wish to add. Click OK when done.

4) The shared folder is inside /media/