![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
|
|
Desktop Effects & Customization This section is for all your compositing needs. This includes Beryl, Compiz, xcompmgr, and other fancy apps which take advantage of compositing managers such as kiba-dock and avant window decorator |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
5 Cups of Ubuntu
![]() Join Date: Feb 2006
Beans: 31
Ubuntu 9.04 Jaunty Jackalope
|
Alright, I have finally done it. I have integrated Windows XP Professional into my Ubuntu desktop using VirtualBox. Words cannot begin to describe how incredibly sweet and productive this kind of setup is. Imagine being logged into your Ubuntu desktop and whenever you want to run a Windows app you simply click on the Windows Start Menu at the bottom of your screen and run it. Well that's what this guide will walk you through setting up. Take a look at this screen shot to get an idea for what I am talking about:
![]() Imagine if you are a developer that needs to run Visual Studio repeatedly. Or maybe you are a web developer like me that goes into Flex and Flash occasionally. (Both are products from Adobe with no Linux port, you will see from the screenshot that I am running Photoshop 9 CS2 like this) Needless to say, having this setup would help you save a lot of time, if not solely for the purpose of impressing your friends. Oh, and to top it all off, it runs under Beryl just fine. Almost all the effects in Beryl affect the other windows. (See bottom of guide to find out which effects won't work) There are some limitations, like full 3D support for games and such, but for the most part it runs all Windows programs flawlessly. Also, as a side note I was able to get this whole configuration working using Edgy. There are a few issues that could pose problems in Feisty, mainly Network Manager messing with the config. I will post another tutorial for Feisty when I get the chance to upgrade my desktop. Step 1: Install and Configure VirtualBox VirtualBox is one of the best virtualization apps I have ever seen. I put it right up there against VMWare Workstation, and it tends to perform better in my opinion. In Edgy, you can download and install VirtualBox by either using Automatix (http://www.getautomatix.com) or by installing the .deb from http://www.virtualbox.org I personally installed it through Automatix and find that the easiest route as it makes sure you have everything else you need for it. You can find VirtualBox under the Virtualization section of Automatix. Ok, once you have VirtualBox installed we are going to make a new virtual machine. Step 1a: Setting Up a Virtual Machine
Step 1b: Configuring Your Virtual Machine
Ok, we now have our VirtualBox Machine ready to boot up and install windows, however we are going to configure a few things on the Ubuntu side first. Step 2: Setup Ubuntu Networking Before I go down this road with you there are a few things I need to make known. First, I have only tested this setup on a desktop with a physical, wired network connection. It may work wirelessly, but I have not tested it. Also if you make use of Network Manager, you will need to make sure it doesn't run anymore. You can do that easily, without uninstalling it, by simply creating two files with the word: exit as the only thing in them. Use your favorite editor, mine is pico, and create these files like this: (Quick pico reference: to exit a file and choose whether or not to save it use: Ctrl+x) Code:
sudo pico /etc/default/NetworkManager sudo pico /etc/default/NetworkManagerDispatcher Ok, now that that's out of the way let's move on.
Step 3: Configure your Windows Virtual Machine Ok, now we are going to boot up our Windows Virtual Machine. Go ahead and boot up your VM by opening up Applications->System Tools->InnoTek VirtualBox and then selecting your virtual machine and clicking the “Start” button. I am not going to walk you through installing Windows, because it is mind numbingly boring and I am betting, that if you are reading this guide, chances are you have wasted many hours of your life reinstalling Windows. When you are done installing it come back to this guide to continue. Welcome back! I hope you had a fun time.
If you are thinking to yourself, “Well. it would just be easier to not have a password.” Stop right there and set one anyway. It is not an issue of security. If you don't setup a password then you will not be able to login to your Windows VM seamlessly.
Now we are going to adjust a couple registry keys that drove me up the wall. By default XP Pro comes configured to only allow remote access at 16 bit color. Well, frankly this looks like butt on your desktop especially when you have a slick Beryl interface. So we are going to change that.
Next, we need to set it up so that your Windows install only displays the Task bar and not the desktop on login.
Now, we need to set our Windows install up so that it logs in your specified user in automatically.
Now we need to install VirtualBox's Guest Additions for seamless mouse movements (thanks merovius for pointing this out)
Our last step is to read the network IP that Windows is using
Note: This IP address has to be DIFFERENT than the Virtual Box IP that you put in the /etc/rc.local file. If it is not different then configure windows to use a different IP or configure your router to give your Windows install a different IP.
Step 4: Configure your VirtualBox install to run headless and automatically VirtualBox has this awesome feature where you can run your Virtual Machines headless. Meaning you can start and stop them from the command line and they simply run in the background. Remember when I had you check the box to Enable VRDP? Well, that's what that does. It enables your virtual machine to run headless.
Step 5: Integrate into your Ubuntu panel Ok, the next step is to run your whole Windows seamless setup. First run the following commands from a terminal window to make sure they work, and then I recommend making a Custom Application Launcher in your Ubuntu Panel. I use this icon if you are looking for a nice one: ![]() (I will assume that most readers know how to do this, right click your top panel and you are on your way First we need to make sure that our bottom panel is hideable, so that we can get to our start bar if we want to. You will notice from my screenshot that I have a dual monitor setup and the Windows bar is across the entire bottom of my screen. That is because I moved my bottom panel up to the top of my right monitor so it is out of the way. However, if you don't want to do that, or you only have one monitor then do this:
Now, let's run our Windows install seamlessly for the first time!
Woohoo! You should have seen the desktop flash and you will be presented with a lovely blue Windows taskbar at the bottom of your screen. If your bottom panel is in the way, then just click one of the hide arrows to see your new Windows taskbar. That's it! Easy huh. Well, it's not too difficult it is just time consuming to setup and get running. Good news is that now you can run it at will by clicking your panel launcher or running the rdesktop command again. Only downside, is that the first time you run it you will have to Log Off once before seamlessness will be in effect. Maybe someone can whip up a VB app that will log out the Windows user only on first login so this is done automatically. Have fun enjoying your new setup. P.S. Here are some important things to know about your new setup
Last edited by mikeytag; May 5th, 2007 at 03:21 PM.. |
|
|
|
|
|
#2 |
|
First Cup of Ubuntu
![]() Join Date: May 2007
Beans: 1
|
Re: HOWTO: Seamless MS Windows in Edgy with VirtualBox and Beryl!
Would this tutorial work with Feisty? i would hope so because this setup would solve all my problems.
Edit, i just re-read your post again, i noticed that you are going to repost this when you have got it working for Feisty. Last edited by Xala; May 5th, 2007 at 05:46 AM.. |
|
|
|
|
|
#3 |
|
A Carafe of Ubuntu
![]() Join Date: Apr 2007
Location: Skydome
Beans: 112
Ubuntu 7.10 Gutsy Gibbon
|
Re: HOWTO: Seamless MS Windows in Edgy with VirtualBox and Beryl!
Amen to what Xala said. I've bookmarked this thread!
If I can move my work-required Windows apps to my Feisty box...hubba. |
|
|
|
|
|
#4 |
|
Gee! These Aren't Roasted!
![]() Join Date: Apr 2007
Beans: 169
|
I have just tried this on Feisty and the problem I have is that the mouse position is not syncd between the Upuntu mouse and the Windows one, hence you see two pointers and this prevents it from working for me. I am searching for a solution and will post here if I find one.
|
|
|
|
|
|
#5 |
|
Way Too Much Ubuntu
![]() Join Date: Mar 2007
Beans: 226
|
Re: HOWTO: Seamless MS Windows in Edgy with VirtualBox and Beryl!
I believe you need to install "guest additions" to Virtualbox. My mouse moves seamlessly across both desktops.
|
|
|
|
|
|
#6 | |
|
5 Cups of Ubuntu
![]() Join Date: Feb 2006
Beans: 31
Ubuntu 9.04 Jaunty Jackalope
|
Re: HOWTO: Seamless MS Windows in Edgy with VirtualBox and Beryl!
Quote:
Hey if any of you guys get it running great in Feisty, let me know what differences there were from this tutorial and we can post another one for Feisty users. |
|
|
|
|
|
|
#7 |
|
Gee! These Aren't Roasted!
![]() Join Date: Apr 2007
Beans: 169
|
Re: HOWTO: Seamless MS Windows in Edgy with VirtualBox and Beryl!
I've just installed the guest additions.
When I fire up the rdesktop session, I get a big blue screen and I can use ALT to move the screen to see the START menu. The windows cursor is the pointer/hourglass combination one and the mouse does move it around. However clicking it does nothing. I can't click on "start" to log it off as per the instructions. merovius - when you say yours works, is that all under Feisty? note: when I said about mouse problems I meant when in "rdesktop" not when running the virtualbox in the foreground - the mouse works in that and alwasy has, it's just in rdesktop that it is a problem. I use rdesktop for other remote machines and it is fine. |
|
|
|
|
|
#8 |
|
A Carafe of Ubuntu
![]() Join Date: Apr 2007
Location: Skydome
Beans: 112
Ubuntu 7.10 Gutsy Gibbon
|
Re: HOWTO: Seamless MS Windows in Edgy with VirtualBox and Beryl!
I'll add there is a Feisty deb at http://www.virtualbox.org/download/1.3.8/
Code:
Index of /download/1.3.8 Name Last modified Size - vbox-kernel-module-src-1.3.8.tar.bz2 14-Mar-2007 09:05 115K VBoxGuestAdditions_1.3.8.iso 14-Mar-2007 09:03 2.2M VirtualBox-1.3.8_mdv2007.1-1.i586.rpm.run 14-Mar-2007 08:36 10M VirtualBox-1.3.8_openSUSE102-2.i586.rpm.run 14-Mar-2007 13:42 10M VirtualBox-1.3.8_rhel4-1.i586.rpm.run 14-Mar-2007 08:37 12M VirtualBox-OSE-1.3.8.tar.bz2 14-Mar-2007 08:39 17M VirtualBox_1.3.8_Debian_etch_i386.deb 14-Mar-2007 11:03 10M VirtualBox_1.3.8_Debian_sarge_i386.deb 14-Mar-2007 08:36 10M VirtualBox_1.3.8_Linux_x86.run 14-Mar-2007 08:49 12M VirtualBox_1.3.8_Ubuntu_dapper_i386.deb 14-Mar-2007 08:37 10M VirtualBox_1.3.8_Ubuntu_edgy_i386.deb 14-Mar-2007 08:38 10M VirtualBox_1.3.8_Ubuntu_feisty_i386.deb 22-Apr-2007 20:50 11M VirtualBox_1.3.8_Win_x86.msi 14-Mar-2007 08:52 13M |
|
|
|
|
|
#9 |
|
Chocolate Ubuntu Mocha Blend
![]() Join Date: Mar 2006
Location: Hampshire,UK
Beans: 1,783
Xubuntu 9.04 Jaunty Jackalope
|
Re: HOWTO: Seamless MS Windows in Edgy with VirtualBox and Beryl!
Excellent stuff! Weird to have this integration and the speed compared to VMware!
I am on Edgy! Some questions/suggestions.... Is it possible to "gracefully" shut down the windows session? I see you can: Code:
VBoxManage controlvm "Windows-XP-Pro" poweroff ~~~~~~~~~~~~~ I too needed the VBox Guest Extensions to get the mouse working properly ~~~~~~~~~~~~~ I proabably don't need to do this as I rarely venture into XP using VMware, but can anyone suggest a script that will handle both commands; a) start the headless session and b) start the desktop, once the session has loaded. I don't need to load up the headless session on boot, partly because of use, partly because of overhead. ~~~~~~~~~~~~~ All my filesystem mounts seem to have disappeared, and Code:
sudo mount -a ~~~~~~~~~~~~~ and it is taking my desktop an extra 1 minute 45 seconds to be ready for business, and opening up anything nautilus / terminal / whatever takes between 20 seconds and a minute to come up on screen ~~~~~~~~~~~~~ Removing: Code:
tunctl -t tap0 -u <username> chmod 0666 /dev/net/tun /usr/sbin/brctl addbr br0 /sbin/ifconfig eth0 0.0.0.0 promisc /usr/sbin/brctl addif br0 eth0 /sbin/dhclient br0 /usr/sbin/brctl addif br0 tap0 ifconfig tap0 <vbox_ip> up bash -c 'echo 1 > /proc/sys/net/ipv4/conf/tap0/proxy_arp' route add -host <main_ip> dev tap0 arp -Ds <main_ip> eth0 pub ~~~~~~~~~~~~~~ I can't live without my ubuntu panel being at the bottom of the screen, in view. I tried moving the XP start menu to the top of the screen, ( by running a normal Vbox session of XP) but this sits on top of any windows I have open. ~~~~~~~~~~~~~ Other than that...fantastic work, well done mikeytag!
__________________
Experience is the only genuine knowledge Karmic kernel for my dvb card (Asustek Dual P7131) now fixed thanks to Vink's custom kernel from Alexey's patch Bimmablog Last edited by Jose Catre-Vandis; May 5th, 2007 at 08:45 PM.. |
|
|
|
|
|
#10 |
|
5 Cups of Ubuntu
![]() |
Re: HOWTO: Seamless MS Windows in Edgy with VirtualBox and Beryl!
Pretty cool idea. I think I will give it a shot with my vmware install to see if that works.
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|