Basic virtual machine installation

@KVM:~#wget ftp://thebeast.colorado.edu/pub/QIIME-v1.5.0-dependencies/QIIME-1.5.0-amd64.vdi.gz
  • Unzip and convert to KVM raw disk
@KVM:~#gunzip QIIME-1.5.0-amd64.vdi.gz
@KVM:~#qemu-img convert -f vdi -O raw QIIME-1.5.0-amd64.vdi QIIME-1.5.0-amd64.img
  • Resize QIIME system partition

Create VM qiime with QIIME-1.5.0-amd64.img as /dev/vda.
Mount gparted-live-0.14.0-1.iso as CD-ROM and boot from it.
Resize /dev/vda1 (e.g. to 20GB)
Shutdown VM
Resize raw image (e.g. -180GB relative current size)

@KVM:~#qemu-img resize QIIME-1.5.0-amd64.img -180GB
  • convert raw disk to LVM

Create LV for VM system disk

@KVM:~#lvcreate -L 20G -n qiime vm_vg
@KVM:~#dd if=QIIME-1.5.0-amd64.img | pv -s 20G | dd of=/dev/vm_vg/qiime
  • new VM qiime

Create new VM qiime with two virtual HD:
/dev/vda - LVM virtual disk (local storage) - /dev/vda1 mounted as /
/dev/vbd - LVM virtual disk (iSCSI storage) - /dev/vdb1 will be mounted as /home

Boot VM qiime
Copy /home in a temp directory
Partitioning, format and mount /dev/vdb1 as /home
Copy temp directory to /home
Edit /etc/fstab to make /home mounted at boot

UUID=aa38e61a-2d77-4c3d-8758-6afad79a780b /home           ext4    nodev,nosuid,relatime        0       2
 
 
rachael/qiime1.txt ยท Last modified: 2012/12/03 11:43 by giancarlo

Developers: CNR Ceris IT Office and Library
Giancarlo Birello (g.birello _@_ ceris.cnr.it) and Anna Perin (a.perin _@_ ceris.cnr.it)
BioInfo@TO.CNR is licensed under: Creative Commons License
Recent changes RSS feed Creative Commons License Valid XHTML 1.0 Valid CSS Driven by DokuWiki
Drupal Garland Theme for Dokuwiki