Archive
(Re)Installing without Immediate-Configure using Debian APT (via Awayand’s Blog)
This can also be done directly on the command line without changing the global APT config file with the following option (in my case to install imagemagick on testing):
# apt-get install imagemagick -o APT::Immediate-Configure=False
via Awayand's Blog
Working in the Multi-Cloud with LibCloud
Mount qcow2 (VM) images under Linux
If like me you find yourself screwing up a virtual machine Xorg configuration so badly that you can’t even switch to any virtual console anymore or, for whatever reason, you need to access the content of a qcow2 image from outside of the VM, most probably from the host, here is an easy way to do it thanks to qemu-nbd:
# modprobe nbd # qemu-nbd -c /dev/nbd0 /path/to/image.qcow2
At this point we have loaded the Network Block Device kernel module and easily created and NBD device backed by our disk image thanks to the qemu-nbd program provided by qemu-kvm.
Now, we just have to identify tha partition(s) we’d like to mount and then mount it/them in the desired directory:
# fdisk -l /dev/nbd0 # mount /mnt/vmroot /dev/nbd0p3
You can now work in the image as in local filesystem !
Once you’re done, you need to unmount the partition, remove the device and unload the kernel module:
# umount /mnt/vmroot # qemu-nbd -d /dev/nbd0 # rmmod nbd
Hope this little trick found here will help you like it did for me.
EDIT: If you happen to have I/O errors, try using ‘-n’ option of qemu-nbd which disables host cache (as suggested here).
Utiliser dd sous Windows XP
Vous avez téléchargé l’image de la dernière petite appliance Open Source qui va bien (dans mon cas Gluster Strorage Platform) et vous ne disposez que d’une machine sous Windows pour la transférer sur votre clé USB. En bon *NIXien, vous pensez de suite au bon vieux ‘dd’ qui vous accompagne d’habitude pour ce genre de manipulations… Et bien la bonne nouvelle c’est que qu’il existe plusieurs possibilités pour disposer de cet outils indispensable sous le Vilain OS:
Cygwin
Si cygwin est installé sur votre machine (comment ça il ne l’est pas ?!), il vous suffit d’ouvrir le shell pour vous retrouver "à la maison" et avoir sous les doigts votre petit outil habituel:
admin@winpc ~ $ dd if=/cygdrive/i/Gluster-3.1.0.img of=/dev/sdc bs=1M
Dans mon cas, mon portable possède un disque dur (c:, /dev/sda), l’image se trouve sur une première clé USB (i:, /dev/sdb) et je souhaite la transférer sur une deuxième (/dev/sdc)
Pour plus d’informations sur les fichiers spéciaux (au sens Unix), consultez cette page et en particulier les sections concernant la gestion des périphériques block et la correspondance entre les espaces de noms POSIX et N.
Chrysocome’s dd
Si Cygwin n’est pas installé sur votre machine, alors, vous pouvez utiliser la version "especial" de ‘dd’ faite par Chrysome et disponible ici.
Il vous suffit pour cela de télécharger une des version binaires (j’ai utilisé la version 0.6beta3) et de décompresser l’exécutable ‘dd.exe’ dans un dossier faisant partie du PATH pour pouvoir y accéder facilement.
Deux petites options bien pratiques de cette version sont:
- –list: qui renvoie la liste de tous les périphériques block du système avec leurs noms de périphériques et leurs points de montage pour retrouver ses petits et passer les bons paramètres à la commande
- –progress: qui permet de voir l’avancement de l’exécution de la commande
Pour le reste, le programme fonctionne de la même manière que son ancêtre.
Building a test and development infrastructure using OpenStack | Ryan Lane’s Blog
I’ve been building a test and development infrastructure for The Wikimedia Foundation using OpenStack, and a number of other technologies. I’m not done yet, so I won’t get into any gory technical details (I promise I will later!). I will, however, give an overview of the architecture I’m aiming for…
via Building a test and development infrastructure using OpenStack | Ryan Lane’s Blog.
Cisco, Cloud Computing and Open Source Software
Cisco, Cloud Computing and Open Source Software
"We are interested in working a lot more with different open source communities as that’s where a lot of the cloud activity is happening," Lew Tucker, Cisco CTO for Cloud Computing
ServerWatch.com http://ow.ly/3yv9k