VirtualBox: Use a host block device in the virtual machine
Linux - Virtualization and CloudThis forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
VirtualBox: Use a host block device in the virtual machine
After rummaging through the VirtualBox Virtual Machine Settings -- trying to find out how to use a host device (in this case a USB flash drive) in a VirtualBox SAS controller -- in an endless loop, I feel hopeless.
Here's my reason for the use of a system block device in a virtual machine:
You see, this VM is a 64-bit VM designed to emulate a 64-bit system on a 32-bit processor. Why? Google Chrome OS won't build on 32-bit processors, so I decided to cross-virtualize to be able to support this.
I obviously cannot write an image to a USB flash drive without access to the entire disk (/dev/sdc), not just the mount point. So I am wondering just how this is ever done! It is driving me nuts. Are there any "plugins" for VirtualBox that I have to install to be able to support real devices? If so, what?
Click here to see the post LQ members have rated as the most helpful post in this thread.
Probably because very few of us (maybe none) have used SAS controllers with VirtualBox and I for one do not understand why a SAS controller is necessary to make the Chrome OS build available wherever you want it to be available or why you can't copy it to a partition on a USB flash drive and copy the MBR and any partition BR separately. Or why it is not possible to give the VM access to the entire USB flash drive as described (for hard disks which may or may not include USB flash drives) in the VirtualBox User Manual 9.7.1 "Using a raw host hard disk from a guest".
In short you have identified a solution which may be neither practicable nor optimal and have asked us to make it work. It might be more effective to ask how to implement your actual requirement, "Build Chrome on 32 bit system".
Last edited by catkin; 11-20-2010 at 12:13 AM.
Reason: ay -> may and quoting fixes
Probably because very few of us (maybe none) have used SAS controllers with VirtualBox and I for one do not understand why a SAS controller is necessary to make the Chrome OS build available wherever you want it to be available or why you can't copy it to a partition on a USB flash drive and copy the MBR and any partition BR separately. Or why it is not possible to give the VM access to the entire USB flash drive as described (for hard disks which may or may not include USB flash drives) in the VirtualBox User Manual 9.7.1 "Using a raw host hard disk from a guest".
In short you have identified a solution which may be neither practicable nor optimal and have asked us to make it work. It might be more effective to ask how to implement your actual requirement, "Build Chrome on 32 bit system".
Yes, I should remove the SAS controller. What I really want to know is what controller I need to connect a host USB flash drive -- and even then, any controllers I have tried already don't work.
You do realize that the Chromium build scripts are sort of "hard wired" for 64-bit systems, right? On top of that, the Build Instructions tell me that one of the requirements is a 64-bit system. That wasn't the case when I started building Chrome back in November 2009 -- it recently was edited into the scripts this spring.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.