Xen 4.4 create HVM on Debian 8 Jessie

less than 1 minute read

I use lvm

lvcreate -L 25G -n myvm /dev/rootvg

Create the xen hvm file:

nano /etc/xen/myvm.hvm
builder = "hvm"

name = "myvm"

memory = 2048
vcpus = 2

vif         = [ 'mac=00:18:2F:CE:72:C7,bridge=peth0' ]

disk = [ '/dev/rootvg/myvm,raw,xvda,rw',
         'file:/mnt/iso/Win10_1511_1_English_x64.iso,hdc:cdrom,r'
       ]

# boot on floppy (a), hard disk (c), Network (n) or CD-ROM (d)
# default: hard disk, cd-rom, floppy
boot="dc"


vnc = 1
stdvga=0
vnclisten = "0.0.0.0"

Start hvm:

xl create /etc/xen/rsat.hvm

Then Use any remote desktop viewer

  • select Protocol :VNC
  • Host: xenserverIP:0

You can now install your Os on myvm.

When install is done comment the vnc part and change boot=”c” in /etc/xen/myvm.hvm and stop and start the hvm again.

Leave a comment

Leave a comment