Skip to content

Instantly share code, notes, and snippets.

@VTacius
Created March 11, 2015 16:09
Show Gist options
  • Save VTacius/810b1c45b621643188ea to your computer and use it in GitHub Desktop.
Save VTacius/810b1c45b621643188ea to your computer and use it in GitHub Desktop.
Virtualizar Windows Server 2012 en Xen

Para no complicar las cosas más de lo posible, tomó el fichero de configuración de la gente de virtuatopia. El fichero en resumidas cuentas queda de la siguiente forma:

#
#  Kernel + memory size
#
kernel      = 'hvmloader'
builder     = 'hvm'

vcpus       = '1'
memory      = '1024'

#
#  Disk device(s).
#
disk        = [
                  'phy:/dev/host/win.salud.gob.sv-disk,hda,w',
                  'file:/root/9200.16384.WIN8_RTM.120725-1247_X64FRE_SERVER_EVAL_ES-ES-HRM_SSS_X64FREE_ES-ES_DV5.ISO,hdc:cdrom,r'
              ] 


#
#  Physical volumes
#


#
#  Hostname
#
name        = 'win.salud.gob.sv'

#
#  Networking
#
vif         = [ 'ip=10.10.20.248 ,mac=00:16:3E:33:2C:AF,bridge=xenbr0' ]

#
#  Behaviour
#
on_poweroff = 'destroy'
on_reboot   = 'restart'
on_crash    = 'restart'

#
# Windows
#
boot = 'dc' 
acpi = '1' 
apic = '1' 
viridian = '1' 
xen_platform_pci='1' 
sdl = '0' 
vnc = '1' 
vnclisten = '0.0.0.0' 
vncpasswd = '' 
stdvga = '0' 
usb = '1' 
usbdevice = 'tablet'

Y para iniciarlo, basta con

xm create /etc/xen/win.salud.gob.sv.cfg

Por cierto, Remmina con el plugin VNC es la opción recomendada para acceder al servidor en cuestión

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment