terça-feira, 29 de novembro de 2011

Instalar Interface gráfica Centos 6


Pode ser mais fácil em alguns casos trabalhar com a interface gráfica CentOS, veja como é fácil instalar:


1. Faça a instalação dos pacotes

yum install -y kdebase kdeutils firefox system-config* nedit yum-utils yum-plugin-fastestmirror
yum-plugin-protectbase yumex


2. configure a placa de vídeo com o comando
system-config-display

3.inicio o x
startx

quarta-feira, 23 de novembro de 2011

Putty SSH - Executando aplicações gráficas remotamente

1. Xming X Server for Windows – http://sourceforge.net/projects/xming

1.1. Configuração do servidor SSH

Para que os programas tenham seus pacotes enviados remotamente, o SSH precisa estar configurado para aceitar isso. A maioria das distribuições já deixam esta configuração feita, mas por via das dúvidas, logue-se via SSH no servidor como root, edite o arquivo /etc/ssh/sshd_config e procure pela linha:
X11Forwarding yes
Certifique-se de que esta opção esteja como "yes" (sim). Se estiver como não ou comentada, deixe como a linha acima. Feito isto, reinicie o serviço de SSH com o seguinte comando:
/etc/init.d/sshd restart
(Nota: Este comando acima pode mudar de distribuição para distribuição, apesar da maioria aceitá-lo. Se for o caso de não funcionar com voce, mude de acordo com a sua distribuição)

1.2. Utilizando o Windows como cliente

Após instalação do xming, abre o putty SSH, no meu de categoria "do lado esquerdo" clica em SSH, depois em X11 e habilita ENABLE X11 FORWARDING.

terça-feira, 22 de novembro de 2011

Convert Virtualbox vdi to KVM (qcow)

Modo 1)

Execute:

# qemu-img convert Linux.vmdk -O raw Linux.img

do servidor KVM com os pacotes de virtualização instalados.

Para editar o tamanho do HD Virtual KVM:

sudo qemu-img resize /var/lib/libvirt/images/myvm.img 255G



Modo 2)

I have been asked several times how to convert an existing VirtualBox machine / image to KVM. The process is quite easy and involves simply converting your virtual hard drive (VirtualBox uses "vdi") to a format compatible with KVM (qcow). You then use the qcow image with KVM, either from the command line of with virt-manager.


Although the process is quite easy, it does require sufficient hard drive space as the VirtualBox .vdi is first converted to a raw disk image.
Side track – Both vdi and qcow images are compressed, so a a 10 Gb .vid or .qcow will take less space on your hard drive. Conversion, however, requires you to first convert the .vdi to a raw image, which will require the full 10 Gb, so plan accordingly.
Assume your VirtualBox image is called "ubuntu.vdi"


Step 1. Convert the VB disk vdi image to a raw image format.


VBoxManage clonehd --format RAW ubuntu.vdi ubuntu.img
Note: The ubunut.img is a raw disk image, it will be quite large (as many GB as your virtual drive is, see above).


Step 2 : convert the raw image to a qcow


qemu-img convert -f raw ubuntu.img -O qcow2 ubuntu.qcow

That is all there is to it, the ubuntu.qcow can be used with KVM.
Test your new image (ubuntu.qcow) with:


kvm -m 512 -usbdevice tablet -hda ubuntu.qcow
If it is working you may delete the raw image (ubuntu.img) and archive or delete the ubuntu.vdi .



Welcome to KVM :)