Posts Tagged ‘Virtualbox’

Enabling USB in Ubuntu 8.10 Intrepid Ibex

Posted 19 Dec 2008 — by Arun
Category Ubuntu

If you are trying to install a driver for your USB printer or trying to enable USB support in Virtualbox in Ubuntu 8.10, you are in more trouble than before. Ubuntu removed support for /proc/bus/usb starting with Ubuntu 7.10, but in Ubuntu 7.10 and Ubuntu 8.04, all they did was, they commented out the lines that enabled /proc/bus/usb to work and all you had to do was to uncomment them as shown here.  In Ubuntu 8.10, they all together removed those lines. To enable /proc/bus/usb in Ubuntu 8.10, you have to add the following lines to mountdevsubfs.sh file.

Warning: The blogging software changed the quotes. You should use normal quotes, not the reverse one, so be careful if you copy and paste.

Open a terminal and type sudo gedit /etc/init.d/mountdevsubfs.sh and press enter. Once the file opens, add the following lines after do_start () function.

#
# Magic to KEEP /proc/bus/usb working
#
mkdir -p /dev/bus/usb/.usbfs
domount usbfs “” /dev/bus/usb/.usbfs usbfs -obusmode=0700,devmode=0600,listmode=0644
ln -s .usbfs/devices /dev/bus/usb/devices
mount –rbind /dev/bus/usb /proc/bus/usb ##there should be 2 hyphens before rbind, not one. The blogging software removed one hyphen

Your new mountdevsubfs.sh should look like

do_start () {
#
# Mount a tmpfs on /dev/shm
#
SHM_OPT=
[ "${SHM_SIZE:=$TMPFS_SIZE}" ] && SHM_OPT=”,size=$SHM_SIZE”
domount tmpfs shmfs /dev/shm tmpfs -onosuid,nodev$SHM_OPT

#
# Mount /dev/pts. Master ptmx node is already created by udev.
#
domount devpts “” /dev/pts devpts -onoexec,nosuid,gid=$TTYGRP,mode=$TTYMODE
}
#
# Magic to KEEP /proc/bus/usb working
#
mkdir -p /dev/bus/usb/.usbfs
domount usbfs “” /dev/bus/usb/.usbfs usbfs -obusmode=0700,devmode=0600,listmode=0644
ln -s .usbfs/devices /dev/bus/usb/devices
mount –rbind /dev/bus/usb /proc/bus/usb  ##there should be 2 hyphens before rbind, not one. The blogging software removed one hyphen

case “$1″ in
“”)
echo “Warning: mountdevsubfs should be called with the ’start’ argument.” >&2
do_start
;;
start)

Save the file and close it. Reboot the system and you are good to go.

Update: Ubuntu Virtualbox documentation says you have to insert those lines inside the do_start() function, just before the closing }. That didn’t work when I tried to install my USB laser printer. Putting it outside worked. What I did now was, I added the same lines inside too, but my Virtualbox USB is still not working.

Scanner problem with Virtualbox

Posted 10 Oct 2008 — by Arun
Category Ubuntu

I’m using Virtualbox to run Windows inside my Ubuntu box. I have a Dell AIO A962 printer/scanner/copier/fax which doesn’t work under Ubuntu. I set Virtualbox to load that printer when I boot into Windows. Printing part works fine, but when I try to scan or preview the scan, I get a message saying the scanner is being used by another process, please try again. It doesn’t work no matter how many times I try. I think the problem could be both Ubuntu and Windows holding on to the same resource? If anyone knows a solution, please leave it in the comments section.

The other problem I have is, my Ubuntu Skype voice chat won’t work if Windows is on under Virtualbox. I again think it’s the same problem as above. Though I like Virtualbox, some of these issues irritates me.

, , , ,

Ubuntu 8.10 Intrepid Ibex Alpha 4 released

Posted 15 Aug 2008 — by Arun
Category Announcement, Ubuntu

Ubuntu team has released their 4th alpha version of Ubuntu 8.10 code named Intrepid Ibex. Some of the new features in this release includes

Encrypted private directory:

The idea is to provide a default location for users to securely store sensitive data using filesystem encryption.

