Kvm

From Bashlinux
Revision as of 20:41, 16 November 2011 by Manpaz (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

KVM

Fast launch

Create and empty disk of 1Gb and launch a VM as:

 # dd if=/dev/zero of=disk.img bs=1M count=1024
 # qemu -boot d -hda disk.img -cdrom /dev/cdrom
 


Where

  • `-boot` [order=drives][,once=drives][,menu=on|off]
  'drives': floppy (a), hard disk (c), CD-ROM (d), network (n)
  • `-hda/-hdb` file use 'file' as IDE hard disk 0/1 image
  • `-cdrom` file use 'file' as IDE cdrom image (cdrom is ide1 master)