Kvm: Difference between revisions
From Bashlinux
Jump to navigationJump to search
Content deleted Content added
No edit summary |
No edit summary |
||
| Line 12: | Line 12: | ||
Where |
Where |
||
* <code>-boot</code> [order=drives][,once=drives][,menu=on|off] |
* <code>-boot</code> [order=drives][,once=drives][,menu=on|off] |
||
: 'drives': floppy (a), hard disk (c), CD-ROM (d), network (n) |
|||
* <code>-hda/-hdb</code> file use 'file' as IDE hard disk 0/1 image |
* <code>-hda/-hdb</code> file use 'file' as IDE hard disk 0/1 image |
||
* <code>-cdrom</code> file use 'file' as IDE cdrom image (cdrom is ide1 master) |
* <code>-cdrom</code> file use 'file' as IDE cdrom image (cdrom is ide1 master) |
||
Revision as of 02:08, 6 June 2015
How to determine if the host can run virtualization on hardware
- If the CPU supports hardware virtualization then ensure it is enabled on BIOS
# egrep -c '(vmx|svm)' /proc/cpuinfo
How to quick launch an instance
Create and empty disk of 1Gb and launch a VM as:
# dd if=/dev/zero of=disk.img bs=1M count=1024 # qemu-kvm -boot d -hda disk.img -cdrom /dev/cdrom
- On Ubuntu use
kvminsteadqemu-kvmcommand
Where
-boot[order=drives][,once=drives][,menu=on|off]
- 'drives': floppy (a), hard disk (c), CD-ROM (d), network (n)
-hda/-hdbfile use 'file' as IDE hard disk 0/1 image-cdromfile use 'file' as IDE cdrom image (cdrom is ide1 master)