home/username/Private for each user, permission 700 and an ecryptfs mountpoint. To test this, install encryptfs using the following command.

  • sudo apt-get install ecryptfs-utils auth-client-config

  • sudo auth-client-config -p ecryptfs_standard -t pam-auth,pam-session,pam-password

  • ecryptfs-setup-private

Guest Sessions:

The GNOME user switching applet now provides an extra entry for starting a guest session. This creates a temporary password-less user account with restricted privileges; it cannot access any regular user’s home
directory, or permanently store data.

Network Manager 0.7:

  • Managing system wide settings (no need to log in in order to get a connection.)
  • Managing 3G connections (GSM/CDMA.)
  • Managing multiple active devices.
  • Managing PPP and PPPOE connections.
  • Managing devices with static IP configurations.
  • Managing routes for devices.

This release is for testing purposes only. Here are some of the few outstanding issues.

  • When using manual partitioning and configuring crypt+LVM, the partitioning will fail in certain configurations.
  • The Intrepid 2.6.26-5 kernel fails to boot as a guest under Virtualbox.
  • On Ubuntu systems, the “Shutdown” button on the GNOME desktop does not shut down the system, but instead logs the user out.
  • On Ubuntu systems, the default desktop theme is wrong.
  • The X.org configuration file (/etc/X11/xorg.conf) still has InputDevice entries for the mouse and keyboard, but they are ignored now because input-hotplug is used.
  • After upgrading to this version, some keys might misbehave in X.
  • The OEM mode on both Desktop and Alternate CDs gets stuck in a loop.
  • The “Print server” mode of the server CDs does not install the CUPS printing system.

Source: Ubuntu.

Installing guest additions in latest Virtualbox in Ubuntu Linux

Posted 23 Jul 2008 — by Arun
Category Ubuntu

Installation of Guest Additions (enables seamless mouse movements between host and guest OSes, share folders between host and guest etc) used to be pretty simple and straightforward with the older version of Virtualbox. It all changed with the newer version (I’m not sure which version to be exact). I’m using the latest version available for download and I have listed the steps I followed to install it. I installed Virtualbox in Ubuntu 8.04 and installed Windows XP Pro as guest OS in Virtualbox.

After you started the guest OS using Virtualbox, Click on Devices menu and select �Mount CD/DVD-ROM� and then �CD/DVD-ROM image� under that. This will show you a window as shown below. You’ll see
VBoxGuestAdditions.iso listed under that. If not, you have to look under C:\Program files\Sun\xVM VirtualBox in Windows or /opt/VirtualBox-1.6.2 or /usr/share/virtualbox/ in Linux. Click that ISO file and press the select button.

Then in the guest OS (Windows), open My Computer and double click the CD/DVD drive. For some people, double clicking the drive itself will bring you the guest additions installation wizard. For some, it’ll show
the files under that and you have to double click Virtualbox guest additions setup.exe file. This will get you the wizard. Go with the defaults and complete the wizard. Once it’s completed, you have to reboot the system. The screen resolution might change after rebooting. Go and change the resolution by right clicking on Windows desktop and selecting properties. You should now be able to move the mouse between the host and guest OSes without pressing the right control key.

Update: If you are using Virtualbox 3.0, you can try to install Guest Additions by clicking Devices -> Install Guest Additions. If it doesn’t work, then click Devices -> unmount CD/DVD-ROM and then click Install Guest Additions.

VirtualBox Guest Addition

VirtualBox Guest Addition

andLinux – Run Ubuntu inside Windows

Posted 18 Feb 2008 — by Arun
Category Ubuntu

andLinux is an Ubuntu system that runs seamlessly in Windows (2000, 2003, XP & Vista). It works only with 32 bit version of Windows. You can run andLinux without installing a virtual machine.

andLinux uses CoLinux as its core. CoLinux is a port of the Linux kernel to Windows. CoLinux differs itself from VMWare or Virtualbox by being more of a merger of Windows and the Linux kernel and not an emulated PC. Xming is used as X server and PulseAudio as sound server.

