Category Archives: tech

Installing a Fedora VM from Internet

There is a powerful tool shipped with libvirt called virt-install. This tool is inside the python-virtinst package and it allows us to install any GNU/Linux distribution directly from the command line.
For example, the following command will create a VM and install Fedora 17 (32 bits) on it.

virt-install –name f17_i686 –ram 1024 –disk path=/dev/vg_data/f17_i686,size=15 –location=”http://dl.fedoraproject.org/pub/fedora/linux/releases/17/Fedora/i386/os/” –graphics vnc

The arguments are:

name = name of the VM
ram = amount of RAM memory on MB
disk = lthe path and size of the virtual disk
location = the media to install, in this case the F17 URL.
graphics = the graphic card to use

After running this command, we can user virt-manager to continue with the installation process graphically.

How can we automate this task?

There are 2 different ways:

1. Every time you install Fedora, you will find on the /root directory a file called anaconda-ks.cfg. This file can be used to perform an unattended installation equal to the one you have.
You can take that file and modify the parts you need.
2. You can write a kickstart file from scratch.

This kickstart file can be used for any Fedora installation fedora.ks.
You can modify this file and upload it to your own HTTP/FTP/NFS server, leave it on a disk or burn it on a CD.
You can try to install a VM directly using this command:

virt-install --name f17_x86_64 --ram 1024 --disk path=/dev/vg_data/f17_x86_64,size=15 --location="http://dl.fedoraproject.org/pub/fedora/linux/releases/17/Fedora/x86_64/os/" --extra-args "ks=http://mkreder.com/vms/ks/fedora.ks console=ttyS0,9600"
#you should modify the ram and disk arguments as needed

It will install Fedora 17 x86_64 on a VM on a completely unattended way.
The root password for this VM will be “fedora”.

VERR_SUPLIB_OWNER_NOT_ROOT on VirtualBox

A couple of days ago I had a problem with VirtualBox, I couldn’t start one of my VMs because it was displaying an error message saying: “VERR_SUPLIB_OWNER_NOT_ROOT”
Searching on the internet I found this bug. and they suggested to run:

chown -R root:root /usr/lib/virtualbox
chmod 4711 /usr/lib/virtualbox/VirtualBox

This didn’t fix my issue, so I started to dig deeply into the issue and I found a log file on ~/.VirtualBox/Machines/VM/Logs/VBox.log with the following message:

00:00:00.448 pdmR3LoadR0U: pszName="VMMR0.r0" rc=VERR_SUPLIB_OWNER_NOT_ROOT szErr="The owner is not root: '/usr'"

I took a quick look at /usr permissions and I found that for some weird reason, it had uid:gid 500:500
# ls -ld /usr
drwxrwxr-x. 13 500 500 4096 Aug 3 2006 /usr

Solution:
chown root:root /usr

FLISOL 2012

FLISOL logo

El próximo Sábado nos estaremos presentando en el Festival Latinoamericano de Instalación del Software Libre en las siguientes ciudades:

Ciudad de Buenos Aires:

Rino, Adrian y yo estaremos instalando Fedora a todas aquellas personas que traigan sus computadoras a la Facultad de Ciencias Económicas de la UBA (Av. Córdoba 2122) y además daremos 2 charlas:

  • Virtualización en Fedora (11 Hs, Auditorio C)
  • Fedora 16 y la Comunidad Fedora (17 Hs, Auditoria A)

Luján:

Jose estará instalando Fedora y  también dando  la charla “Fedora 16 y la Comunidad Fedora” a las 17 hs. en las aulas 403/404 de la Universidad de Luján.

Córdoba:

Los embajadores de Fedora en Córdoba estarán instalando Fedora en la Ciudad Universitaria (Aula D3 – Baterías comunes D – Av. Valparaiso s/n esq Enfermera Gordillo Gomez)