Difference between revisions of "Talk:VirtualBox"
(→Fix Virtual Box Expanding Files disk; stuck at 99%: new section) |
(→some things tried when windows 7 64 bit was slow: new section) |
||
Line 76: | Line 76: | ||
By doing this your hard drive will come under the IDE Controller. | By doing this your hard drive will come under the IDE Controller. | ||
+ | |||
+ | == some things tried when windows 7 64 bit was slow == | ||
+ | |||
+ | Suggestions: | ||
+ | * Increase video memory allocation ... didn't help | ||
+ | * Set number of CPU to 1 ... didn't help | ||
+ | * Install Extension Pack ... didn't help | ||
+ | * System, Acceleration, change Default to None ... didn't help |
Revision as of 01:15, 18 February 2024
Contents
- 1 How to share a VirtualBox virtual machine with users of the computer
- 2 prevent VirtualBox from changing the permissions on the .vbox File
- 3 copy and paste between guest and host using shared clipboard
- 4 Fix Virtual Box Expanding Files disk; stuck at 99%
- 5 some things tried when windows 7 64 bit was slow
To make a VM available from different user accounts on one computer (not having it running at the same time), you need to set up a few things:
Locate the virtual hard drive of the shared machine in a directory where different users have appropriate permissions. Create virtual machines on the different accounts, using that same virtual hard drive.
How it can be done
Create a shared folder, in your personal home folder, for you and other user(s):
Make other users member of the group yourusername (the easiest way is to install gnome-system-tools and use the users and groups -section. Manage groups > choose_yourusername > properties > add_other_users (detailed instructions here to mange users, and here to create a shared folder)
Change the permissions of the folder; right-click on in nautilus. In the permissions tab, change the group permissions for group yourusername to read & write.
Change the permissions for the files in the folder similarly (the button down in the nautilus properties window).
Create a virtual machine in VirtualBox. Do not use the default directory for a disk, but browse to the shared folder and save the disk image there. If you have an existing VM, delete it, delete its folder in ~/VirtualBox VMs as well, but keep its disk image, and move it to the shared folder first, then create a new VM, using the existing image as a harddisk. (if you try to relink the disk image in your existing VM, VirtualBox will complain the UUID already exists). On the other user's account(s), create similar machines, but use the hard disk image in the shared directory: /home/yourusername/shared_folder/machine_name.vdi (depending on the diskimage you created)
CREDIT TO: Jacob Vlijm
prevent VirtualBox from changing the permissions on the .vbox File
I had the same requirements (VM shared between two users) and the same problem (.vbox file with rw permission only to the last user of the VM).
To workaround this issue I created a vbox file for each user in the same folder (lets call them, for instance, xp_user1.vbox and xp_user2.vbox).
This would be the procedure:
1. (user1) Create the VM. The VM, its snapshots and the .vbox file have to be stored in a directory that can be accessed by both users (File|Preferences, Machine|Configuration).
2. (user2) Create the .vbox copy:
cp xp_user1.vbox xp_user2.vbox
3. (user2) Create the shared VM
Select the Machine|Add... menu item, navigate to the xp_user2.vbox location, and select that file.
In File|Preferences, set the default machine path to the .vbox location
Considerations:
- If a snapshot is taken, the .vbox copy has to be updated
- I tried to store the .vbox files at different directories but it did not work (location issues).
When setting up a guest machine it will not automatically integrate with the host. To allow the integration, you must install VirtualBox guest additions. Although this will not automatically allow you to copy and paste between machines, you will have the option to do it by enabling the bidirectional shared clipboard on the guest and host.
It is important you find and install Guest Additions. Locate your VirtualBox Guest Additions. Execute the VBoxWindowsAdditions. Go through the prompts, which will result in a reboot. Enable it from DEVICES->Shared clipboard.
Open VirtualBox and select the guest machine, then click the settings button or press Ctrl + S on your keyboard. On the General page, select Advanced tab and make sure bidirectional is selected for Shared Clipboard.
Still not working?
Instructions for copy pasting from windows to virtual box:
- Go to the console in the virtual box and type: ps aux | grep clipboard
- Find the two processes of /usr/bin/VBoxClient –clipboard
- Kill both processes.
- Type: VBoxClient –clipboard
- https://www.virtualbox.org/manual/ch04.html
- http://askubuntu.com/questions/22743/how-do-i-install-guest-additions-in-a-virtualbox-vm
Fix Virtual Box Expanding Files disk; stuck at 99%
While installing Windows 8 (or 7) or other Operating System you may run into the issue where you are booting from a virtual or real CD/DVD and during the installation process it just ‘hangs’ at the ‘Expanding files…’ part of the install at the beginning. It will usually get to somewhere around 98%-99% and just hang there.
Shut down the machine. Then On the settings tab, go to storage and then under SATA Controller you’ll see you virtual hard drive. Remove that using the button remove attachment. Then on the IDE Controller there is a small button “Add Hard drive” click that and locate you virtual hard drive you created earlier.
By doing this your hard drive will come under the IDE Controller.
some things tried when windows 7 64 bit was slow
Suggestions:
- Increase video memory allocation ... didn't help
- Set number of CPU to 1 ... didn't help
- Install Extension Pack ... didn't help
- System, Acceleration, change Default to None ... didn't help