PDA

View Full Version : HOWTO: Seamless MS Windows in Edgy with VirtualBox and Beryl!


Pages : 1 [2]

dirken
July 27th, 2007, 07:43 AM
I almost got i working good. In fact when I was not reveiving any IP in my VM I set up a fixed IP in the Windows VM and now I can connect to it but the problem is that within Windows (my VM) I'm not having an internet connect wich would be very usefull to.

I'm also having another question, the bidirectional clipboard (or whatever it's called) is enalbed in within VirtualBox but when running my VM seamless it doesn't work. Is there something I should add to my connection command? And if I should what exactly do I have to add?

Thx,
Dirken

airbornespent
July 28th, 2007, 12:36 PM
I almost got i working good. In fact when I was not reveiving any IP in my VM I set up a fixed IP in the Windows VM and now I can connect to it but the problem is that within Windows (my VM) I'm not having an internet connect wich would be very usefull to.

I'm also having another question, the bidirectional clipboard (or whatever it's called) is enalbed in within VirtualBox but when running my VM seamless it doesn't work. Is there something I should add to my connection command? And if I should what exactly do I have to add?

Thx,
Dirken

Ok, that is good that you can connect, it means your tap is working. Since you set a static IP you may need to set a DNS server as well, your router is supposed to act as a DNS gateway, but it may only do it for DHCP connected machines. Assuming the internet works fine in your host, add 207.172.3.8 as a DNS server in windows. You can add 207.172.3.9 as a secondary DNS. Let me know how that works.

As to the clipboard, I haven't even tried that yet. But I did read an earlier post mentioning that is "had not been implemented yet". You've tried copying and pasting both ways?

couzin2000
August 5th, 2007, 10:47 PM
Maybe I'm a newbie... I'm just not getting this right, and somehow I haven't seen this adressed in the thread.

I've done most of the steps, I'm at the point where I've created my .iso image, mounted it, and now I'm hitting Start in Virtualbox. This is what I get:


Failed to open '/dev/net/tun' for read/write access. Please check the permissions of that node. Either do 'chmod 0666 /dev/net/tun' or change the group of that node and get member of that group. Make sure that these changes are permanently in particular if you are using udev.
VBox status code: -3100 (VERR_HOSTIF_INIT_FAILED).

Result Code:
0x80004005
Component:
Console
Interface:
IConsole {1dea5c4b-0753-4193-b909-22330f64ec45}

What am I missing here? I've actually CHMODded the TUN file, but to no avail. What gives with this machine?

EDIT1: ok, sorry -- did find the post on this... now facing different set of problems:

Failed to initialize Host Interface Networking.
VBox status code: -3100 (VERR_HOSTIF_INIT_FAILED).

Result Code:
0x80004005
Component:
Console
Interface:
IConsole {1dea5c4b-0753-4193-b909-22330f64ec45}


EDIT2: ok, you know what? never mind. I got it working. I don't know how the reboot got it to work, but after 3-4 reboots in a row, it works fine now -- including my wifi connexion. I guess I'm better at playing around in Linux than I thought!
Thanks guys!

Zyrshnikashnu
August 6th, 2007, 11:32 AM
Try the NAT method for networking. It tends to be simpler.

Martindale
August 7th, 2007, 03:40 PM
Dugg! (http://digg.com/microsoft/HOWTO_Seamless_MS_Windows_in_Edgy_with_VirtualBox_ and_Beryl)

sdowney717
August 7th, 2007, 04:05 PM
dont know if this guide was mentioned but it is also good.

http://doc.gwos.org/index.php/VirtualBox#Introduction_.2F_FAQ

It gave me my shared folder and usb devices and copy and paste

What I would like to do is print to a network LAN HP4000 laserjet.
Tha means it is plugged into my local LAN using a network cable and has an IP number.
I can do this in regular XP and ubuntu just fine.

I can also goto the web admin page for the printer using firefox.
But I can not ping the printer, I assume because there is no network 'tap'??

All i have is the shared folders.

Apache777
August 7th, 2007, 04:52 PM
Man I love this HOWTO ... I've never thought that this is even possible ... it's the best solution for me, no more wine or whatever.

THANKS A LOT BUDDY. :guitar:

ashmew2
August 19th, 2007, 09:24 AM
Thanks for the great HowTo man , really thanks, Ive been banging my head on the table for getting yahoo messenger (the windows one) to work under cedega , wine , etc. But its finally working ,
But i still need some help.
First , i need to know how to get audio input to work under xp (the guest os). Ive got audio output working by selecting ALSA in the Vbox settings.Also , im not using the Rdesktop thing.
But im experiencing major lag. Is there anyway to get rid of it ?
Thanks

darkmaster
August 22nd, 2007, 06:58 AM
dont know if this guide was mentioned but it is also good.

http://doc.gwos.org/index.php/VirtualBox#Introduction_.2F_FAQ

It gave me my shared folder and usb devices and copy and paste

What I would like to do is print to a network LAN HP4000 laserjet.
Tha means it is plugged into my local LAN using a network cable and has an IP number.
I can do this in regular XP and ubuntu just fine.

I can also goto the web admin page for the printer using firefox.
But I can not ping the printer, I assume because there is no network 'tap'??

All i have is the shared folders.

the link doesn't work !!! Can you correct it?

Dark Star
August 22nd, 2007, 07:13 AM
:o Awesome work there. Flawless and nice write up :)

dirken
August 23rd, 2007, 09:19 AM
Ok, that is good that you can connect, it means your tap is working. Since you set a static IP you may need to set a DNS server as well, your router is supposed to act as a DNS gateway, but it may only do it for DHCP connected machines. Assuming the internet works fine in your host, add 207.172.3.8 as a DNS server in windows. You can add 207.172.3.9 as a secondary DNS. Let me know how that works.

As to the clipboard, I haven't even tried that yet. But I did read an earlier post mentioning that is "had not been implemented yet". You've tried copying and pasting both ways?

1) Internet is now working on both the host and the client
2) Copying in both directions works just fine if I run XP in virtualbox but cannot get it working when using XP seamless

EXCiD3
August 23rd, 2007, 01:14 PM
Is there anything I should know if I install this on a laptop. Are there workarounds for disabling the network manager? I would prefer to use it over anther application. PM me, if this has already been posted in the thread. I haven't had a chance to read through it yet...

dirken
August 23rd, 2007, 02:36 PM
Is there anything I should know if I install this on a laptop. Are there workarounds for disabling the network manager? I would prefer to use it over anther application. PM me, if this has already been posted in the thread. I haven't had a chance to read through it yet...

If you read my previous posts it is explaned somewhere in there.

Greetz..

EXCiD3
August 23rd, 2007, 02:38 PM
lol, thanks, i figured as much...time to start reading...

holmrun
August 25th, 2007, 02:06 PM
Looking for a little help here... I had this installed and working fine for the last 3 or 4 months however something is not working correctly anymore. I can go into the virtual windows just fine via the virtual box console and everything works. My user auto logs in and everything works fine - network/internet etc. However, when I autostart or try to manually run the VBoxManage startvm "VWindows" -type vrdp command the terminal window flashes and that is it. Nothing else happens. If I go into the virtual box console I can see that the virtual machine is now in an aborted state. I can then start the machine from the console just fine again. Any ideas? The log in virtual box is less than helpful.

edit - looks like changing the scripts to run as an application instead of app in terminal windows might have done the trick.

AusIV4
August 25th, 2007, 04:16 PM
I just set this up slightly modified to use VMWare (It's not headless, but I keep it minimized and tucked away). I didn't have to do anything special for networking. I'm using NetworkManager, and I just did an ipconfig in windows to get the IP, then I pointed the rdp client to that IP.

I played with this once before, but I had not seen anything that allowed you to have a Windows taskbar, so you had to start with a windows command prompt and find the executables for any programs you wanted to run. This is infinitely more usable.

Only complaint is that sound is lagged about 3 seconds. Fine for music and most other applications I need windows for, but not good for video.

I didn't use Windows in a VM much before, and I won't use it much more now, but this will make it a more pleasant experience for most applications.

RoflCake
August 27th, 2007, 11:57 AM
So...has anyone got this to work on wireless yet? I don't know how to correctly configure Ubuntu to allow VirtualBox to recoginize a connection.

MNICY
August 28th, 2007, 04:44 AM
Ok, so i got to the point where you type
rdesktop -rsound -A -s "c:\seamlessrdp\seamlessrdpshell.exe C:\Windows\explorer.exe" <IP recorded from Windows>:3389 -u "<Your Windows Username>" -p <Your Windows Password> into the terminal (replacing the IP, username and password of course ;))
What happens, is it just sits there for a minute, and nothing happens. Then, after a little while, it says "Connection timed out"
Im using Kubuntu Feisty

any idea why its not working?

EDIT:
i just tried it again, after rebooting my system...
Now it instantly says "EROR: connect: Connection refused"

cresny
August 28th, 2007, 01:48 PM
does anyone else have non-working navigation keys in windows apps? My arrow, Home, End and Delete don't work. My keyboard is standard laptop style - no number pad. I googled around rdesktop issues, no luck. All works fine direct in VirtualBox vm session.

Any ideas? :confused:

Matakoo
August 29th, 2007, 06:37 AM
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. :smile:


Actually, there is quite an easy way to do that. It works on my setup, but let me first say that I don't use the method of integrating the windows startbar. I prefer to create launchers for KDE/Gnome to run the specific windows program I need instead. I'm not sure if this approach would work using the integrated approach. With that said, what you do is (as extras to what your how-to do that is).

On the windows side, go to http://www.steve.org.uk/Software/logoff/
and download the zipfile. Extract the archive and copy logoff.exe into c:\windows

Start notepad and create a script like this:

@echo off
logoff /qsave it as logoff.cmd, also saved in c:\windows

Create a shortcut to this cmd-file in the start-menu Autostart folder. Logout.
Everytime windows start up, your preferred user is logged in and automatically logged out immediately. And, as it happens, immediately when VirtualBox is started headlessly.

Now, on the linux side. Try this at a shell-prompt (after a reboot to make sure it all works after a fresh start of your linux host):

rdesktop -A -s "c:\seamlessrdp\seamlessrdpshell.exe C:\Windows\system32\sol.exe" 192.168.0.104:3389 -u "username" -p passwordOf course, substituting the IP-adress, username, and password for yours. In this case, solitaire should start seamlessly. And windows does not log out here, because it is explorer.exe that launches the logoff.cmd file, and explorer.exe is not your loginshell when you run stuff seamlessly like this.

All that remains to do now is to create a menu-entries in Gnome or KDE using varieties of the above commandline to launch the window apps you need.

Oh, and if you do need access to the complete desktop (for installing new software for instance) just do

rdesktop 192.168.0.110Substitute the IP for the one you gave to your tap0 interface. Now the usual windows loginscreen shows up. Type in your password and hit enter. Hold down shift while windows logs you in, and the autostart entries are bypassed.

Hope this is of some help!

wislon
August 30th, 2007, 03:30 PM
MNICY : this may be a dumb question, but have you made sure your windows firewall is turned off, or set to allow incoming remote desktop connections? Just a thought...

MNICY
August 31st, 2007, 03:40 AM
MNICY : this may be a dumb question, but have you made sure your windows firewall is turned off, or set to allow incoming remote desktop connections? Just a thought...Thanks for the reply :)
Yes, i thought of that, and i turned off windows firewall. (i hate it anyway :lolflag:)

Anyway, it works now. Its not because of windows firewall (still wasnt working after i checked that). It randomly started working, for no reason i can see....

I can use rdesktop to connect to virtualbox running windows xp home!
The problem now is, i cant seem to get it to run seamlessly.
It is there, but it is in its own window.
I tried loging off like the guide suggests, but it does not work.
Anyone know any reason why?


EDIT:
also, does anyone know how to do this:
# Now we are going to setup Ubuntu to start our Windows installation automatically for us upon login.
# Go to System->Preferences->Sessions and click the Startup Programs tab
# Click the Add button and type the command above into the text field and click OK
EDIT2:
More info:
If i run it with Compiz-Fusion, it goes full screen instead of windowed.... but it doesnt seem to be quite seamless (cant put my Windows windows (lol) into KUbuntu workspace)
in Kubuntu?

MNICY
August 31st, 2007, 09:06 PM
Anyone?

MNICY
September 1st, 2007, 04:28 AM
I tried it with both XP Home and Pro..
both gave same results :confused:

mephistophilis
September 1st, 2007, 04:40 AM
VirtualBox 1.5 support seamless Windows now.

MNICY
September 1st, 2007, 04:46 AM
VirtualBox 1.5 support seamless Windows now.

How can i download VIrtualbox 1.5?
i went to virtualbox.org, and they only have 1.4

MNICY
September 1st, 2007, 05:06 AM
Its very annoying. there are several refrences to "virtualbox 1.5.0" on the internet, but all of them point to http://www.virtualbox.org/download/1.5.0/
which gives me a

Forbidden

You don't have permission to access /download/1.5.0/ on this server.

gavinjb
September 1st, 2007, 07:27 AM
I have just tried to set this up, I have got as far as booting into Windows in VirtualBox, but Windows takes ages to pick up the IP/subnet mask but has no default gateway, so I cant connect to the internet through Windows.

if it helps my config of rc.local is as follows


tunctl -t tap0 -u gavin
chmod 0666 /dev/net/tun
/usr/sbin/brctl addbr br0
/sbin/ifconfig eth1 0.0.0.0 promisc
/usr/sbin/brctl addif br0 eth1
/sbin/dhclient br0
/usr/sbin/brctl addif br0 tap0
ifconfig tap0 192.168.1.97 up
bash -c 'echo 1 > /proc/sys/net/ipv4/conf/tap0/proxy_arp'
route add -host 192.168.1.2 dev tap0
arp -Ds 192.168.1.2 eth1 pub



gavin@gblaptop:~$ ifconfig tap0
tap0 Link encap:Ethernet HWaddr 4A:F5:99:36:11:00
inet addr:192.168.1.97 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::48f5:99ff:fe36:1100/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:44 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:25 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:6714 (6.5 KiB) TX bytes:264 (264.0 b)


Can anyone help.

Thanks,

Gavin,

MNICY
September 1st, 2007, 01:57 PM
I have just tried to set this up, I have got as far as booting into Windows in VirtualBox, but Windows takes ages to pick up the IP/subnet mask but has no default gateway, so I cant connect to the internet through Windows.

if it helps my config of rc.local is as follows


tunctl -t tap0 -u gavin
chmod 0666 /dev/net/tun
/usr/sbin/brctl addbr br0
/sbin/ifconfig eth1 0.0.0.0 promisc
/usr/sbin/brctl addif br0 eth1
/sbin/dhclient br0
/usr/sbin/brctl addif br0 tap0
ifconfig tap0 192.168.1.97 up
bash -c 'echo 1 > /proc/sys/net/ipv4/conf/tap0/proxy_arp'
route add -host 192.168.1.2 dev tap0
arp -Ds 192.168.1.2 eth1 pub



gavin@gblaptop:~$ ifconfig tap0
tap0 Link encap:Ethernet HWaddr 4A:F5:99:36:11:00
inet addr:192.168.1.97 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::48f5:99ff:fe36:1100/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:44 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:25 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:6714 (6.5 KiB) TX bytes:264 (264.0 b)


Can anyone help.

Thanks,

Gavin,Did you close the network manager?

gavinjb
September 1st, 2007, 02:28 PM
yes, I have closed the network manager and re-booted the machine

MNICY
September 1st, 2007, 03:27 PM
Hmm.... well i dont know then :(
When it did that to me, i realized i actually had to close the netowork manager ;) and then that error stoped
maybe you need to turn windows firewall off or somthing...

Anwyway, i finally got it to work! :guitar:
What i learned:
1. Follow the instructions carfully and exactly. One mistake screws you up. Double check. Tripple check.
2. Use Windows XP Pro. Home DOES NOT WORK. (i hate pro so much. i really wish home had worked)
3. kill Microsoft for giving me a screwed up ip address when i checked it. it gives me one like 15.10.0.1, and that *kind* of works, but then i go back and check the next day and it changed to 192.160.0.107... and that works perfectly.
4. Make shure you put the seamlessrdp into C:\seamlessrdp ;)

ashz
September 1st, 2007, 03:51 PM
If you want the latest Virtualbox.

Then go into synaptic and add this to your repos.

deb http://www.virtualbox.org/debian feisty non-free

You also need to add this key to authenticate it.

http://www.virtualbox.org/debian/innotek.asc

You can see al this on their download page.

http://www.virtualbox.org/wiki/Downloads

laters
ash

Matakoo
September 1st, 2007, 04:03 PM
3. kill Microsoft for giving me a screwed up ip address when i checked it. it gives me one like 15.10.0.1, and that *kind* of works, but then i go back and check the next day and it changed to 192.160.0.107... and that works perfectly.


That sounds like a brain-damaged or mis-configured dhcp-server to me. According to the command-lines you posted, you really should get an address in the 192.168.0.* net and not in the 15.*.*.*.* net. Furthermore, if this is in a private LAN the addresses should be in the 10.*.*.* (not 15) and the 192.168.*.* (not 192.160), simplified a bit. And if Windows can't find a dhcp-server, you would (if my memory serves) an address in the 172.16.*.* net (the third privately reserved net).

If you have an internal dchp-server (like a broadband router) I would check the configuration of that one first.

gavinjb
September 1st, 2007, 04:16 PM
Hmm.... well i dont know then
When it did that to me, i realized i actually had to close the netowork manager and then that error stoped
maybe you need to turn windows firewall off or somthing...


I take it that network manager is disbaled it isnt showing up at the top of the screen adn I have added exit to /etc/default/NetworkManager & NetworkManagerDispatcher

I have just tried it again and I am now getting an gateway address (takes awhile to come through though) only problem is it is the same as the IP address, and until I get this setup I cant download and install the seamlessrdp into Windows.


IP Address : 169.254.24.57
Subnet : 255.255.0.0
Gateway : 169.254.24.57

MNICY
September 1st, 2007, 05:11 PM
That sounds like a brain-damaged or mis-configured dhcp-server to me. According to the command-lines you posted, you really should get an address in the 192.168.0.* net and not in the 15.*.*.*.* net. Furthermore, if this is in a private LAN the addresses should be in the 10.*.*.* (not 15) and the 192.168.*.* (not 192.160), simplified a bit. And if Windows can't find a dhcp-server, you would (if my memory serves) an address in the 172.16.*.* net (the third privately reserved net).
I figured somthing like that.
And i typed thoes numbers in from memory, so they are probaly wrong ;)

edit:
It is working great - better then i thought it would - there is just one thing:
I thought i was supposed to get effects being applied on "Windows" windows, as well as Ubuntu windows.
Im running Compiz-Fusion, and it works with all my Ubuntu windows, but does not seem to effect the "Windows" windows...

gavinjb
September 1st, 2007, 06:12 PM
Hi,

I have just installed v1.0.5 plus Gust Addons 1.0.5 and seamless as mentioned above is integrated into the system, at the moment it is a bit buggy, but looks like it has a lot of promise and it much easier to setup (just press Host + L)

V 1.0.5 only seams to be available if you add Virtual Box source and download through synaptic, the main advantage I can see is you don't have to disable Network Manager and you aren't tied to one user.

Thanks,



Gavin,

gundumfx
September 1st, 2007, 07:41 PM
thanks for the post this was useful

stinger30au
September 1st, 2007, 09:32 PM
i have just installed virutalbox my self to tinker with XP Pro and try a few things out.
the esiest way to install virtual box is from the repo's from automatix 2.

