Version 1 (modified by fabior, 4 anos atrás) (diff)

--

Como fazer um template para o Ubuntu de instalaçao ParaVirtual

  1. Customize o ISO do Ubuntu (com o IsoMaster, por exemplo) colocando os seguintes arquivos:

    /install.amd/xen/
    • vmlinuz: pegar um kernel de network boot do Xen nos archives do Ubuntu. Ex: http://archive.ubuntu.com/ubuntu/dists/lucid/main/installer-amd64/current/images/netboot/xen/
    • initrd.gz: customizar o initrd com os drivers do Xen, atraves do procedimento abaixo.

      Step 1)
      -------
      First grab the package linux-image-2.6.32-21-generic, unpack it locally, and
      locate 3 modules: xen-netfront.ko, xen-blkfront.ko, and xenfs.ko
      
      The netfront module has this signature:
      > modinfo xen-netfront.ko
      filename:       xen-netfront.ko
      alias:          xennet
      alias:          xen:vif
      license:        GPL
      description:    Xen virtual network device frontend
      srcversion:     57301C683B383C01E0A2E5D
      depends:
      vermagic:       2.6.32-21-generic SMP mod_unload modversions
      
      Step 2)
      ------
      Then take the initrd.gz from the lucid-server ISO and untar it. Place the
      3 modules from the kernel package in the following locations:
      > sudo find ./init-gen21/ -name '*xen*'
      ./init-gen21/lib/modules/2.6.32-21-generic/kernel/drivers/xen
      ./init-gen21/lib/modules/2.6.32-21-generic/kernel/drivers/xen/xenfs
      ./init-gen21/lib/modules/2.6.32-21-generic/kernel/drivers/xen/xenfs/xenfs.ko
      ./init-gen21/lib/modules/2.6.32-21-generic/kernel/drivers/block/xen-blkfront.ko
      ./init-gen21/lib/modules/2.6.32-21-generic/kernel/drivers/net/xen-netfront.ko
      
      Step 3)
      -------
      Rebuild the ramdisk as initrd-new.gz.
      
  2. Criar uma maquina virtual com o Template do Ubuntu via Rede e selecionar para nao dar boot imediatamente.
  3. Configurar a VM para dar boot pelo ISO montado anteriormente.
  4. Rodar o seguinte comando:
    xe vm-param-set uuid=<VM UUID> other-config:install-repository=cdrom
    
  5. Criar o template.
 

The contents and data of this website are published under license:
Creative Commons 4.0 Brasil - Atribuir Fonte - Compartilhar Igual.