Instanciar uma Máquina Virtual com Acesso à Internet » History » Version 2
Version 1 (Marco Gomes, 21 Mar 2012 14:54) → Version 2/4 (Marco Gomes, 21 Mar 2012 14:57)
h1. Instanciar uma Máquina Virtual com Acesso à Internet
* Para realizar esta atividade é necessário:
>* Criar uma partição lvm com a imagem da VM (ir ao repositorio de imagem):
>>* lvcreate --name $IMG_NAME --size $SIZE osdc1
>>* dd if=/path/to/image of=/dev/osdc1/$IMG_NAME
>* Criar o export iSCSI
>>* Adicionar as seguintes linhas ao arquivo /etc/ietd.conf:
>>>* Target iqn.2012-02.br.unesp.ncc:$IMG_NAME.lun1
>>>* OutgoingUser
>>>* Lun 0 Path=/dev/osdc1/$IMG_NAME,Type=fileio
>>>* Alias $IMG_NAME
>* Submeter o arquivo vm.template para o open nebula com o seguinte comando:
>>* onevm submit vm.template
"Voltar":https://www.ncc.unesp.br/its/projects/educloud/wiki/Ciclo_1_-_Open_Nebula_Brain_Honey_e_Balanceador_de_Carga
* Para realizar esta atividade é necessário:
>* Criar uma partição lvm com a imagem da VM (ir ao repositorio de imagem):
>>* lvcreate --name $IMG_NAME --size $SIZE osdc1
>>* dd if=/path/to/image of=/dev/osdc1/$IMG_NAME
>* Criar o export iSCSI
>>* Adicionar as seguintes linhas ao arquivo /etc/ietd.conf:
>>>* Target iqn.2012-02.br.unesp.ncc:$IMG_NAME.lun1
>>>* OutgoingUser
>>>* Lun 0 Path=/dev/osdc1/$IMG_NAME,Type=fileio
>>>* Alias $IMG_NAME
>* Submeter o arquivo vm.template para o open nebula com o seguinte comando:
>>* onevm submit vm.template
"Voltar":https://www.ncc.unesp.br/its/projects/educloud/wiki/Ciclo_1_-_Open_Nebula_Brain_Honey_e_Balanceador_de_Carga