http://www.getautomatix.com/wiki/index.php?title=Installation

when you go to this page scroll down a little and you will see a title that says " Installing Automatix2 with Apt" and follw the directions for what ubuntu your using be it fiesty, edgy or dapper.

once automatix is installed start it up and in there under virtual machine you will find virtualbox.just select it and let it install.

i then put my xp pro dics in the drive and told virtualbox to mount the cd in the drive and it booted, and installed no dramas. piece of cake.

Martje_001
September 2nd, 2007, 02:42 AM
Hi.
I can't fill in tap0 :(. Can somebody help me? (see screenshot)

gavinjb
September 2nd, 2007, 03:46 AM
I can't fill in tap0 . Can somebody help me? (see screenshot)


Thats because you have NAT selected and not Host Interface

MNICY
September 2nd, 2007, 04:06 AM
I really wish 1.5.0 of virtualbox was available for download :(
Would make everything so much easier. The 1.5.0 manual says that to get seamless all you need to do is install your OS, and press [host]+L
Then it goes into seamless....
so much easier then what we have now.

gavinjb
September 2nd, 2007, 04:29 AM
I really wish 1.5.0 of virtualbox was available for download
Would make everything so much easier. The 1.5.0 manual says that to get seamless all you need to do is install your OS, and press [host]+L
Then it goes into seamless....
so much easier then what we have now.


if you add the source to your sources.list you can download it easily (just goto www.virtualbox.org download page for details), only problem I have found is to use in seamless mode, you need to have Compiz disable or if not you have no end of issues.

You also need to make sure you install the 1.0.5 Guest Add On's before you can you seamless mode (this has me for a while)

MNICY
September 2nd, 2007, 04:27 PM
Ah. They finaly decided to put it back up.
I swear they put it up (peopel were talking about having it), then took it down when i tried yesterday...
downloading right now.
Hmm... to bad about Compiz... I might have to stick with what we are doing here :(

MNICY
September 12th, 2007, 12:17 AM
Got a workaround for this :D
Download somthing that creates a floating window, such as Google Desktop (and set it to "Floating Deskbar")
fixes the problem!

lime4x4
September 13th, 2007, 10:33 PM
i'm running feisty got virtualbox installed but i can't start it when i have the network set to host interface. This is the error i'm getting

Unknown error creating VM (VERR_HOSTIF_INIT_FAILED).
VBox status code: -3100 (VERR_HOSTIF_INIT_FAILED).

if i set the network to NAT it works fine other then it gets a weird ip address that ain't even in my network.

MNICY
September 14th, 2007, 01:26 AM
i'm running feisty got virtualbox installed but i can't start it when i have the network set to host interface. This is the error i'm getting

Unknown error creating VM (VERR_HOSTIF_INIT_FAILED).
VBox status code: -3100 (VERR_HOSTIF_INIT_FAILED).

if i set the network to NAT it works fine other then it gets a weird ip address that ain't even in my network.

Im not shure what your problem is. But, you may want to try the "seamless integration" that comes with the latest version of virtualbox. it works amazingly if you dont have compiz/beryl/compiz-fusion installed, but if you do, there are a few work arounds to get it to work (read the last couple of posts)
and go here: http://forums.virtualbox.org/viewtopic.php?t=1550

GSF1200S
September 16th, 2007, 02:44 AM
I went through all the hassel, when all I had to do is use the seamless feature with vbox 1.5.0. Oh well.

Anyone know if its possible to put icons on the (Linux) desktop to open windows (guest) applications? I would imagine you could make a shortcut that would tell vbox to input something in windows... I dont know- any ideas?

I still have everything setup as it is in this howto. For some reason, I got a syntax error with the rdesktop command, so I dont whats up with that.

Host+L works nice now on 1.5.0

MNICY
September 16th, 2007, 03:58 AM
By using the rdesktop (not the nice seamless that comes with virtualbox, but the weird thing described in this thread) you can access single programs. You could make a shortcut on your desktop which runs a command which opens up a program, but i think that would be to complicated.
I would just put icons into the "quick launch" thing, beside the Start button in your windows taskbar.

GSF1200S
September 16th, 2007, 09:00 AM
Actually, there is quite an easy way to do that. It works on my setup, but let me first say that I don't use the method of integrating the windows startbar. I prefer to create launchers for KDE/Gnome to run the specific windows program I need instead. I'm not sure if this approach would work using the integrated approach. With that said, what you do is (as extras to what your how-to do that is).

On the windows side, go to http://www.steve.org.uk/Software/logoff/
and download the zipfile. Extract the archive and copy logoff.exe into c:\windows

Start notepad and create a script like this:

@echo off
logoff /qsave it as logoff.cmd, also saved in c:\windows

Create a shortcut to this cmd-file in the start-menu Autostart folder. Logout.
Everytime windows start up, your preferred user is logged in and automatically logged out immediately. And, as it happens, immediately when VirtualBox is started headlessly.

Now, on the linux side. Try this at a shell-prompt (after a reboot to make sure it all works after a fresh start of your linux host):

rdesktop -A -s "c:\seamlessrdp\seamlessrdpshell.exe C:\Windows\system32\sol.exe" 192.168.0.104:3389 -u "username" -p passwordOf course, substituting the IP-adress, username, and password for yours. In this case, solitaire should start seamlessly. And windows does not log out here, because it is explorer.exe that launches the logoff.cmd file, and explorer.exe is not your loginshell when you run stuff seamlessly like this.

All that remains to do now is to create a menu-entries in Gnome or KDE using varieties of the above commandline to launch the window apps you need.

Oh, and if you do need access to the complete desktop (for installing new software for instance) just do

rdesktop 192.168.0.110Substitute the IP for the one you gave to your tap0 interface. Now the usual windows loginscreen shows up. Type in your password and hit enter. Hold down shift while windows logs you in, and the autostart entries are bypassed.

Hope this is of some help!

Sounds great.. the VM automatically logs off, but I have an issue. When I issue the rdesktop command, windows pops up in a window (a linux controlled window) at the login screen. Even if I manually login at this point, it still wont work seamless.

For example, using:
rdesktop -A -s "c:\seamlessrdp\seamlessrdpshell.exe C:\Windows\system32\sol.exe" 192.168.0.17:3389 -u "Penguin" -p gsfs
Brings up a window (controlled by Linux) of my windows desktop. Period. No solitaire even opening or anything, let alone it running by itself in its own window. Im so close.. I must be missing something really simple.

GSF1200S
September 16th, 2007, 10:12 AM
After mind numbing research, I found the problem, but I dont know how to fix it.

In the /etc/rc.local this directory is specified:

/proc/sys/net/ipv4/conf/tap0/proxy_arp'

but it doesnt exist! The directory's for lo, default, ath0 exist, but not tap0. This is why im getting a:

ERROR: No route to host

when issuing the rdesktop command.

Kate (i use kde, not that it matters here) shows that directory in red, which im assuming shows that the directory doesnt exist. I cant create anything new, even if the file manager is run as root. Any ideas on how to fix this?

**EDIT** I did a reboot just for good measure, and I noticed something right before the display manager booted up..

/etc/rc.local :13 syntax error unexpected newline (something like that.. i had to kill X to read it)

So, apparantly rc.local isnt being run because of an error, which of course causes it to exit.. I copied it exactly as listed in this howto, and changed all that was needed. I should not that Kate shows the very first line of the text added to be line 13, which is the number thats in the error. Heres my entire rc.local- anyone see any "syntax error?" (ip addresses arbitrary)

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
tunctl -t tap0 -u <poeticrpm>
chmod 0666 /dev/net/tun
/usr/sbin/brctl addbr br0
/sbin/ifconfig ath0 0.0.0.0 promisc
/usr/sbin/brctl addif br0 ath0
/sbin/dhclient br0
/usr/sbin/brctl addif br0 tap0
ifconfig tap0 192.168.0.14 up
bash -c 'echo 1 > /proc/sys/net/ipv4/conf/tap0/proxy_arp'
route add -host 192.168.0.13 dev tap0
arp -Ds 192.168.0.13 ath0 pub
exit 0

MKdon
September 28th, 2007, 03:02 AM
Hi,
Here is my rc.local and it works if you are getting the error message mentioned

#!/bin/sh -e
# # rc.local # # This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
# # In order to enable or disable this script just change the execution # bits.
# # By default this script does nothing.
# For Network Bridging/TAP to enable Virtual Box
# Set permissions of tun device
chown root:vboxusers /dev/net/tun

#Add a bridge, add ra0
#!/bin/sh
# set PATH for the case we are called via sudo or su root

PATH=/sbin:/usr/sbin:/bin:/usr/bin

# create a tap
sudo chmod 0666 /dev/net/tun
tunctl -t tap0 -u (user_name)
ip link set up dev tap0

# create the bridge
brctl addbr br0
brctl addif br0 tap0
Hi this is my rc.local and it works

# set the IP address and routing
ip link set up dev br0
ip addr add 10.1.1.1/24 dev br0
ip route add 10.1.1.0/24 dev br0

#set up If ra0
ifconfig ra0 0.0.0.0 promisc
brctl addif br0 ra0
dhclient br0

# Create tap0
#tunctl -t tap0 -u (user_name)
#Be sure to change user_name to your user name

# Enable tap0
#brctl addif br0 tap0
ifconfig tap0 up

MAKE SURE YOU CHANGE user_name to your username and set rc.local to execute.

in a terminal $sudo chmod +x /etc/rc.local

Good luck

MKdon
September 28th, 2007, 03:04 AM
Of course you have to change the i/f ra0 to your i/f name.

mjwood0
October 1st, 2007, 01:35 PM
This looks perfect for me as I really need Windows for work.

If I were to install XP in a virtual machine such as this, how would the XP license work?

Here's the deal --

I have an unused XP license. I don't want to activate it until I upgrade my hardware as it's tied to the MB and that's something I want to upgrade. So I was going to wait. But if I can install it in a virtual machine, when I upgrade hardware, does the XP license checker send up a red flag?

I'm really not trying to get around anything here. I just don't want to register too soon.

Thanks for any ideas!

mr_byte
October 2nd, 2007, 04:32 PM
This looks perfect for me as I really need Windows for work.

If I were to install XP in a virtual machine such as this, how would the XP license work?

Here's the deal --

I have an unused XP license. I don't want to activate it until I upgrade my hardware as it's tied to the MB and that's something I want to upgrade. So I was going to wait. But if I can install it in a virtual machine, when I upgrade hardware, does the XP license checker send up a red flag?

I'm really not trying to get around anything here. I just don't want to register too soon.

Thanks for any ideas!


I'm not really sure how this affects your license. Personally, even though I *HAVE* a license for XP Home and Pro, I use a cracked version.

M$ may differ, but I just use my moral code of "if it's only running one place at a time, then I'm legal" and my VM and my "real" XP never run at the same time.

Also, if I'm following you, you're worried if an upgrade of the physical Mobo will cause the VM'd XP to sense a hardware change. My gut here says no. The "hardware" in the VM should never change, as it's still the same software running it. It just (hopefully) runs faster on new physical hardware.

This sounds logical, but it is still a guess, YMMV.

Jeff

Frak
October 2nd, 2007, 08:22 PM
I'm not really sure how this affects your license. Personally, even though I *HAVE* a license for XP Home and Pro, I use a cracked version.

M$ may differ, but I just use my moral code of "if it's only running one place at a time, then I'm legal" and my VM and my "real" XP never run at the same time.

Also, if I'm following you, you're worried if an upgrade of the physical Mobo will cause the VM'd XP to sense a hardware change. My gut here says no. The "hardware" in the VM should never change, as it's still the same software running it. It just (hopefully) runs faster on new physical hardware.

This sounds logical, but it is still a guess, YMMV.

Jeff
I'll clarify for everybody

Virtualization is running an OS on your hardware, but translating the calls into your own native OS's as that one programs. ex. Windows calls on explorer.exe to run, it shows in Ubuntu as VirtualBox.bin running an extra process. It also uses the hardware of your computer directly through no middleman.

Emulation is a completely new hardware base, such as QEMU. It also somwhat translates the OS calls into your own OS's calls. But it mostly it emulates the hardware and runs it as its own process running in its own. All the hardware calls must be translated in the processor to run on the native hardware.

mr_byte
October 3rd, 2007, 05:07 PM
Now we're more confused :-)

But it does indeed sound like an upgrade of the actual hardware in the host machine will be completely unnoticed by the virtual machine.

I'd be able to test it, except the virtual setup I had on my old laptop didn't get backed up, so I cannot just plonk in the hardfile and run it.

AndyCooll
October 9th, 2007, 04:17 AM
Now we're more confused :-)

But it does indeed sound like an upgrade of the actual hardware in the host machine will be completely unnoticed by the virtual machine.

I'd be able to test it, except the virtual setup I had on my old laptop didn't get backed up, so I cannot just plonk in the hardfile and run it.

In effect he's saying that if you are using "virtualisation" then you are using the actual graphics card that's in your box to process graphics whereas if you are using "emulation" then the emulating software uses a fake "emulated" graphics card with code created by the emulating software. In such cases you could have the latest most powerful graphics card available in your box but the app running under the emulation software would still only see the bog standard fake emulated card.

:cool:

mr_byte
October 9th, 2007, 11:01 AM
Well, in my case using VirtualBox, the only piece of hardware that appears to not be emulated is half of my Turion X2 CPU. All the other hardware is either VBox <something> or some other stuff I **Know** isn't in my hardware (Intel bits on an AMD system?????) So I guess it's emulating all the support hardware, etc, but the CPU is not emulated, hence the speed I (usually) see from VBox

On another note, I cannot seem to get seamless working again. :( using VBox 1.5 in Seamless mode is less than nice, as all the windows look like XP, not Ubuntu.

When I last had it running, I was on Kubuntu Feisty, no beryl, compiz, compiz fusion, no XGL, or anything fancy.

And while CF looks nice, I think I'm gonna have to dump it because my should-be-flying-fast lappy is prone to functional-dysfunction ala Vista Home Ultimate (which I trashed in 5 minutes - came with this new laptop.)

However, I did have my network running fine using the VBoxManage commands. I have (had) wireless that MUST have network manager.

But now, even after checking the registry entries for NoDesktop, logging out automagically and manually, etc. I don't get a seamless desktop. I get a window, unless I use the built-in seamless mode in VB1.5, which has it's own problems. This problem was also in the repo version of VBox (1.4?) which is why I put the non-repo version in.

Any ideas?

magiceraser06
October 14th, 2007, 09:10 PM
Hey guys. Got seamless working just fine using the option with the new virtualbox. i don't really care about using the rdesktop. but my question is:

when seamless is enabled, howcome the windows desktop is still showed? the ubuntu desktop is only visible when a XP application or window is open? then, when I close it, you can see the shadow effects of the windows on the screen until i open an other window.

any ideas?

Haama
October 15th, 2007, 03:26 PM
Hi!

This is really cool, I only use windows for gaming though. And this really doesn't fit my purpose..?
Are there any programs that support 3D acceleration? In windows I was able to enable 3D on vmware in a windows xp or 2003 machine by adding mks.enable3d = TRUE to the configuration file. Also, would there be a performance boost if I ran the virtual machine full-screened on one desktop (not seamless)?

TheOtherLinuxFreak
October 17th, 2007, 05:06 PM
Will this guide work with Gutsy? When I reformat, I also want to do this.

ShiftyPowers
October 20th, 2007, 04:40 PM
I can confirm that this works in Gutsy. Just tried it and it works seamlessly. Is there a way to enable 32bit color thought?

Zenchess
October 21st, 2007, 10:13 AM
This guide is not necessary anymore, you can just install guest additions in virtual box (its a menu option), then choose 'seamless mode'. I've been using it and it works great.

Islington
October 21st, 2007, 09:32 PM
Hey Guys, I followed this all the way though to step 3 were it tells you to start windows.

I keep getting this error message:


The VirtualBox kernel driver is not accessible to the current user. Make sure that the user has write permissions for /dev/vboxdrv by adding them to the vboxusers groups. You will need to logout for the change to take effect..
VBox status code: -1909 (VERR_VM_DRIVER_NOT_ACCESSIBLE).


Result Code:
0x80004005
Component:
Console
Interface:
IConsole {1dea5c4b-0753-4193-b909-22330f64ec45}



can someone please help me?

pompeyjohn
October 22nd, 2007, 04:09 AM
This guide is not necessary anymore, you can just install guest additions in virtual box (its a menu option), then choose 'seamless mode'. I've been using it and it works great.

Whoa there tonto, not so hasty.

You'll still want to do the registry hacks to hide the desktop and increase the color depth.

Frak
October 22nd, 2007, 05:52 PM
Hey Guys, I followed this all the way though to step 3 were it tells you to start windows.

I keep getting this error message:


The VirtualBox kernel driver is not accessible to the current user. Make sure that the user has write permissions for /dev/vboxdrv by adding them to the vboxusers groups. You will need to logout for the change to take effect..
VBox status code: -1909 (VERR_VM_DRIVER_NOT_ACCESSIBLE).


Result Code:
0x80004005
Component:
Console
Interface:
IConsole {1dea5c4b-0753-4193-b909-22330f64ec45}



can someone please help me?
run
sudo gpasswd -a username vboxusers

replace username with your actual username.

mulder_edu
October 24th, 2007, 02:13 PM
I'm trying this seamless environment between Gutsy and Windows 2k Pro. Everything seems to work to a point, but Windows 2k Pro doesn't come with Remote Desktop. I recall there might be a way to make it work. Any ideas?

Edit:
Ah, never mind. Tried the Seamless mode. That did the trick. I'll go ahead and pull the registry hacks. Any way to make the windows start menu show up on all of my ubuntu desktops?

Edit:
Ah, figured that out too. Just right click on the app and have it show Always on Visible Desktop.

Anyone know how to have my Windows desktop boot automatically when I log into Ubuntu?

chickan
October 24th, 2007, 06:15 PM
Hey guys. Got seamless working just fine using the option with the new virtualbox. i don't really care about using the rdesktop. but my question is:

when seamless is enabled, howcome the windows desktop is still showed? the ubuntu desktop is only visible when a XP application or window is open? then, when I close it, you can see the shadow effects of the windows on the screen until i open an other window.

any ideas?

I had the same issue, so I tried turning off the "NoDesktop" registry change (changed it to 0), and that solved the problem, no more ghosting of windows where they look like they are still there, but aren't. Got it working with Fiesty + Beryl + i945 drivers (acer laptop).

One issue I'm running into, when I switch to another desktop, I get nothing but the blank background until I switch back to my primary desktop.

The Windows part can't get online either, I'll have to play with that some more.

EDIT: After playing around some more, turns out turning NoDesktop off doesn't help either. Anyone else have ideas?

chickan
October 24th, 2007, 06:18 PM
Anyone know how to have my Windows desktop boot automatically when I log into Ubuntu?

System - Preferences - Sessions

VBoxManage startvm WinXP

Change WinXP to the name of yours. Small modification to what was done in the original post.

mysticmatrix
October 24th, 2007, 06:28 PM
Well, in my case using VirtualBox, the only piece of hardware that appears to not be emulated is half of my Turion X2 CPU. All the other hardware is either VBox <something> or some other stuff I **Know** isn't in my hardware (Intel bits on an AMD system?????) So I guess it's emulating all the support hardware, etc, but the CPU is not emulated, hence the speed I (usually) see from VBox

Quite right. Only CPU industry(Intel/ATI) support Virtualisation, which allows virtual machines to use CPU directly. Guess GPU's might follow soon :)

WiseOdd
October 24th, 2007, 07:51 PM
Hey guys. First of all, THANK YOU ALL for this great post. Running xp simultaneously with linx is SOO great. it has solved many problems for me :)

BUT this made me wo )nder: When running xp in virtualbox, you set it up to do so via remote connection (i havent done this yet, i kinda like the showoff in just switching between desktops :) ) Is it possible to have a complete standalone Xp install, and then use virtualbox to connect via remote desktop, and have it run like it does when using the howto in this post?

The reason for this is two things. First i wont be able to use wired connections for the install, because ill mainly be using xp at the university. Second, since I have to use the space for my virtual install, this enables me to work, but NOT game, because I am not really able to play games on the virtual box. Of course ill mainly use it for working in PS and Premiere, but gaming on it would be nice too :)

Again Thx to yo all for you contributing to this thread, being able to work in win-only progs, while enjoying Ubuntu takes away a lot of grievances!!!!
Also switching between win and ubuntu are really going to make those annoying "know it all" students at the university gawk at my sweet setup :)

Regards to all, power to the Tux!

edit: lol just thought: of course i wont be able to connect via remote connection... the xp system wont be running when booting linux... doh. But still: if theres a way to configure the virtual box to use a standalone xp install, so i dont have to have both a virtual isntall and a regular install, that would be soo sweet... any1 got any ideas?

Jiipbe
October 28th, 2007, 05:11 PM
Hi

First of all thank you for this great post. And excuse me for being a total newbie to Ubuntu and Linux, but I'm enjoying it so far.

I'm having a little bit of a problem though since I would like to make it work wireless. I'm now running it under Gutsy with the guest addition and using NAT. But I need to be able to print on a XP machine on my network and then the Nat configuration unfortunately comes up short.

Any ideas on how to achieve this bridge ?

Am also having a problem of ghost windows and black background.

Any ideas?

Thank you.

hondoslack
October 29th, 2007, 03:33 PM
props dude, works great on my Archlinux install with a virutal XP. now if only I can figure out wtf is going on with my mouse cursor in the XP windows, I'll be set!

BTW, does everyone find that XP boots, shuts down, and runs programs WAY faster virtualized than when running off real hardware? I am astounded at my performance levels, even when I have several applications open in Vbox, and in linux. I couldn't be happier :-).

hondoslack
October 29th, 2007, 03:36 PM
Hi

First of all thank you for this great post. And excuse me for being a total newbie to Ubuntu and Linux, but I'm enjoying it so far.

I'm having a little bit of a problem though since I would like to make it work wireless. I'm now running it under Gutsy with the guest addition and using NAT. But I need to be able to print on a XP machine on my network and then the Nat configuration unfortunately comes up short.

Any ideas on how to achieve this bridge ?

Am also having a problem of ghost windows and black background.

Any ideas?

Thank you.

Sorry dude, VirtualBox and wireless don't play nice in that regard. Try seeing if you can get it working with port forwarding. Search this thread, some dude describes how to do NAT and port forwarding. Cheers.

hondoslack
October 29th, 2007, 03:42 PM
edit: lol just thought: of course i wont be able to connect via remote connection... the xp system wont be running when booting linux... doh. But still: if theres a way to configure the virtual box to use a standalone xp install, so i dont have to have both a virtual isntall and a regular install, that would be soo sweet... any1 got any ideas?

You can go this route with VMWare, I don't believe its possible in VBox. I had this setup for this very reason with VMWare, but ended up ditching it, 'cause I have no time to game anymore :cry:. Do some googleing regarding VMWare and raw disks. I never found any single magic post in any forum that helped me, I had to piece together everything myself based on several posts, and some trial and error (and stupidly didn't document my success). Just a note, I never got it working on my inspiron 9400 laptop, although hypothetically it should be possible.

Revfisk
October 29th, 2007, 04:14 PM
Hi,

I'm new to all this.

I tried downloading the Feisty version of virtual box and the installation stalled. Now I can't get into any installation, from th 7.10 update to Synaptic Package Manager. I'm being given an error message that says another update manager is working AND that I need to manually run dpkg --configure -a, which is a "superuser" something or other.

Help! I just want to like Ubuntu! :)

Revfisk
October 29th, 2007, 04:58 PM
OK...so now it's a new problem. Now it's telling me that "the package virtualbox needs to be reinstalled, but I can't find the archive for it."

That's it. Updates etc won't work. Help? :)

Scotty562
October 29th, 2007, 08:21 PM
This is great and everything, but when I use the rdesktop with explorer.exe my Ubuntu background gets removed and it is replaced with the windows background. In fact, the only ubuntu part of the desktop is my title bar across the top. Can I make this just show the windows bar? I'm using vmware, but I don't think that matters that much.

Don't get me wrong, this seemless stuff is great. The g/f didn't even know I was running linux. I suppose that means it is indeed integrated well enough :). Then again, as long as girls can get to their myspace they are pretty much content. Oh, and ares.

Also, it seems to dislike the avant window application with a deep passion. The windows title bar will move up and down and all kinds of other oddities. Although, without the it running my network icon still wiggles around on it's own. It's not a big deal or anything, but it is rather curious.

Anyone else experience these issues?

Fuzz
November 2nd, 2007, 01:47 AM
OK...so now it's a new problem. Now it's telling me that "the package virtualbox needs to be reinstalled, but I can't find the archive for it."

That's it. Updates etc won't work. Help? :)

Add this to /etc/apt/sources.list:
http://www.virtualbox.org/debian gutsy non-free
and then open a terminal and do this:
wget http://www.virtualbox.org/debian/innotek.asc
sudo apt-key add innotek.asc
sudo apt-get update
It should show up in the archive now.

Haama
November 4th, 2007, 08:54 AM
http://www.advicesource.org/ubuntu/Run_Existing_Windows_Instalation_On_Ubuntu_With_Vm ware_player.html

A nice guide on running your existing windows install with vmware.

ssc351
November 5th, 2007, 12:13 PM
Hi,

I've had this working great until the other day...I am not sure if I did anything or not but here is the error I am getting....I am running Gusty with an XP pro guest and Vbox 1.5.2. I followed an early post in this thread to use port forwarding so Network Manager would still work...and like I said it was working great. I've tried uninstalling and reinstalling Vbox but no luck...tried sending the port forwarding commands but no luck. I can get the VM started if I uncheck "cable connected" under the settings of the network=>NAT. But I really need to use the internet on the XP guest. Any help?


Unknown configuration in port forwarding.
VBox status code: -2805 (VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES).


Result Code:
0x80004005
Component:
Console
Interface:
IConsole {1dea5c4b-0753-4193-b909-22330f64ec45}

starscalling
November 12th, 2007, 06:32 PM
can something like this be done with qmeu?
i need good redraw rates - for video or so

pompeyjohn
November 13th, 2007, 05:58 AM
can something like this be done with qmeu?
i need good redraw rates - for video or so

*gets excited* so QEMU has a faster redraw rate? The only reason I dual boot now is because I have a flight sim (phoenix) which heavily uses directx and the .net framework. If I could get this running on ubuntu I would be skipping with joy.

somebody please tell me QEMU can do this, and that it can rock directx !

jonray74
November 13th, 2007, 10:51 AM
seamless feature works very well on VirtualBox, but it's not the big thing in my opinion, as for me, I prefer VMWARE because of the USB features that VMWARE offers.

VirtualBox has a bug when it comes to detecting USB devices. I tried connecting my Nokia 6300 Cell phone on VirtualBox and it was very unsuccessful quite frustrating, I also tried plugging in my Canon SD600 digital camera with TWAIN driver installed and it was unsuccessful as well. For some reason, VirtualBox hasn't completed that feature yet.

VMWARE however was very successful in detecting all of my USB devices which is what I wanted. For me, the seamless feature is minor, cause when it comes to performance, VirtualBox still has a lot to work on compared to VMWARE. The good thing about VirtualBox though is that it's opensource unlike VMWARE.

Frak
November 13th, 2007, 07:22 PM
*gets excited* so QEMU has a faster redraw rate? The only reason I dual boot now is because I have a flight sim (phoenix) which heavily uses directx and the .net framework. If I could get this running on ubuntu I would be skipping with joy.

somebody please tell me QEMU can do this, and that it can rock directx !
There is no VM for Linux available that can play graphical games. Even on Windows and OS X the quality and speed is bad.

Luci4
November 14th, 2007, 01:11 PM
never mind...

maxxum
November 15th, 2007, 02:25 AM
A great howto! I've had mixed success installing XPPro. Anyways what I wanted to achieve was to run yahoo messenger and install my logitech communicate stx webcam. While yahoo messenger works, I have no idea how to make XP see my webcam, even after installing logitech drivers and software.
Is this something that cannot be done?
On a similar note, I installed Office 2007 and now want to print from MS Word. How do I go about installing a printer?

EDIT: After some research, it seems that some version of virtualbox has options for USB settings while mine does not. So now the question is that how to upgrade my virtualbox without losing the XP installation and settings? My virtualbox version is 1.5.0 and I am using Gutsy.
EDIT2: I installed virtualbox 1.5.2 after uninstalling 1.5.0_OCE. The virtual machine is intact. However I get this USB error when it starts up:
Failed to access USB subsystem.
Could not load the Host USB Proxy Service (VERR_FILE_NOT_FOUND). The service might be not installed on the host computer.

lime4x4
November 15th, 2007, 08:36 AM
Have u tried this? I saved it from another post on the forum here. This is what i did to get usb working.

Basically, in the file /etc/init.d/mountdevsubfs.sh you need to edit the lines:

Code:

#
# 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

to look like this (removing four #'s):

Code:

#
# 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

3. Edit the file /etc/udev/rules.d/40-permissions.rules (for this, you must have administrative privileges)

3.1 Search for the following lines

# USB devices (usbfs replacement)
SUBSYSTEM=="usb_device", MODE="0664"

3.2 Change them to the following

# USB devices (usbfs replacement)
SUBSYSTEM=="usb_device", GROUP="usbusers", MODE="0664"

4. Restart your PC

5. You should now have write access to all usb devices.

maxxum
November 15th, 2007, 10:37 AM
I got the USB to work. It made the virtual machine a bit sluggish...but it works.

Amin1_0_1
November 16th, 2007, 07:09 AM
I can't find "Remote Display and Enable VRDP Server" in my settings,where is it?

dlogic
November 16th, 2007, 07:11 PM
Hello everyone,
I'm wanting to follow this particular how-to but I actually followed another how-to previouls y and created a host interface that I would like to remove first.

ifconfig output:
br0 Link encap:Ethernet HWaddr 00:12:3F:A7:62:80
inet addr:192.168.1.64 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::212:3fff:fea7:6280/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1275506 errors:0 dropped:0 overruns:0 frame:0
TX packets:942653 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1380436961 (1.2 GB) TX bytes:279053127 (266.1 MB)

eth0 Link encap:Ethernet HWaddr 00:12:3F:A7:62:80
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1275589 errors:0 dropped:0 overruns:0 frame:0
TX packets:942660 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1398992502 (1.3 GB) TX bytes:279053661 (266.1 MB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

vbox0 Link encap:Ethernet HWaddr 00:FF:50:BE:52:3D
inet6 addr: fe80::2ff:50ff:febe:523d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:2758 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)


How would go about removing vbox0?

Thank you in advance for your help.

viko
November 18th, 2007, 08:06 AM
hi DLogic

sudo VBoxAddIF vbox0 <user> br0

duncanyoyo1
November 18th, 2007, 05:36 PM
For some reason after i installed VirtualBox I get a new Server version of ubuntu on my boot menu. It works it's just that it runs in restricted graphics mode ( no effects and the resolution is limited to 800x600 ) how can I get it to run normally? I cannot check the restricted drivers, It says I need to install something, But I cannot seem to be able to install it ( I even copy and paste the code into the terminal and it says package not found ) If I cannot make it run normally I would like to just remove it from my boot menu.

dlogic
November 18th, 2007, 10:24 PM
viko: That actually did not remove the host interface for me, it basically just created vbox0 that was already there.

CoronaBVW
November 20th, 2007, 09:38 PM
To DELETE the interface use:

VirtualBox host networking interface creation utility, version 1.5.2
(C) 2005-2007 innotek GmbH
All rights reserved.

Usage: VBoxDeleteIF <interface name>
Delete the permanent interface <interface name> from the host system.

Lothas
November 23rd, 2007, 03:00 PM
Wow, I've gone through almost every step of this How To:
http://ace2016.net/tutorials/linux/run-windows-xp-applications-seamlessly-on-your-linux-desktop

I'm still having 2 problems:
1. I can't open the X: shared folder even though it appears under My Computer
2. I can't rdesktop to the virtual machine. I get "connection refused" when using this command:
rdesktop -rsound:remote -A -s "c:\seamlessrdp\seamlessrdpshell.exe C:\Shell\WinShellEx\WinShellEx.exe" -c "c:\seamlessrdp" localhost:6666 -u "Username" -p -password -N
Or "connection time-out" when using this command:
rdesktop -rsound:remote -A -s "c:\seamlessrdp\seamlessrdpshell.exe C:\Shell\WinShellEx\WinShellEx.exe" -c "c:\seamlessrdp" 10.0.2.15:6666 -u "Username" -p -password -N

I've been looking at other posts but there's too much info out there. It's overwhelming!

pneaveill
November 23rd, 2007, 09:44 PM
Am running Gutsy ubuntu on AMD k-7 machine with dual monitors and dual OS with Win2k. What I am hoping to do and not take things off track in this thread is to run the win2k from linux kernel natively. If moderators need to move this to its own thread, that is fine.

I loaded virtualbox and it gives this error:
VBox status code: -1909 (VERR_VM_DRIVER_NOT_ACCESSIBLE).


Result Code: 0x80004005
Component: Console
Interface: IConsole {1dea5c4b-0753-4193-b909-22330f64ec45}


(1) I ran on google search and it brought me here.

(2) I see in the posts below that someone suggested loading Beryl might help. Guess I don't know enough about Beryl to know if it will or not. FYI: I have xinerama driving my matrox 400/450 card. Will this conflict with Beryl?

(3) I attempted auto remove from synaptic and it crashed twice, then did apt-get remove and apt-get purge to remove it, which finally worked. Rebooted machine and reinstalled from apt-get rather than synaptic. Why won't synaptic remove this thing off the computer?

(4) same errors as previous attempts. What am I doing wrong on this thing?

Appreciate the assist for a semi-newb

Lothas
November 24th, 2007, 06:20 AM
I loaded virtualbox and it gives this error:
VBox status code: -1909 (VERR_VM_DRIVER_NOT_ACCESSIBLE).



I believe I had the same problem. Make sure that your user is part of the group vboxusers (under Syestem > Administration > Users & Groups). Go to manage groups, find vboxusers, properties then make sure your user is ticked. Close everything, log off and log in again. That might solve it.

pneaveill
November 24th, 2007, 01:50 PM
I believe I had the same problem. Make sure that your user is part of the group vboxusers (under Syestem > Administration > Users & Groups). Go to manage groups, find vboxusers, properties then make sure your user is ticked. Close everything, log off and log in again. That might solve it.

I appreciate the follow through. At first, I forgot to check that my name was listed in those that have access to it. For those future readers who missed this, under system -> Administration -> Users and groups, you click on the item you need, then check who has access to it. In my particular case it listed myself and root, with neither of them checked. I checked them both and rebooted and it came up.

Thanks so far and will list the next error in another box

pneaveill
November 24th, 2007, 02:43 PM
I appreciate the follow through. At first, I forgot to check that my name was listed in those that have access to it. For those future readers who missed this, under system -> Administration -> Users and groups, you click on the item you need, then check who has access to it. In my particular case it listed myself and root, with neither of them checked. I checked them both and rebooted and it came up.

Thanks so far and will list the next error in another box


For some reason, it seems to be looking for the floppy (despite my best efforts to have the floppy disabled). The error it gave was this:
PXE-E53: no boot filename received

PXE-Mof: Exiting Pxe ROM
Fatal: could not read from boot medium!
System halted.Fatal error indeed!! It locked it up tight, causing me to hit reset button after about a 10 minute wait for it to recover. Seems like I lost use of the keyboard and mouse on that computer.

pneaveill
November 24th, 2007, 07:39 PM
I appreciate the follow through. At first, I forgot to check that my name was listed in those that have access to it. For those future readers who missed this, under system -> Administration -> Users and groups, you click on the item you need, then check who has access to it. In my particular case it listed myself and root, with neither of them checked. I checked them both and rebooted and it came up.

Thanks so far and will list the next error in another box

Here is the next error: DHCP error and craps out while looking for floppy

stldirty
November 25th, 2007, 03:02 AM
ok, i get all the way up to the part that says to run the command in terminal to actual run windows xp seamlessly. right after it says i should make a launcher for the following commands. but when i enter the info into the terminal, instead of an xp desktop popping up all i see is the terminal saying "Autoselected keyboard map en-us" and nothing else...any ideas?

edit: ok after a couple of minutes it says "ERROR: connect: Connection timed out"

Lothas
November 25th, 2007, 05:00 AM
"ERROR: connect: Connection timed out"

I'm having the same problem

MasterJS
November 25th, 2007, 11:31 AM
Okay, the best way i had success was following the instructions that the last poster of page #17 wrote. It helps u use NAT and it works flawlessly.

Lothas
November 25th, 2007, 02:47 PM
I tried following the steps from the last post on page #17 but still no luck. Now Windows is "running" but I can't see it, stop it or do anything with it. Also, when I try to rdesktop to it, I get:
ERROR: recv: Connection reset by peer

adrianmak
November 25th, 2007, 07:48 PM
I used the NATconnection method posted in page#17 and it is working fine for me. However the task bar of xp guest show out of my screen.

As shown in below screen cap.

http://i108.photobucket.com/albums/n16/adrianmak/Screenshot.png

stldirty
November 26th, 2007, 03:41 AM
how do you get sound working?

adrianmak
November 26th, 2007, 04:37 AM
I want to excute Internet Explorer
rdesktop -rsound -A -s "c:\seamlessrdp\seamlessrdpshell.exe C:\Program Files\Internet Explorer\IEXPLORE.EXE" <IP recorded from Windows>:3389 -u "<Your Windows Username>" -p <Your Windows Password>

But it just give a windows xp desktop, no IE executed and it is not seamless

adrianmak
November 27th, 2007, 01:40 AM
I compiled rdesktop with a patch introduce by Kilou on page11, which patched rdesktop have one more option to execute win app with an existing rdp session.

Compilation process is smooth.
But when I execute rdesktop as normally as before, it give me an error
Failed to open keymap en_us

What's the problem ?? I didn't see this error in old rdesktop binary

JetPack
December 2nd, 2007, 05:56 AM
I may be missing the point.... but VirtualBox v1.5.2 comes with a "seamless" mode. Without running the guest OS as headless and accessing through RDP. This is done by right_CTRL^L as default from the window view.

I have noticed that this does "mask" the Gnome desktop so it is not possible to manipulate icons on the gnome desktop whilst the Windows window is "expanded" (where you can see the Windows start button) but just minimise the Windows window and then the gnome desktop is fully accesible. Obviously, restore the window to get back to the Satrt Button view.

I am not a gamer but I use my laptop for business and I have found this a great solution for integrating those nasty Microsoft applications into my serene Ubuntu environment (Visio, Access, Project).

Also, I have sound, VM shares, networking, and the display all working fine in the guest OS.

There are two commands that can be used to start-up and shudown the guest OS without even needing to run the VirtualBox GUI.

To start (using the appropriate guest OS name in quotes):-

VBoxManage startvm "WinXP-Pro"


To elegantly shutdown (again, guest OS name in quotes):-

VBoxManage controlvm "WinXP-Pro" savestate


I am now trying to find out how to place the second command as part of the gnome shutdown (or restart, or logout) routine.

sythem
December 2nd, 2007, 06:42 PM
An alternative to the networking would to be use port forwarding and Nat. Disable the built in remote desktop option and then use these 3 commands with the virtual machine off.

VBoxManage setextradata "NameOfTheVirtualMachine" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/remotedesk/Protocol" TCP

VBoxManage setextradata "NameOfTheVirtualMachine" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/remotedesk/GuestPort" 3389

VBoxManage setextradata "NameOfTheVirtualMachine" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/remotedesk/HostPort" <whateverportyouwanttouse>


This works with Nat networking and doesn't require any other linux networking configuration. Hope it's helpful.

ziroks
December 22nd, 2007, 06:42 PM
<Ignore>

ashmew2
December 28th, 2007, 05:45 AM
Hi , Thanks for the Ultimate Guide.. But i have one tiny question , I added shared folders to my Windows XP Guest Machine (I added /media itself so i could have all the drives enlisted with a single command) , So i wanted to know , how do i get read/write access on all the partitions from within the Virtual Machine (the Windows XP guest)
Thanks

ziroks
December 28th, 2007, 09:22 AM
Hi , Thanks for the Ultimate Guide.. But i have one tiny question , I added shared folders to my Windows XP Guest Machine (I added /media itself so i could have all the drives enlisted with a single command) , So i wanted to know , how do i get read/write access on all the partitions from within the Virtual Machine (the Windows XP guest)
Thanks

Hi, I had the same problem (or atleast similiar). I do not remember exactly what I did, but if my memory serves me well there are only two things that must be done.

1. Very important is to have installed Guest Additions for your Windows image.
2. To know that shared folders are stored in special server. By default this is:
\\vboxsvr\<shared_folder_name>

Of course for easier access to the shared folder you can map your \\vboxsvr in your Windows image.For XP this is done from My Computer >> Tools menu >> Map network drive

You can check this also in the user manual for Virtual box, which is placed in:
http://www.virtualbox.org/wiki/Downloads
(User Manual (version 1.5.2, updated 2007-10-18) )

* * * * *

Here I have another question: Is it possible to run games this way?

I mean i have done all the walk through and almost everything seems to work properly. However when I try to run some game (of course using Direct 3D engine) there goes "Visual C++ runtime error" or somethingl like this. This occurs only when I start the game while the Virutal machine is accessed with Remote Desktop. If I ran the virtual machine in Virtual box as a separate window all works perfectly.

Please answer when can. Hapy Holidays!

glennric
January 20th, 2008, 06:57 PM
An alternative to the networking would to be use port forwarding and Nat. Disable the built in remote desktop option and then use these 3 commands with the virtual machine off.

VBoxManage setextradata "NameOfTheVirtualMachine" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/remotedesk/Protocol" TCP

VBoxManage setextradata "NameOfTheVirtualMachine" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/remotedesk/GuestPort" 3389

VBoxManage setextradata "NameOfTheVirtualMachine" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/remotedesk/HostPort" <whateverportyouwanttouse>


This works with Nat networking and doesn't require any other linux networking configuration. Hope it's helpful.

You should point out that the rdesktop command to connect to the virtual machine with this setup is
rdesktop -rsound -A -s "c:\seamlessrdp\seamlessrdpshell.exe C:\Windows\explorer.exe" <IP of Ubuntu>:3389 -u "<Your Windows Username>" -p <Your Windows Password>
It took me a while to figure this out. The problem with this is that it is not very seamless. The client loads fullscreen. You can then alt-tab to linux apps and then the panel appears, but the desktop does not. If you try to do anything with the client it takes over the fullscreen again.

hotroddude
January 20th, 2008, 09:49 PM
wow, thats so cool. is there any place where i can find the edgy iso?

ashmew2
January 22nd, 2008, 04:21 AM
Go look in www.ubuntu.com for the edgy ISO.
But i was wondering why is rdesktop so very slow as compared to the Vbox running in the foreground ?
And is there any way to speed it up ?

bharadwaj
January 22nd, 2008, 09:27 AM
how much ram would i be needing for installing basic windows apps?

MNICY
January 24th, 2008, 04:31 AM
Just did this in Gutsy.
Worked perfectly (except for a spelling mistake, but that was MY fault) ;)

