VirtualBox - Virtualització

De WikiMar
La revisió el 14:51, 25 jul 2008 per Marti (discussió | contribucions) (Pàgina nova, amb el contingut: « ==Make USB to work== Install VirtualBox sudo adduser $USER vboxusers sudo kate /etc/init.d/mountdevsubfs.sh Where it says #Magic to make /proc/bus/usb work...».)
(dif.) ← Versió més antiga | Versió actual (dif.) | Versió més nova → (dif.)
Salta a la navegació Salta a la cerca

Make USB to work

Install VirtualBox

sudo adduser $USER vboxusers
sudo kate /etc/init.d/mountdevsubfs.sh

Where it says

#Magic to make /proc/bus/usb work

remove comments:

mkdir -p /dev/bus/usb/.usbfs
domount usbfs usbdevfs /proc/bus/usb -onoexec,nosuid,nodev,devgid=120,devmode=664
                                                                  120 is from grep vbox /etc/group
                                                                              vboxusers:x:120:user
ln -s .usbfs/devices /dev/bus/usb/devices
mount /rbind /dev/bus/usb /proc/bus/usb
sudo kate /etc/fstab

Add:

none /proc/bus/usb usbfs devgid=120,devmode=664 0 0


Share Folders

  • First share the folder in properties of the Virtual Machine

or do:

VBoxManage sharedfolder add "VmName" -name tmp -hostpath /tmp/
  • Add network unit in the M.V.:
    • Windows:
net use x:\\vboxsvr\tmp /persistent:yes
    • Linux:
mkdir /mount/tmp && mount -t vboxsf tmp /mount/tmp
      • or editing /etc/fstab
tmp /mount/tmp vboxsf default 0 0

To change the Floppy disk label in Windows

regedit
HKLM\SYSTEM\MountedDevices

change:

\DosDevices\A: