+ Post New Thread
Results 1 to 14 of 14
Thin Client and Virtual Machines Thread, Virtualising Linux in Technical; Has anyone virtualised a debian install to VMWare, XenServer or Hyper-V as I am having difficulty managing this? Wes...
  1. #1
    wesleyw's Avatar
    Join Date
    Dec 2005
    Location
    Kingswinford
    Posts
    2,205
    Thank Post
    223
    Thanked 50 Times in 44 Posts
    Blog Entries
    1
    Rep Power
    30

    Virtualising Linux

    Has anyone virtualised a debian install to VMWare, XenServer or Hyper-V as I am having difficulty managing this?


    Wes

  2. #2


    Join Date
    Oct 2006
    Posts
    3,411
    Thank Post
    184
    Thanked 356 Times in 285 Posts
    Rep Power
    148
    What's the problem you're having?

    On Citrix Xenserver its just a case of downloading the appropriate image (the GUI console tells you where to get it). Put it in your ISO repository and away you go.

  3. #3
    wesleyw's Avatar
    Join Date
    Dec 2005
    Location
    Kingswinford
    Posts
    2,205
    Thank Post
    223
    Thanked 50 Times in 44 Posts
    Blog Entries
    1
    Rep Power
    30
    I'm trying to convert from my physical Debian installation to a Virtual one I've created a virtual debian image however Platespin Vmware converter and xenserver (P2V) don't convert. XenServer and Platespin say that its an unsupported OS and vmware converter won't run on debian (mostly because it's a server not a desktop so it has no gui for the converter to run under)

    Wes

  4. #4

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,859
    Thank Post
    412
    Thanked 777 Times in 650 Posts
    Rep Power
    182
    I run Debian 6.0 guests under XenServer. You need XS 5.6.1 FP1 for full paravirtualisation, and you need the multiarch DVD or unproxied internet access to do a netinst.

  5. Thanks to powdarrmonkey from:

    wesleyw (21st April 2011)

  6. #5


    Join Date
    Oct 2006
    Posts
    3,411
    Thank Post
    184
    Thanked 356 Times in 285 Posts
    Rep Power
    148
    Never done a P2V so can't help there but can't you just install gnome while you run the vmware converter and then uninstall it after.

  7. Thanks to j17sparky from:

    wesleyw (21st April 2011)

  8. #6

    dhicks's Avatar
    Join Date
    Aug 2005
    Location
    Knightsbridge
    Posts
    5,624
    Thank Post
    1,240
    Thanked 778 Times in 675 Posts
    Rep Power
    235
    Quote Originally Posted by wesleyw View Post
    Has anyone virtualised a debian install to VMWare, XenServer or Hyper-V as I am having difficulty managing this?
    I've run Debian virtual machines on Xen, not XenServer. I've never had a problem converting from physical to virtual, and never had to use a conversion utility, I simply set up a new virtual machine with a harddrive, tar'ed the old machine's file system up and un-tar'ed it on the new harddrive. You could use rsync to get the same effect but with no intermediate storage needed.

  9. Thanks to dhicks from:

    wesleyw (21st April 2011)

  10. #7

    glennda's Avatar
    Join Date
    Jun 2009
    Location
    Sussex
    Posts
    7,808
    Thank Post
    272
    Thanked 1,135 Times in 1,031 Posts
    Rep Power
    349
    Yeah i've not used debian but host multiple ubuntu vm's on KVM (runs in linux kernal Main Page - KVM)

    If you used to linux then give KVM a go - its dead simple to setup and is really quick

  11. Thanks to glennda from:

    wesleyw (21st April 2011)

  12. #8


    Join Date
    Dec 2005
    Location
    In the server room, with the lead pipe.
    Posts
    4,638
    Thank Post
    275
    Thanked 778 Times in 605 Posts
    Rep Power
    223
    For vmware converter, have you tried cold booting from the CD / USB key?

    Tell us about your Debian install, particularly the disk setup. You can get problems if you're using LVM, for example.

  13. Thanks to pete from:

    wesleyw (21st April 2011)

  14. #9
    wesleyw's Avatar
    Join Date
    Dec 2005
    Location
    Kingswinford
    Posts
    2,205
    Thank Post
    223
    Thanked 50 Times in 44 Posts
    Blog Entries
    1
    Rep Power
    30
    How would I go about Tar'ing the system up?

    Wes

  15. #10

    dhicks's Avatar
    Join Date
    Aug 2005
    Location
    Knightsbridge
    Posts
    5,624
    Thank Post
    1,240
    Thanked 778 Times in 675 Posts
    Rep Power
    235
    Quote Originally Posted by wesleyw View Post
    How would I go about Tar'ing the system up?
    As in the tar command:

    UNIX man pages : tar ()

    Boot your physical machine from a boot CD (SystemRescueCD works fine for me) and mount the harddrive:

    Code:
    mkdir /mnt/local
    mount /dev/sda1 /mnt/local
    Mount somewhere to put the tar file:

    Code:
    mkdir /mnt/network
    mount //server/path /mnt/network
    Create a tar file of the entire harddrive:

    Code:
    cd /mnt/local
    tar cf /mnt/network/image.tar *
    Then boot up your VM, probably using the same boot CD image as for the physical machine, and run the same thing in reverse. You might have to format the VM's harddrive along the way:

    Code:
    mke2fs -i 128 -j /dev/sda1
    mkdir /mnt/local
    mount /dev/sda1 /mnt/local
    mkdir /mnt/network
    mount //server/path /mnt/network
    cd /mnt/local
    tar xf /mnt/network/image.tar
    You should now, hopefully, be able to boot your VM from its harddrive. You might have to edit /etc/fstab to make sure the harddrive gets mounted in the right place.

  16. Thanks to dhicks from:

    wesleyw (21st April 2011)

  17. #11
    morganw's Avatar
    Join Date
    Apr 2009
    Location
    Cambridge
    Posts
    816
    Thank Post
    46
    Thanked 132 Times in 126 Posts
    Rep Power
    39
    Quote Originally Posted by powdarrmonkey View Post
    I run Debian 6.0 guests under XenServer. You need XS 5.6.1 FP1 for full paravirtualisation, and you need the multiarch DVD or unproxied internet access to do a netinst.
    Are you able to migrate the guests between physical hosts? I upgraded to XenServer 5.6FP1 a couple of weeks ago and guests will crash after migration.

  18. #12

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,859
    Thank Post
    412
    Thanked 777 Times in 650 Posts
    Rep Power
    182
    Quote Originally Posted by morganw View Post
    Are you able to migrate the guests between physical hosts?
    No, it's a known problem in commit 8a22b9996b001c88f2bfb54c6de6a05fc39e177a, first appeared in kernel 2.6.27.

  19. #13

    dhicks's Avatar
    Join Date
    Aug 2005
    Location
    Knightsbridge
    Posts
    5,624
    Thank Post
    1,240
    Thanked 778 Times in 675 Posts
    Rep Power
    235
    Quote Originally Posted by powdarrmonkey View Post
    No, it's a known problem in commit 8a22b9996b001c88f2bfb54c6de6a05fc39e177a, first appeared in kernel 2.6.27.
    Could they boot their old physical machine's disk image using a different kernel?

  20. #14

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,859
    Thank Post
    412
    Thanked 777 Times in 650 Posts
    Rep Power
    182
    Quote Originally Posted by dhicks View Post
    Could they boot their old physical machine's disk image using a different kernel?
    You can shut the guest down and move it between hosts. It's live migration that's broken with an F (the target host appears to corrupt the page table in the guest's kernel).

    Anywho: my advice is to build a new guest and port services to it from the old physical box. If you've been diligent in keeping the box tidy and used the package manager properly, this should be a fairly easy job. If you haven't, this is a good time to fix that.

  21. Thanks to powdarrmonkey from:

    dhicks (21st April 2011)

SHARE:
+ Post New Thread

Similar Threads

  1. Virtualising CC4 DC's
    By dvela-castro in forum Wireless Networks
    Replies: 2
    Last Post: 23rd March 2011, 06:52 PM
  2. Looking at virtualising..
    By scdigital in forum Thin Client and Virtual Machines
    Replies: 14
    Last Post: 20th November 2010, 12:49 PM
  3. Virtualising RM
    By Sye in forum Educational Software
    Replies: 8
    Last Post: 22nd April 2010, 05:36 PM
  4. Virtualising and Sysprep
    By leco in forum How do you do....it?
    Replies: 7
    Last Post: 20th February 2009, 03:39 PM
  5. Virtualising New Server
    By SimpleSi in forum Windows
    Replies: 9
    Last Post: 6th February 2009, 10:46 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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