MNICY
January 24th, 2008, 01:34 PM
any way to do Window Matching with Compiz?
The "exporer.exe" shows up as "Untitled Window", but i can not get window matching to work with that title (because it is untitled?)

is there a way to force an rdesktop window to have a name or something?

mikeytag
January 30th, 2008, 03:58 PM
For anyone reading this post, Virtualbox now has a seamless mode that you can get into by pressing the right Control key and S. This is the official way to do seamless windows now and is much much easier and is being more actively developed than this old tutorial that I wrote. I recommend anyone to install the newest version of Virtualbox and give the native seamless a shot before following this.

TSJason
February 7th, 2008, 11:46 PM
I'm extremely happy with this post and find it very cool that virtualbox has integrated this functionality. I am now wondering if it's possible to achieve similar results when the OS's are swapped? IE, can I run some of my linux apps seemlessly from my windows desktop. At works I have to use the Windows desktop but I greatly prefer the stability and functionality of several linux apps over those in Windows. RIght now, I use an NX session in a seperate window to do this. I'd like to just use the particular apps in a seemless mode instead. I already searched google for this but the results are overwhelmingly windows in linux. Any thoughts on this are appreciated.

*Edit*

I realized a split moment after submitting this that someone may suggest cygwin, but that's not really feasible in this situation. I really would prefer connecting to the running linux apps in terminal services style from the remote machine....after all cygwin on linux is only as stable as windows itself.

rockerrock
February 14th, 2008, 02:06 AM
I would like to point out that after following your awesome tut that this method is EXCELLENT for "clustering". After setting this all up in Vbox on my linux machine, I took the Vbox image and put it on my real world Windows XP machine and emulated it there.

What this means, VBox (Windows XP seamless virtual machine) uses a second pc for all its processing and memory while working the same if it was local.

!! Tested on 100M network, no lag vs running locally noticeable !!

Its tons faster than running local with Linux and while Linux is busy, you can work with your seamless XP environment with no slowdown, on the same screen!


Soo cool!

If you already have this set-up per tutorial, just move your Vbox hard disc image to another machine and press start. Just make sure the other pc is networked and ports unblocked as you would for any typical network.
(Windows XP: Helped me to setup a network bridge between VirtualBox Virtual Interface and my LAN adapter)

shmengie
February 16th, 2008, 02:13 PM
I can't find "Remote Display and Enable VRDP Server" in my settings,where is it?
yeah, me too. i'm running 1.5.0 ose.

edit: nvm. i found the deb for 1.5.4.

edit again: holy macaroni! i am up and running. this is the coolest, thx!

lancerocke
February 16th, 2008, 04:39 PM
Pretty cool idea. I think I will give it a shot with my vmware install to see if that works.
I cant get the internet working.
Here is my

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
tunctl -t tap0 -u danny
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 192.168.1.102 up
bash -c 'echo 1 > /proc/sys/net/ipv4/conf/tap0/proxy_arp'
route add -host 192.168.1.100 dev tap0
arp -Ds 192.168.1.100 eth0 pub
exit 0

shmengie
February 16th, 2008, 05:14 PM
okay, perhaps i spoke too soon. after i had everything working, i decided to test the auto-start function to see if it would work at boot up. well, i heard the windows startup sound and "VBoxManage startvm WXP -type vrdp" is in the startup group and is running as a session, but i don't see the windows taskbar. so i reranrdesktop -rsound -A -s "c:\seamlessrdp\seamlessrdpshell.exe C:\Windows\explorer.exe" 192.168.1.3:3389 -u "xxxx" -p xxxxxof course, i got only a windows view, so i logged out and reran the just mentioned 'rdesktop' command again. this time, i saw the windows taskbar for about half a second, then it went away. this time, 'vboxmanage...' is not in the current sessions. (btw, i just tried the 'rdesktop' command again. this time, i had the windows taskbar for about 5 seconds before it just vanished).

bottom line, it seems like it's working, but crapping out very quickly for some reason. after i had it working, i didn't make any changes other than rebooting to check the auto-start. anyone have any ideas?

thx!

shmengie
February 17th, 2008, 02:37 PM
okay, i figgered out what's going on: if i close my terminal session, it kills the reomte session. is this expected behavior? any way to fix it? thx!

themonkeyspanner
February 17th, 2008, 05:26 PM
I am having trouble with this VBOX setup.:confused:

Do I have to do anything with my " /etc/network/interfaces " file?

As I have used the scripts detailed here and set everything up but I can not see the virtual WinXP Pro machine from my Windows Vista physical machine on my network. I can not ping the VM machine at all or anything.

Am I doing something wrong?:(

tshearman
March 1st, 2008, 10:40 PM
Oh jeez! I'm so close!

Windows is up and running, everything is cool.


toby@CHEMATHHome:~$ VBoxManage startvm "Windows" -type vrdp
VirtualBox Command Line Management Interface Version 1.5.6
(C) 2005-2008 innotek GmbH
All rights reserved.

Waiting for the remote session to open...
Remote session has been successfully opened.
toby@CHEMATHHome:~$


All is good...

Now I run


toby@CHEMATHHome:~$ rdesktop -rsound -A -s "C:\seamlessrdp\seamlessrdpshell.exe C:\Windows\explorer.exe" 192.168.1.199:3389 -u xxx -p xxx

Autoselected keyboard map en-us


But the entire Windows Desktop pops up, not just the Taskbar...
EDIT: It is seamless though. It has no titlebar etc... just the whole screen as Windows Desktop (alt + grab doesnt do anything)

Thoughts anyone... I saw someone wrote that virtualbox now has it's own seamless built in... does anyone know how to make that work?

Thanks

bben
March 8th, 2008, 08:47 AM
Thoughts anyone... I saw someone wrote that virtualbox now has it's own seamless built in... does anyone know how to make that work?

Thanks

I had to press right-control + L to enter seamless mode
It's glitchy though, especially when you're using compiz-fusion

enitemaus
March 19th, 2008, 12:37 PM
I've managed to do everything without any errors, it works perfectly (amazing job you've done with this howto).

