Results 1 to 7 of 7

Thread: Ubuntu server and virtual box questions...

  1. #1
    Join Date
    Oct 2010

    Ubuntu server and virtual box questions...

    So I want to set up two virtual Windows XP systems and be able to VNC into them. I want to run these Virtual machines on ubuntu server (as I am familiar with ubuntu) how would I go about doing this?/Where should I look for answers?

  2. #2
    Join Date
    Apr 2010
    Ubuntu 13.10 Saucy Salamander

    Re: Ubuntu server and virtual box questions...

    I would suggest that you download VirtualBox or VMware Player and then create your virtual instances

  3. #3
    Join Date
    Nov 2008
    Metro Boston
    Kubuntu Development Release

    Re: Ubuntu server and virtual box questions...

    I'd use VirtualBox and make sure to configure the virtual network interfaces in "bridged" mode. That way they get addresses directly from your network's DHCP server and are visible to other machines on the local network. In the default "NAT" mode you would have to tunnel incoming traffic through the host back to the guest. In bridged mode, you should be able to see each machine with VNC.

    I'd devote at least 512M to a Windows XP guest; 768M if you can afford it. On an Ubuntu box with 2 GB of total memory, you'll have plenty of room for all of them.

    Remember you'll need two legitimate Windows license keys to do this.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  4. #4
    Join Date
    Dec 2007

    Re: Ubuntu server and virtual box questions...

    I have an Ubuntu 12.04 server running a headless VirtualBox. You can control your VMs via the command line, or your can use something like phpVirtualBox (

    To install headless Virtualbox after adding the repository:
    sudo apt-get install virtualbox-[current version] --no-install-recommends
    I've attached my notes on the install with phpVirtualBox
    Attached Files Attached Files

  5. #5
    Join Date
    Feb 2011
    Minnesota, United States
    Ubuntu 16.04 Xenial Xerus

    Re: Ubuntu server and virtual box questions...

    I've done quite a bit with virtulization so let me fill you in on a few different products and my experiences.

    1. KVM - this is native in Ubuntu Server, by default its a CLI access only, which worked out well and I do recall there being an Ubuntu GUI client (its really basic though) and had no issues with it.There are web gui's out there. I've tried a few and found them super-clunky and buggy requiring me to send many emails for support to just get things working despite following the best practices created. I did however really like that it was Ubuntu underneath the hood running everything.

    2. VMware, I run the full VMware ESXi hyper-visor at my data-center and generally speaking its "OK". Not the greatest but it gets the job
    done. I don't like that the ESXi platform is a Windows only based GUI application and we've had our share of corrupt VMDK files. License expenses are extreme in my opinion but eh.

    3. Virtualbox - I have not personally used it more then running it inside an operating system like Windows, it seemed to work pretty well. But
    I cannot comment on anymore of it. I see alot of users on here using it without issues and seems to be highly recommended by some.

    4. Xen-Server by Citrix. I run it at home and love it. Easy to install and use, can get a free-license for it. Does everything I would like and has
    many of VMware licensed features in their free-license. Only qualm is that it too has a Windows only GUI.
    That's the kind of society I want to build. I want a guarantee -- with physics and mathematics, not with laws -- that we can give ourselves real privacy of personal communications. - John Gilmore

  6. #6
    Join Date
    Oct 2009
    Ubuntu 16.04 Xenial Xerus

    Re: Ubuntu server and virtual box questions...

    You could use Vbox headless with phpvirtualbox, which is what I used for a long time before switching to KVM (Proxmox ftw).

    Depending on the version of XP, you could just set the network adapter to bridged mode and remote desktop into the VM.

    EDIT: @Hexxus: That has been my experience with KVM before I tried Proxmox. I like the Proxmox web interface way better than any of the other KVM interfaces I used previously. The only problem is it is not available for Ubuntu (Debian Only), but that's not a big deal for me.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  7. #7
    Join Date
    Apr 2012

    Re: Ubuntu server and virtual box questions...

    If you're still looking for info, I thought I'd add my two cents - I just virtualized an old Feisty Fawn server for VirtualBox (which I can recommend from experience - especially with VNC (put the machine settings in Bridged mode, as SeijiSensei noted, and it works perfectly).

    Credit where credit is due, I modified the process here:

    And essentially, I grabbed the old machine's hard drive, and did the following (note I've grabbed the WHOLE HARD DRIVE and not just a partition of it)

    dd if=/dev/sda of=/somepath/FeistyFawn.ddimg

    That's it. Then (under Windows, but I'm betting the thing will work under WINE) use the VHD tool: (I have a backup of it here: ) as such: C:\> vhdtool.exe C:\somepath\FeistyFawn.ddimg

    Then rename the thing: [*sudo wine] C:\somepath> ren FeistyFawn.ddimg FeistyFawn.vhd
    *On Linux w/ wine. Remove brackets.

    When it boots, it'll throw a fsck error, and you'll have to manually edit your fstab, because I guarantee it's not going to be happy about what's currently in there.

    You'll want to run vol_id -u /dev/sda1 (or whatever the main drive's device is) and find the UUID to replace the one that's in the fstab. Also, if there's multiple hard drives that WERE in the old machine, but they're not (currently) present in the virtual environment (they can be virtualized and added later) then you'll want to comment them out for the time being.

    I HAVE found that leaving my cifs/samba shares in the fstab works like a charm! = )



    P.S. You'll probably have to run sudo dpkg-reconfigure xserver-xorg (or its equivalent, depending on your flavor of Linux, but as this IS the Ubuntu forum...) on older machines (Feisty in my case), because they will NOT like whatever vid card is emulated by VBox. Also, I enabled I/O APIC, set the chipset it ICH9, and movd the vhd file tot he "IDE" devices column, rather than the "SATA" as Feisty was throwing a bit of a fit. Should not be a problem on newer versions.)

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts