Main / Virtualbox
Solving the shared drive mount problemTry this for the first steps:
http://www.giannistsakiris.com/2008/04/09/virtualbox-access-windows-host-shared-folders-from-ubuntu-guest/
sudo mount -t vboxsf <share_folder> /home/<user>/<share_folder> or sudo mount -t vboxsf -o uid=<userid>,exec,rw <share_folder> /home/<user>/<share_folder> If you get an error when trying to do a copy from linux to the shared drive Cannot create regular file... File exists try touching the shared destination from the command line and then copy. Had this issue once after deleting the file on the Windows side. Another problem is the inability to change ownership of the files on the share. SSH to the GuestGo into the Network settings in the VirtualBox Manager. In Port Forwarding, add
Host port 3022, guest port 22, name ssh, other left blank.
Install SSH on your guest sudo apt-get install openssh-server
Connect with ssh -p 3022 user@127.0.0.1 Adding a second hard driveCreate a directory for it. Install and use gparted to create a partition (on /dev/sdb). Use mkfs to create an ext4 file system on the device. Then add the entry to /etc/fstab to mount it on boot. Reboot. Other NotesIf the VB guest doesn't see your USB devices, go to the Devices menu to activate. Clock skew problemIf your Ubuntu guest clock is even a tiny bit behind Windows host, you'll have a problem compiling. Set the Ubuntu clock ahead manually just a bit. VHD UUID problemYou won't be able to attach a copied drive that shares the same UUID to the same virtual machine. To make the UUID distinct, you must use either the clone command or sethduuid: Turns out you can mount a VHD on Windows host using the Computer Management tool. VDI UUID problemYou can move the virtual machine .vdi drive by starting the virtual machine and powering it off and then remove it in the Storage section of the Manager. The .vdi file can then be moved, but when you try to re-attach it will complain about UUID re-use. Use VBoxManage internalcommands sethduuid <file.vdi> command to generate a random new ID, then attach it in the Manager. Networking--6.1-- If you want to use the wired eth port of the host, then you need to add an adapter in the VB manager with the guest VM off. Set it to Bridged Adapter mode. When you start the VM a new interface should be available. You can set an address to the same subnet as the host OS eth port, and they will now be able to connect to one another. You can also now connect to the VM from another machine on the physical network. https://www.nakivo.com/blog/virtualbox-network-setting-guide/ --older-- If you try to start the VM and get an error about a nonexistent host networking interface, you will have to discard the saved state of the OS and reset it. Ubuntu As HostBy default, the guest OS won't be able to see your USB devices even if you do the guest additions and you have the Extension pack installed. The problem is that the host VirtualBox application itself cannot see the USB devices. You have to add your username and root to the vboxusers group (sudo add root vboxusers) and then restart. |