To start Linux applications, you may either use the XFCE Panel or you may choose to use the andLinux Launcher, which ships with andLinux. andLinux launcher consists of

  • quicklaunch icons (e.g. for the file manager or the terminal)
  • a start menu in the system tray (next to the clock) which can be adapted to your own needs
  • so-called
    Explorer shell extensions, i.e. context menu item, with which you can
    open a folder in the file manager / terminal or open a file with the
    text editor
  • file type associations at your choice (e.g. for KOffice files, .tex / .dvi / .ps / .pdf files)
  • andCmd.exe to run linux commands from Windows scripts

Security warning: According to andLinux, It is recommended to use andLinux only on single-user-PCs or in a trustworthy environment because the communication with the X-Server and the launcher is not secured, i.e., every user who can login to Windows can access andLinux.

I didn’t give this a try. If you have tried this, tell me your experience in the comments.

Andlinux

Moz Screenshot

Source: andLinux.

Technorati Tags: , , , , , , , ,

USB not working with Virtualbox in Ubuntu 7.10 Gutsy Gibbon

Posted 26 Oct 2007 — by Arun
Category Ubuntu

I first installed Virtualbox OSE (Open Source Edition) from Ubuntu repo. I didn’t see any option to load USB devices in the settings. The OSE version was 1.5 whereas the current Virtualbox version is 1.5.2. I thought, may be the OSE edition doesn’t support USB devices, so I removed the OSE edition and installed Virtualbox from Virtualbox.org. Even that didn’t show any option to load USB devices. I then found out from Virtualbox site that Ubuntu 7.10 Gutsy Gibbon removed support for /proc/bus/usb. If you have the same issue, this is what you have to do to fix it (Thanks to Virtualbox for the tip).

Open a terminal and type

sudo gedit /etc/init.d/mountdevsubfs.sh

Go to the lines as shown below:

#
# Magic to make /proc/bus/usb work
#
#mkdir -p /dev/bus/usb/.usbfs
#domount usbfs «» /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644
#ln -s .usbfs/devices /dev/bus/usb/devices
#mount –rbind /dev/bus/usb /proc/bus/usb

Uncomment the last 4 lines and make it look like below:

#
# Magic to make /proc/bus/usb work
#
mkdir -p /dev/bus/usb/.usbfs
domount usbfs «» /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644
ln -s .usbfs/devices /dev/bus/usb/devices
mount –rbind /dev/bus/usb /proc/bus/usb

Close and restart virtualbox. You should see the USB options in the settings. You can add the devices you want. I have edited and added this information to the Virtualbox installation tips I wrote few months back.

If you are wondering what is the difference between Virtualbox and Virtualbox OSE, they are both same except the closed source one carries some enterprise features. Here is the list of features that are there in the closed source version, but absent in open source one:

  • Remote Display Protocol (RDP) Server

This component implements a complete RDP server on top of the virtual hardware and allows users to connect to a virtual machine remotely using any RDP compatible client.

  • USB support

VirtualBox implements a virtual USB controller and supports passing through USB 1.1 and USB 2.0 devices to virtual machines.

  • USB over RDP

This is a combination of the RDP server and USB support allowing users to make USB devices available to virtual machines running remotely.

  • iSCSI initiator

VirtualBox contains a builtin iSCSI initiator making it possible to use iSCSI targets as virtual disks without the guest requiring support for iSCSI.

What I initially suspected (USB not supported in OSE edition) seems to be true and may not work even after you follow the steps given above.

Source: Virtualbox

Virtualbox13

Technorati Tags: , , , ,

Configuring Virtualbox for Sharing and Mouse Control

Posted 21 May 2007 — by Arun
Category Ubuntu

You might have read my earlier article on installing Virtualbox in Ubuntu. I would like to explain couple of more features to use in Virtualbox. You can use these features once you install the virtualbox as explained here.

1. Sharing the folders between Ubuntu and Virtualbox Windows.

(Update: You may have to install Guest Additions as described in step 2 for sharing the folders too)

I would like to explain how to share your Ubuntu folders with Virtualbox. Thanks to Raja for the guide.

Update: If you are using the latest version of Virtualbox, you can try this instead of using the command line. Click the Settings icon in the Virtualbox window. Go to Shared Folder listed on the left side (as shown in the picture below). Click the small folder icon with a green + symbol on the right side next to Access column. Select the directory in your host OS that you want to access in the guest OS. In my case, it was the download and document directories.