As I said, everything went well except for one thing: The rdesktop seems to mess with keyboard layout stuff... when i start the VM normaly, it works perfectly (i use PT-BR on ABNT2 Brazilian keyboard), but when i start in background and connect with rdesktop, it's all messed up.

Anyone having the same issue? Or know anything i can do to fix this?

That's the only reason i'm not using this on production environment yet. Thanks for everything else anyway!

sp3ctum
March 28th, 2008, 09:58 AM
I'd very much like to try this, but I'm not sure what to follow. The howto reads it's for edgy, but I have gutsy. Do I need another tutorial, or am I good with the one on the first page?

dundel
March 29th, 2008, 11:34 AM
I never got rdekstop working i'm going to try this, thanks for the tut.
I'm running a virtualized Windows XP (vbox), now for almost 7 months. It's a really nice setup to be working in.
I'm using Gutsy with 3 taps

sp3ctum
March 29th, 2008, 12:48 PM
Is the tutorial on the first page valid, or do additional steps need to be undertaken for 7.10 ?

rpm161
April 1st, 2008, 09:23 AM
I had to press right-control + L to enter seamless mode
It's glitchy though, especially when you're using compiz-fusion

Can you elaborate on this? I've also experienced some "glitchyness" with seamless mode and thought that it might be due to compiz-fusion. Glitches include: screen freezing, XP application windows not disappearing when the "X" button is clicked to close, WinXP start menu gets stuck open, black screen, etc.

Pls let me know if you've found a workaround!

sythem
April 17th, 2008, 02:46 PM
You have to sign in twice, the 2nd time it's seamless, don't know why.

P.S. This was obviously a reply to a much earlier post.

Tim0miT
April 22nd, 2008, 10:46 AM
erm yeah, thanks


NOT, totally f**ked my XP install up, i gota go through the whole XP install now, and go through eh who activation again, which took me like 1/2 a f**king hour to sort out!!!

they gota make this seemless windows things alot more user friendly!!!

sorry im angry, lol

navaburo
April 30th, 2008, 08:53 PM
Great HOWTO! I am happily using seamless XP/Vbox on my Fedora 9 system. Nothing had to be changed except the VBox install itself. I needed to get the generic Linux version (.run).

The above works perfectly for me, using synergy to share a mouse and keyboard between the desktop and the laptop. Synergy and VirtualBox's gui DO NOT GET ALONG. But rdesktop has much better mouse handling so synergy is no problem.

I have a minor addition: HOWTO use NAT instead of Bridging:

I use this setup on a laptop which is always traveling around. Some networks I use regularly are quite picky about what machines they allow on the network, and so bridging really isn't an option. Also, Jose, you may find this useful (since bridging broke your system). So I use NAT in the following way:

1. Use the default VBox networking settings (NAT).

2. Add a port forward for rdesktop (3 commands on the host system):

VBoxManage setextradata "LifXP" "VboxInternal/Devices/pcnet/0/LUN#0/Config/guestrdesk/Protocol" TCP

VBoxManage setextradata "LifXP" "VboxInternal/Devices/pcnet/0/LUN#0/Config/guestrdesk/GuestPort" 3389

VBoxManage setextradata "LifXP" "VboxInternal/Devices/pcnet/0/LUN#0/Config/guestrdesk/HostPort" 3389

3. In the rdesktop command, instead of <the windows IP you wrote down> use localhost. You actually never need to write down the windows ip ;)

4. Enjoy! :popcorn:


EDIT: Clarification about network/nat/seamless
The above technique does NOT make seamless work! The way I was using seamless was by pressing [HOST]+L in VirtualBox. Below I will give the various possible methods by which seamless over a network could work:

1) The rdesktop technique will work over the network, but will only be seamless if you use Bridged. No NAT. :(

2) In a NAT configuration, by using ssh R-tunneling, initiated on the guest (think Putty), you can access the VM's port 3389 instead of that of VBox, in theory allowing seamless rdesktop use. However, every time I have tried this I get a login screen (even though i am allready logged in) on the rdesktop display (no seamless), which has a password typed in and grayed out. Simultaneously the VM crashes.

3) Just use the seamless mode that is built into VirtualBox, by pressing [HOST]+L. Of course, if you want to use this over the network you will need X-forwarding. However, I have found this to be slow, glitchy (invisible windows and smearing), and unstable (causing the VM to randomly crash).


Hope some of this can be useful. I have certainly learned from over three days of playing with this and reading through this epic thread!

ashmew2
June 7th, 2008, 08:27 AM
For people with Hardy Heron and new version of Vbox (1.6.x) , check :
http://ubuntuforums.org/showthread.php?p=5134497#post5134497

mojorising
June 23rd, 2008, 02:01 AM
Woodgdo1, Thanks for the AD tip I was wondering why I wasn't getting the seamless windows in my rdp session going and your tip really did the trick!

Mike

mojorising
June 27th, 2008, 10:19 AM
This works pretty well. Thanks for the great howto!

I am running into one pretty serious problem, however.

When I run my rdesktop session, I see these messages at the command line:

WARNING: Failed to aquire ownership of PRIMARY clipboard
WARNING: Failed to aquire ownership of CLIPBOARD clipboard


While rdesktop is running and connected to my VM, I can not copy or paste at all. When I try, the application I'm trying to paste to gets "stuck" for a minute or two, preventing any input from the keyboard or mouse.

The issue is serious because I *really* need to be able to copy and paste among Linux applications (if I can't copy/ past from Linux to Windows or in Windows at all, that's not a problem).

I searched Google for this error message and I only found one English result, which doesn't give me much to run with: http://osdir.com/ml/network.rdesktop.user/2004-11/msg00006.html

Thanks a ton for any help anyone out there can provide.


Mike

Be_Linux
July 9th, 2008, 02:16 AM
i'm useing this virsion of VirtualBox
http://up5.m5zn.com/photos/00087/gnicl94ijeqo_th.jpg (http://up5.m5zn.com/photos/00087/gnicl94ijeqo.jpg)

and i Can't find Remote Display in liste
http://up5.m5zn.com/photos/00087/py1gla57hens_th.jpg (http://up5.m5zn.com/photos/00087/py1gla57hens.jpg)

how can i install the missing one ---> Remote Display

liechtir
July 11th, 2008, 06:50 PM
Hi guys

The tutorial tell us to disable the network manager. My wlan card is running using the nm-applet 0.6.6 which I guess is the user itnerface for the network manager.

How can I run my card without network manager, so I can do that seamless integration of XP to gnome?

At the moment I'm using NAT in XP image, so I'm able to browse the internet from that win xp image.

Thanks,
Remo

mr_byte
July 11th, 2008, 09:40 PM
Hi guys

The tutorial tell us to disable the network manager. My wlan card is running using the nm-applet 0.6.6 which I guess is the user itnerface for the network manager.

How can I run my card without network manager, so I can do that seamless integration of XP to gnome?

At the moment I'm using NAT in XP image, so I'm able to browse the internet from that win xp image.

Thanks,
Remo

I had that problem as well. Go to http://ubuntuforums.org/showthread.php?p=2980021#post2980021 (http://ubuntuforums.org/showthread.php?p=2980021#post2980021) and read my summary.

I've added things since then, but you'll get the gist of it. The first bit shows how to redirect a port and you won't need that tap0 stuff that messes with networkmanager. :guitar:

liechtir
July 12th, 2008, 05:20 AM
Setting up Windows with the outlogout worked great, thanks for that!

Now I got the problem, that if I do:
rdesktop -rsound -A -s "c:\seamlessrdp\seamlessrdpshell.exe C:\Windows\explorer.exe" localhost:6666 -u "user" -p password

I get:
Autoselected keyboard map en-us
ERROR: connect: Connection refused

First: I need to use Swiss German keyboard, can this be set somewhere in VBox(or is the rdesktop the one who set's it?)

How to configure the network interface in VBox? At the moment it's set to NAT.

Thanks dude!

Remo

mr_byte
July 12th, 2008, 07:59 PM
Setting up Windows with the outlogout worked great, thanks for that!

Now I got the problem, that if I do:
rdesktop -rsound -A -s "c:\seamlessrdp\seamlessrdpshell.exe C:\Windows\explorer.exe" localhost:6666 -u "user" -p password

I get:
Autoselected keyboard map en-us
ERROR: connect: Connection refused

First: I need to use Swiss German keyboard, can this be set somewhere in VBox(or is the rdesktop the one who set's it?)

How to configure the network interface in VBox? At the moment it's set to NAT.


Thanks dude!

Remo

I always use NAT, myself, so as to not have to run a virus scanner etc. I figure that if someone can hop thru my router and the NAT to my VM, then they DESERVE to be in there ;) but there's nothing in there I'm worried about them getting into. (then again, I rarely network out of my seamless VM anyway.)

Rdesktop will be where you set the keyboard, not sure of how to do that, might be in the man page.

For the connect refused: You are sending the user/password you setup in your VM? Also, you need to wait a little to get the VM up and running. If you are using the flag file setup like I described, it should go fine.

The only other thing I can think of is that the VM is not running for some reason. Try running the VM from VBox first, before you run it headless from a command prompt. Make sure that the name you call from the command prompt is the same you used to setup the VM (ie:Seamless, or XP, or what have you)

Have you reset your networking to get rid of the tap0 stuff? I don't know that it would conflict, but it could.

Jeff