Xen

  • Adicionando um novo disco ao Xen VM

Criar um arquivo vazio com 10Gb

# dd if=/dev/zero of=mailstore.img bs=1M seek=10000 count=1

Criar um sistema de arquivo

# mke2fs -j -O dir_index mailstore.img

Editar o arquivo de configuracao da Xen VM

disk = [ 'file:/home/xen/domains/lucius/disk.img,hda1,w', \

           'file:/home/xen/domains/lucius/swap.img,hda2,w', \

           'file:/home/xen/domains/lucius/mailstore.img,hdb1,w' ]

Reiniciar a VM:

xm create <hostname>.cfg

Adicionar o DomU's /etc/fstab & montar o disco pelas vias normais.

 

 

  • Linha de Comando

Referencia: http://www.techotopia.com/index.php/Managing_Xen_using_the_xm_Command-line_Tool#xm_Command-line_vs_xm_Shell

 

Xen Links