Vboxshare 300x245

Click Ok. You need to install the Guest Additions as described in section 2. You can’t share folders if you don’t have guest additions installed. If you have installed it already, then start the guest OS (Windows), open My Computer, Click on Tools menu and select Map Network Drive. Select the drive letter you want under Drive: and the click Browse under Folder:. Expand VirtualBox Shared Folders as shown in the picture. Now select the directories from the list and click OK. You are all set.

Vboxshare1 300x227

If the above mentioned steps don’t work, then try this. Before you start the virtualbox, open a terminal in Ubuntu. Enter the following command:

VBoxManage sharedfolder add virtualmachinename -name “sharedfolder” -hostpath “/home/username/foldertoshare”

virtualmachinename is the name virtual machine you created. I created mine with the name WinXP.
username is your ubuntu home directory name. It’s usually /home/your user name.
foldertoshare is the name of the folder you want to share. In my case it’s Documents.
Here is the command I used.

VBoxManage sharedfolder add WinXP -name “sharedfolder” -hostpath “/home/arun/Documents”

Exit the terminal. Start the virtual OS now. Once you login to Windows, Click Start – Run and enter cmd.exe. Press Enter. You’ll get a terminal window. Enter the following command:

net use M: \\vboxsvr\sharedfolder

where M is the drive name you want to assign to the shared folder. Make sure the drive name is not used by Windows already. You will now see the shared folder as a network drive under My Computers.

2. Sharing mouse control between Ubuntu and Windows without using the control key.

If you want to share your mouse between Ubuntu and Windows (using Virtualbox) without pressing the right control key, you have to install the guest additions from the virtualbox menu. Once you start the virtual OS (Windows), press the right control key to get the mouse out of Windows control and click on Devices menu. Select Install Guest Additions (see picture below). This will install Guest Additions software in the Windows box. Once installed, reboot and login. You’ll get a warning message about the mouse control. Click OK and continue. You are all set. if you move the mouse over the virtualbox, then the control goes to virtualbox. If you move the mouse out of the box, then the control goes to Ubuntu.

Update: If you are using Virtualbox 3.0, you can try to install Guest Additions by clicking Devices -> Install Guest Additions. If it doesn’t work, then click Devices -> unmount CD/DVD-ROM and then click Install Guest Additions.

Update: With the new version of Virtualbox, the installation of guest addition is not straight forward. Here are the steps to follow if your guest OS is Windows. I installed Virtualbox in Ubuntu and installed Windows XP Pro as guest OS in Virtualbox.

After you started the guest OS using Virtualbox, Click on Devices menu and select �Mount CD/DVD-ROM” and then �CD/DVD-ROM image� under that. This will show you a window as shown below. You’ll see VBoxGuestAdditions.iso listed under that. If not, you have to look under C:\Program files\Sun\xVM VirtualBox in Windows or /opt/VirtualBox-1.6.2 or /usr/share/virtualbox/ in Linux. Click that ISO file and press the select button.

VirtualBox Guest Addition

VirtualBox Guest Addition

Then in the guest OS (Windows), open My Computer and double click the CD/DVD drive. For some people, double clicking the drive itself will bring you the guest additions installation wizard. For some, it’ll show the files under that and you have to double click Virtualbox guest additions setup.exe file. This will get you the wizard. Go with the defaults and complete the wizard. Once it’s completed, you have to reboot the system. The screen resolution might change after rebooting. Go and change the resolution by right clicking on Windows desktop and selecting properties. You should now be able to move the mouse between the host and guest OSes without pressing the right control key.

Guestaddon

Technorati Tags: , , , , , ,

Installing Virtualbox and Windows in Ubuntu

Posted 07 May 2007 — by Arun
Category Ubuntu

I have successfully installed Virtualbox in my Ubuntu Feisty Fawn desktop. Installation was pretty simple. Configuration and installing Windows took some time. I’m listing the steps I followed to get it installed and configured.

How to install Virtualbox in Ubuntu Feisty Fawn:

Go to Virtualbox download site and download the binary file compiled for your OS. I installed it on Ubuntu Feisty Fawn, so my tutorial is based on Feisty Fawn installation. I downloaded the binary package for Feisty Fawn from here. Open a terminal after the download is complete. Go to the folder where you downloaded the file. Enter the following command to install Virtualbox.

sudo dpkg -i filename (in our case it’s VirtualBox_1.3.8_Ubuntu_feisty_i386.deb).

This should install Virtualbox in your system. Once the installation is complete, you can start the Virtualbox by going to Applications -> Systems -> Innotek Virtualbox. Before you start using Virtualbox, go to System -> Administration -> Users and Groups. Click on Manage Groups button on the right. Scroll down until you see vboxusers in the list (see below):

Vbgroup

(Manage Users)
Vbgroup1

(Vboxusers)

Click on Vboxusers and click Properties button on the right. You’ll see a screen as shown below with the list of users. Check the users to whom you want to give access to Virtualbox. Click OK and close the boxes.

Vbgroup2

(Vboxuser group)

Once you attach the Vboxusers group to the users, change permission to access USB devices. Open a terminal and enter

gksudo gedit /etc/udev/rules.d/40-permissions.rules

Change the line that says

SUBSYSTEM==”usb_device”, MODE=”0664″

to

SUBSYSTEM==”usb_device”, MODE=”0666″

Save and reboot your system.

Update: If you are using Ubuntu 8.04 Hardy Heron, refer to this instruction to modify the 40-permissions.rules file.

Once logged in, start Virtualbox from the menu. You’ll see a screen similar to one shown below. My screen is blank because I deleted the default one. You can use either the default one or you can create a new one. I’m going to explain how to create a new one.

Virtualbox1

(Virtualbox started)

Click on the New button on top left. You’ll see an installation wizard as show below:

Virtualbox2

(Installation Wizard)

Click next. Enter a name for the virtual machine. I gave WinXP to show it’s Windows XP installation. Select the OS type you want to install. It’s Windows XP in my case. Click Next.

Virtualbox3

(Name and OS type)

The next screen is where you allocate memory to the virtual machine. I have 1GB RAM, so I allocated 512MB to the virtual machine. The more the better, but then it might slow down your Ubuntu installation if your virtual machine memory allocation is more than Ubuntu’s. Click Next.

Virtualbox4

(Memory Allocation)

The next step allows you to create a virtual hard drive for the virtual OS. You can create a new one or use an existing one, if you had already created one. It’s going to be a new one in my case, so I selected New.

Virtualbox5

(Hard drive)

It opens another Wizard to allocate hard drive space as shown below. Click Next

Virtualbox6

(New wizard)

Now you have two options to create a virtual drive. The first option is to dynamically expand the space and the second one is to create a fixed size. If you have enough space, then select the first option. You still have to allocate the maximum space, but it’ll fill that as it gets filled. You can’t allocate 1GB and think it’ll add more space as it needs. It didn’t work like that for me the first time I created. I created with 2GB and thought it would add more as it needs, but it errored out due to lack of space (it filled the 2GB) even before the SP2 installation could complete. I think it takes more space from the allocated space as it needs. The fixed size image option takes the entire space at one time. I went with the 1st option. Click next after you choose whichever option you want.

Virtualbox7

(disk option)

Now give a name for the virtual disc image file and select the size you want to allocate. I gave the name as WinXP, so it created a file called WinXP.vid. I allocated 6 GB. Click Next.

Virtualbox8

(disk size)

Click Finish in the next step to finish the virtual disk creation and Click Finish again to finish the Virtual OS creation.

Virtualbox9

(Finish)

Now comes to OS installation part. Before you install the OS, Click on the virtual machine you just created and click on the settings button on top. It’ll show you all the configurable settings. Under the general setting, you can resize the RAM settings and you can also adjust the video memory setting. I have 256MB video card, so I allocated 128 MB for video.

Virtualbox10

(general setting)

Click on CD/DVD-ROM on the left side. Once you are there, Check Mount CD/DVD drive and select your CD/DVD drive from the drop down box. My default CD drive is /dev/cdrom, so I selected that. I had problem with Edgy when I tried to install Virtualbox in Edgy. Virtualbox didn’t detect my CD drive. I didn’t have that problem with Feisty version.

Virtualbox11

