LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This 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


Reply
  Search this Thread
Old 11-19-2010, 05:53 PM   #1
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 56
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.
Old 11-19-2010, 11:04 PM   #2
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791

Original Poster
Blog Entries: 62

Rep: Reputation: 56
So all you 52 people who viewed this thread couldn't reply?! Why, for the love of God?
 
Old 11-20-2010, 12:12 AM   #3
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
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
 
Old 11-20-2010, 10:17 AM   #4
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791

Original Poster
Blog Entries: 62

Rep: Reputation: 56
Quote:
Originally Posted by catkin View Post
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.
 
Old 11-21-2010, 05:00 PM   #5
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 154Reputation: 154
Not sure if I'm understanding you right but I think you're after something like this:

Code:
VBoxManage internalcommands createrawvmdk -filename ~/.VirtualBox/HardDisks/sdc.vmdk -rawdisk /dev/sdc
Then you add it in VirtualBox's media manager, use whatever controller you want for your vm and attach it like any other drive
 
2 members found this post helpful.
  


Reply

Tags
crossplatform, usb+flash+drive, virtualbox



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
file sharing between a virtual machine and the host machine okok Linux - Networking 3 06-21-2013 12:42 AM
[SOLVED] Samba setup - Windows 7 host, CentOS Machine using VirtualBox twaddlac Linux - Server 1 07-15-2010 01:11 PM
[SOLVED] converting a windows xp VMware virtual host for use on VirtualBox carltm Linux - Virtualization and Cloud 4 12-07-2009 10:22 AM
How to configure the serial port of my virtual machine with host machine. akram Linux - Newbie 4 07-31-2009 10:39 PM
Virtualbox USB device not available to virtual machine - FC7 speedsrfr Linux - Software 2 09-22-2007 12:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 03:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration