Custom Search

Sunday, March 10, 2013

How To Setup Ubuntu Virtual Machine with Xen Hypervisor

How To Setup Ubuntu Virtual Machine with Xen Hypervisor

* First setup Ubuntu 12.04 VM

Installing Xen
==========

1)
Install a 64-bit hypervisor

#sudo apt-get install xen-hypervisor-amd64

2)
Modify GRUB to default to booting Xen.

#sudo sed -i 's/GRUB_DEFAULT=.*\+/GRUB_DEFAULT="Xen 4.1-amd64"/' /etc/default/grub
#sudo update-grub



 
3)
Set the default toolstack to xm (aka xend).

#sudo sed -i 's/TOOLSTACK=.*\+/TOOLSTACK="xm"/' /etc/default/xen

4)
Reboot

#sudo reboot

5)
Verify that the installation has succeeded.

#sudo xm list

6)
Network Configuration
http://fosshelp.blogspot.com/2013/03/how-to-configure-network-on-ubuntu.html 

7)
Create a PV Guest VM 
http://fosshelp.blogspot.com/2013/03/how-to-create-pv-guest-vm-on-ubuntu.html 

 

7 comments:

  1. sudo xm list
    ERROR: Can't find hypervisor information in sysfs!

    ReplyDelete
    Replies
    1. edit and uncomment in /etc/xen/xend-config.sxp [(xend-unix-server no) --> to YES and remove comment]
      -then restart and choose xen from the grub

      Delete
  2. can't read /etc/default/xen: No such file or directory

    ReplyDelete
    Replies
    1. Same happens to me.. /etc/xen not a regular file !

      Delete
  3. after xen installation I don't have GUI interface anymore. I get a console where it asks me for login details. How to get back GUI?

    ReplyDelete