(CD drive)

The next step is Audio. Click on Audio on the left side. I’m not sure if this step is needed, but I did it anyway. It may work without doing this step. Check Enable Audio and select ALSA Audio Driver.

Virtualbox12

(Audio)

Click on the USB option. Check Enable USB Controller. Click on the tiny USB cable icon with small green dot on the right. It’ll show you all available USB devices. Add those to the filter (picture below). This won’t load the USB devices automatically when you boot the virtual OS, but it’ll give you an option to load them when you want.

Update: If you are using Ubuntu Gutsy Gibbon or Ubuntu Hardy Heron, Ubuntu removed support for /proc/bus/usb/*. Open a terminal and enter

sudo gedit /etc/init.d/mountdevsubfs.sh

Go to the lines as shown below:

#
# Magic to make /proc/bus/usb work
#
#mkdir -p /dev/bus/usb/.usbfs
#domount usbfs “” /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644
#ln -s .usbfs/devices /dev/bus/usb/devices
#mount –rbind /dev/bus/usb /proc/bus/usb

Uncomment the last 4 lines and make it look like below:

#
# Magic to make /proc/bus/usb work
#
mkdir -p /dev/bus/usb/.usbfs
domount usbfs “” /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644
ln -s .usbfs/devices /dev/bus/usb/devices
mount –rbind /dev/bus/usb /proc/bus/usb

If you are using Ubuntu 8.10 Intrepid Ibex, You won’t find those lines. Add those lines inside do_start() function before closing }. The file should look like this:

do_start () {
#
# Mount a tmpfs on /dev/shm
#
SHM_OPT=
[ "${SHM_SIZE:=$TMPFS_SIZE}" ] && SHM_OPT=”,size=$SHM_SIZE”
domount tmpfs shmfs /dev/shm tmpfs -onosuid,nodev$SHM_OPT

#
# Mount /dev/pts. Master ptmx node is already created by udev.
#
domount devpts “” /dev/pts devpts -onoexec,nosuid,gid=$TTYGRP,mode=$TTYMODE

#
# Magic to KEEP /proc/bus/usb working
#
mkdir -p /dev/bus/usb/.usbfs
domount usbfs “” /dev/bus/usb/.usbfs usbfs -obusmode=0700,devmode=0600,listmode=0644
ln -s .usbfs/devices /dev/bus/usb/devices
mount –rbind /dev/bus/usb /proc/bus/usb

}
case “$1″ in
“”)

If you are using Ubuntu 8.10 Intrepid Ibex, type the following command in a terminal:

grep vboxusers /etc/group

You should see something like this

vboxusers:x:123:username

Open the fstab file by issuing the following command:

sudo gedit /etc/fstab

Add the following line

none /proc/bus/usb usbfs devgid=123,devmode=664 0 0

Save and exit.

Reboot and continue with the rest of the setup.

Close and restart virtualbox. You should see the USB options in the settings. You can add the devices you want. Thanks to Virtualbox for the information.

Virtualbox13

(USB)

Click OK. You are now ready to start the installation of virtual OS. Put the Windows XP installation CD in the CD drive. Select the virtual machine you created from the Virtualbox and click the Start icon on top. It’ll start the installation of Windows. Windows installation will show you the virtual disk as the disk to install. Format it and install the OS. Once the installation is done and you login, you can select the USB devices you want to install from the menu. Select mount option from the VM menu and select the USB devices you want to mount.

Virtualbox starts the virtual OS in a small window. You can run it full screen by selecting full screen in the menu. Once you click on virtual OS, the control of your mouse, keyboard and USB devices go to the virtual OS. If you want to get the control back to your Ubuntu box, click the CTRL key on the right side of the keyboard. This will give the control back to the original OS.

I hope this helps you to setup your virtual machine. If you have any suggestion, please leave a comment. I felt Virtualbox is little slower compared to VMWare server and also slowed my Ubuntu machine a little bit, but the real advantage are, Virtualbox is open source and it supports USB devices like webcam without paying $$$s.

Update: Read my post Configuring Virtualbox for sharing and mouse control for more configuration options.

Technorati Tags: , , , ,

Running Windows under Ubuntu Edgy using VMWare

Posted 11 Apr 2007 — by Arun
Category Ubuntu

I have installed and using Windows from my Ubuntu Edgy machine now using VMWare server. I tried different options like Virtual Box, QEmu, Crossover Linux etc and nothing worked. QEMu worked, but it was slow and I couldn’t access Volume Control under Start -> All Programs -> Accessories -> Entertainment -> Volume control. I installed Windows using VMWare Server and it’s working perfectly for the past 2 weeks. Most of the stuff works fine. I’m trying to get my webcam to work, which was connected through a USB hub.

Here is the HowTo guide to install Windows using VMWare server (Thanks to Ubuntu Forums for the help).

Go to this link and download VMWare Server for free. Register as a new user (if you haven’t registered already) and give a valid email address. They will send the registration key to that email address. Download the file after registering.

Open a terminal (Application -> Accessories -> Terminal). Type the following commands

sudo apt-get install linux-headers-`uname -r` build-essential xinetd

Now, open the downloaded VMWare server file and extract it. It should extract the files to vmware-server-distrib (if you have the options right while extracting). Change to vmware-server-distrib by entering the following command in the terminal.

cd vmware-server-distrib

Install the VMWare server now by issuing the command below. Enter your password when prompted. You can go with the default options. It installs to /var/lib/Virtual Machines….

sudo ./vmware-install.pl

Enter the registration key sent to your email, when prompted. The installation should go without any hiccups. Once installed, you’ll see a menu option under Applications -> System Tools -> VMWare Server Console.

Start the VMWare Server Console by selecting it from the menu. Once started, it’ll show you a box with the host you want to connect to (as shown below). Select Local host and click Connect.

Vmware1

Once connected, you’ll get an option as shown below. Since this is the first time we have started the VMWare server, you have to select Create a new Virtual Machine option. Once we created the virtual machine, you have to select Open a Virtual Machine option, each time you want to start the virtual OS.

Vmware2

Once you clicked on the Create a new Virtual Machine, go with the default options. When you come to the screen of selecting the Guest Operating System, select the OS you want to install. In my case, I selected Windows XP Professional as shown below.

Vmware3

When you come to the part where it asks for the Name of the Virtual Machine and the Location, select the default if you have enough space in the root folder (8 GB). 8 GB is default, but you can adjust the size. I created with 8 GB and with Windows update and minimal programs I needed, I filled up 6 GB, so my advice is to go with default or with more space. I didn’t have enough space under the root directory, so I had to change the installation path to my home folder. I created it under /home/myusername/VMWare.

Vmware4

You have to have the Windows installation CD ready in the drive by the time you complete this step. Once it installs Windows, you are ready to go. Shutting down Windows will shut down the virtual OS and it’ll get you back to the VMWare Server. The next time you want to start the virtual OS, Start the VMWare server, select Local Host, and then click on Open a Virtual Machine. Select the virtual OS you just installed and click OK (as shown below).

Vmware5

The next step is to click Edit Virtual Machine Settings to add or remove devices (as shown below).

Vmware6

Once you select the edit option, it’ll pop up a screen as shown below with the list of hardware. I removed Floppy drive from that list since I didn’t have a floppy drive in my PC and I was getting an error each time I started the virtual machine. VMWare server won’t add the sound device by default, so click on the Add button at the bottom.

Vmware7

Click on the Sound Adapter and Click Next. Continue till you finish adding it. Similarly add USB controller, if you have one and other options if you need. Once you add what you want, click OK and close the virtual machine settings.

Vmware8

Now, Click on Power On this virtual machine. This will start Windows as shown below. You are all set and ready to go.

Vmware9

Vmware10

You have options to run the virtual OS as a console or full screen or quick switch mode. If you are running the OS under full screen (and also under console mode), you have to press CTRL and ALT key at the same time to come out of it (and back to Ubuntu). Quick Switch mode will give you a menu bar that hides at the top and when you move your cursor to the top of the screen, you’ll get the VMWare server menu.

I couldn’t get my webcam to work. It was earlier attached to USB hub. I then attached it to USB port on my desktop, but it wasn’t recognized still. I would appreciate if you anyone can help me to get it work.

Technorati tags: , , , , , , , ,