7 Remote virtual machines VBoxManage list ostypes 2. Make sure the settings for this VM are appropriate for the guest operating system that we will install. For example: VBoxManage modifyvm "Windows XP" --memory 256 --acpi on --boot1 dvd --nic1 nat 3. Create a virtual hard disk for the VM (in this case, 10GB in size): VBoxManage createhd --filename "WinXP.vdi" --size 10000 4. Add an IDE Controller to the new VM: VBoxManage storagectl "Windows XP" --name "IDE Controller" --add ide --controller PIIX4 5. Set the VDI file created above as the first virtual hard disk of the new VM: VBoxManage storageattach "Windows XP" --storagectl "IDE Controller" --port 0 --device 0 --type hdd --medium "WinXP.vdi" 6. Attach the ISO file that contains the operating system installation that you want to install later to the virtual machine, so the machine can boot from it: VBoxManage storageattach "Windows XP" --storagectl "IDE Controller" --port 0 --device 1 --type dvddrive --medium /full/path/to/iso.iso 7. Start the virtual machine using VBoxHeadless: VBoxHeadless --startvm "Windows XP" If everything worked, you should see a copyright notice. If, instead, you are returned to the command line, then something went wrong. 8. On the client machine, fire up the RDP viewer and try to connect to the server (see chapter 7.1.1, Common third-party RDP viewers, page 90 above for how to use various common RDP viewers). You should now be seeing the installation routine of your guest operating system remotely in the RDP viewer. 7.1.4 Remote USB As a special feature on top of the VRDP support, VirtualBox supports remote USB devices over the wire as well. That is, the VirtualBox guest that runs on one computer can access the USB devices of the remote computer on which the VRDP data is being displayed the same way as USB devices that are connected to the actual host. This allows for running virtual machines on a VirtualBox host that acts as a server, where a client can connect from elsewhere that needs only a network adapter and a display capable of running an RDP viewer. When USB devices are plugged into the client, the remote VirtualBox server can access them. For these remote USB devices, the same filter rules apply as for other USB devices, as described with chapter 3.10.1, USB settings, page 49. All you have to do is specify “Remote” (or “Any”) when setting up these rules. Accessing remote USB devices is only possible if the RDP client supports this extension. On Linux and Solaris hosts, the VirtualBox installation provides a suitable VRDP client called rdesktop-vrdp. RDP clients for other platforms will be provided in future VirtualBox versions. To make a remote USB device available to a VM, rdesktop-vrdp should be started as follows: rdesktop-vrdp -r usb -a 16 -N my.host.address Note that rdesktop-vrdp can access USB devices only through /proc/bus/usb. Please refer to chapter 12.6.7, USB not working, page 176 for further details on how to properly set up the permissions. Furthermore it is advisable to disable automatic loading of any host driver on the remote host which might work on USB devices to ensure that the devices are accessible by the RDP client. If the setup was properly done on the remote host, plug/unplug events are visible on the VBox.log file of the VM. 93
Previous Page Next Page