<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sérgio&#039;s Notebook &#187; Virtualization</title>
	<atom:link href="http://www.smachado.com/category/virtualization/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.smachado.com</link>
	<description>Notes about programming, scripting and configuration...</description>
	<lastBuildDate>Sat, 14 Jan 2012 22:08:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Virtual Box: using raw hard disk feature to access an external USB storage device</title>
		<link>http://www.smachado.com/2011/06/virtual-box-using-raw-hard-disk-feature-to-access-an-external-usb-storage-device/</link>
		<comments>http://www.smachado.com/2011/06/virtual-box-using-raw-hard-disk-feature-to-access-an-external-usb-storage-device/#comments</comments>
		<pubDate>Thu, 09 Jun 2011 20:00:15 +0000</pubDate>
		<dc:creator>smachado</dc:creator>
				<category><![CDATA[Virtualization]]></category>

		<guid isPermaLink="false">http://www.smachado.com/?p=192</guid>
		<description><![CDATA[Using Virtual Box 4.0.8 for MAC OSX 10.6.7 I was unable to access data on my external USB disk on a Windows 7 guest machine. No solution was found after searching the web although there are similar issues out there like: http://www.virtualbox.org/ticket/7462 http://www.virtualbox.org/ticket/1776 I was almost ready to give up when I found page 142 [...]]]></description>
			<content:encoded><![CDATA[<p>Using Virtual Box 4.0.8 for MAC OSX 10.6.7 I was unable to access data on my external USB disk on a Windows 7 guest machine.</p>
<p>No solution was found after searching the web although there are similar issues out there like:</p>
<p>http://www.virtualbox.org/ticket/7462</p>
<p>http://www.virtualbox.org/ticket/1776</p>
<p>I was almost ready to give up when I found page 142 on the Virtual Box manual. Section 9.7.1 tells how to configure a physical disk to be accessed as if it was attached to the guest/virtual machine.</p>
<p>So the guest OS instead of accessing the disk using the USB bus it would access using the SATA or IDE bus.</p>
<p>There&#8217;s a warning on that page that I&#8217;m copying here:</p>
<p><!-- p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Helvetica} --><strong>Warning: Raw hard disk access is for expert users only. Incorrect use or use of an outdated configuration can lead to total loss of data on the physical disk. Most impor- tantly, do not attempt to boot the partition with the currently running host operating system in a guest. This will lead to severe data corruption.</strong></p>
<p>Following the instructions on that section I could access my external USB drive successfully.</p>
<p>This is what I did, remember that I&#8217;m using OSX as host operation system.</p>
<p>Connected my usb drive. OSX automatically mounts it.</p>
<p>Opened a terminal and wrote mount to find which /dev device is the disk mapped to. It was /dev/disk1s1:</p>
<pre escaped="true" lang="bash" line="1">$ mount
/dev/disk0s2 on / (hfs, local, journaled)
devfs on /dev (devfs, local, nobrowse)
map -hosts on /net (autofs, nosuid, automounted, nobrowse)
map auto_home on /home (autofs, automounted, nobrowse)
/dev/disk0s3 on /Volumes/BOOTCAMP (ntfs, local, read-only, noowners)
/dev/disk1s1 on /Volumes/SergioDrive (exfat, local, nodev, nosuid, noowners)</pre>
<p>Now before using it on virtual box I unmounted it on OSX:</p>
<pre escaped="true" lang="bash" line="1">$ diskutil unmount /Volumes/SergioDrive
/Volume SergioDrive on disk1s1 unmounted</pre>
<p>Now I created the virtual box image file that I&#8217;ll use to configure my virtual machine:</p>
<pre escaped="true" lang="bash" line="1">$ VBoxManage internalcommands createrawvmdk -filename ~/VBAccessToSergioDrive.vmdk -rawdisk /dev/disk1s1
RAW host disk access VMDK file /Users/machados/VBAccessToSergioDrive.vmdk created successfully.</pre>
<p>Now you can use the virtual box gui to add the image file as a disk to the virtual machine. This is done under the storage definitions. I added another disk under SATA controller.</p>
<p>This can also be done on the command line with this command:</p>
<pre escaped="true" lang="bash" line="1">$ VBoxManage storageattach "Windows 7" --storagectl "SATA Controller" --port 1 --device 0 --type hdd --medium ~/VBAccessToSergioDrive.vmdk</pre>
<p>The command has no output. Of course &#8220;Windows 7&#8243; is the name of my virtual machine.</p>
<p>This image file can only be used with the same physical external disk because it maps the UUID of the disk.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.smachado.com/2011/06/virtual-box-using-raw-hard-disk-feature-to-access-an-external-usb-storage-device/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Connecting an USB storage device to a vmware guest</title>
		<link>http://www.smachado.com/2010/09/connecting-an-usb-storage-device-to-a-vmware-guest/</link>
		<comments>http://www.smachado.com/2010/09/connecting-an-usb-storage-device-to-a-vmware-guest/#comments</comments>
		<pubDate>Fri, 03 Sep 2010 14:08:26 +0000</pubDate>
		<dc:creator>smachado</dc:creator>
				<category><![CDATA[Virtualization]]></category>

		<guid isPermaLink="false">http://www.smachado.com/?p=164</guid>
		<description><![CDATA[Although the instructions herein might apply to other releases of software this article assumes that you are using Windows 7 64bit as a host operating system, VMWare Server 2.0.2 and Ubuntu 10.04 as guest operating system. It is also assumed that the guest operating system is installed and working. Note that when the usb storage [...]]]></description>
			<content:encoded><![CDATA[<p>Although the instructions herein might apply to other releases of software this article assumes that you are using Windows 7 64bit as a host operating system, VMWare Server 2.0.2 and Ubuntu 10.04 as guest operating system. It is also assumed that the guest operating system is installed and working.</p>
<p>Note that when the usb storage device becomes available to the guest operating system, it becomes unavailable to the host operating system. So you should save and close any file/document open from the same storage device.</p>
<p>Before you start, make sure the guest virtual machine is stopped and logout from VMWare server.</p>
<p>Start by finding the vendor id and product id of the storage device. The best way to do this is to open the latest vmware log file. It is located in the same directory where the vmx files for the guest virtual machine are.</p>
<p>Once you have the latest vmware log file open, search for the string &#8220;USB: Found device&#8221; without the quotes.</p>
<p>You&#8217;ll find something similar to:</p>
<pre>Sep 03 14:14:35.759: vmx| USB: Found device [name:Wacom\ USB\ Composite\ Device vid:056a pid:00d1 path:1/0/2 speed:full family:hid,hid-bootable]</pre>
<pre>Sep 03 14:14:35.759: vmx| USB: Found device [name:Seagate\ RSS\ USB\ Mass\ Storage\ Device vid:0bc2 pid:2100 path:1/1/1 speed:high family:storage]</pre>
<pre>Sep 03 14:14:35.759: vmx| USB: Found device [name:Realtek\ RTL8187\ Wireless\ 802.11b/g\ 54Mbps\ USB\ 2.0\ Network\ Adapter vid:0bda pid:8187 path:1/1/9 speed:high family:other]</pre>
<p>From that listing you should be able to locate your usb storage device. Once you have found it, copy the vid and pid values from the respective line. For example:</p>
<pre>vid:0bc2 pid:2100</pre>
<p>Now, run notepad as administrator (right click on the Notepad icon found in Start &gt; All Programs &gt; Accessories menu and select &#8216;Run as Administrator&#8217;).</p>
<p>Click &#8216;Yes&#8217; on the security question to allow Notepad to be run as administrator.</p>
<p>Now press Ctrl+O to open the vmx configuration file. On the lower right corner of the Open File dialog there is a combo box where, by default, &#8220;Text Documents (*.txt)&#8221; will be selected. Change that to &#8220;All Files (*.*)&#8221;.</p>
<p>Now locate the directory were your guest machine configuration files are (likely to be under C:\Virtual Machines) and open the file with .vmx extension.</p>
<p>Scroll down to the bottom of the file and enter the following on a new line (replace the contents within quotes with your vendor and product id found above):</p>
<pre>usb.autoConnect.device0="vid:0bc2 pid:2100"</pre>
<p>Save and close the file.</p>
<p>Now start your guest virtual machine. If you are using Ubuntu 10.04 your USB device will be automatically shown on your desktop.</p>
<p>You&#8217;ll also notice that a notification on Windows 7 will show up notifying you that a device driver for vmware was installed successfully.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.smachado.com/2010/09/connecting-an-usb-storage-device-to-a-vmware-guest/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing VirtualBox additional tools on Ubuntu 9.10 Karmic Koala</title>
		<link>http://www.smachado.com/2009/11/installing-virtualbox-additional-tools-on-ubuntu-9-10-karmic-koala/</link>
		<comments>http://www.smachado.com/2009/11/installing-virtualbox-additional-tools-on-ubuntu-9-10-karmic-koala/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 20:22:21 +0000</pubDate>
		<dc:creator>smachado</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Virtualization]]></category>

		<guid isPermaLink="false">http://www.smachado.com/?p=146</guid>
		<description><![CDATA[This procedure was tested on VirtualBox 3.0.12 for Windows and Ubuntu 9.10 Server 32 bit as Guest. To be able to enjoy seamless integration between the host operating system and the VirtualBox guest you have to install VirtualBox Additional Tools on the guest operating system. To do so, follow the steps: Ensure you have a [...]]]></description>
			<content:encoded><![CDATA[<p>This procedure was tested on VirtualBox 3.0.12 for Windows and Ubuntu 9.10 Server 32 bit as Guest.</p>
<p>To be able to enjoy seamless integration between the host operating system and the VirtualBox guest you have to install VirtualBox Additional Tools on the guest operating system.</p>
<p>To do so, follow the steps:</p>
<p>Ensure you have a working Internet connection.</p>
<p><strong>Step 1:</strong></p>
<p>Install requirements for the Additional Tools:</p>
<pre escaped="true" lang="bash" line="0">
sudo apt-get install gcc linux-source-virtual linux-headers-virtual dkms
</pre>
<p>Reboot after installation.</p>
<p><strong>Step 2:</strong></p>
<p>After logging in again find the Install Additional Tools option on the Devices menu.</p>
<p>Then on your guest mount the cdrom:</p>
<pre escaped="true" lang="bash" line="0">
sudo mount /media/cdrom
</pre>
<p><strong>Step 3:</strong></p>
<p>Now install the tools:</p>
<pre escaped="true" lang="bash" line="0">
cd /media/cdrom
./VBoxLinuxAdditions-x86.run</pre>
<p>This will install the additional tools for virtual box.</p>
<p>Reboot your system and you&#8217;re all set.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.smachado.com/2009/11/installing-virtualbox-additional-tools-on-ubuntu-9-10-karmic-koala/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

