Kvm: Difference between revisions

From Bashlinux
Jump to navigationJump to search
Content deleted Content added
Manpaz (talk | contribs)
No edit summary
Manpaz (talk | contribs)
Redirected page to KVM
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
#REDIRECT [[KVM]]
__NOTOC__
= KVM =
* If the CPU supports hardware virtualization then ensure it is enabled on BIOS
<pre><nowiki>
# egrep -c '(vmx|svm)' /proc/cpuinfo
</nowiki></pre>


== How to launch a fast instance ==
Create and empty disk of 1Gb and launch a VM as:
<pre><nowiki>
# dd if=/dev/zero of=disk.img bs=1M count=1024
# qemu-kvm -boot d -hda disk.img -cdrom /dev/cdrom
</nowiki></pre>

On Ubuntu use `kvm` instead `qemu-kvm` command

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)

Latest revision as of 22:52, 6 June 2015

Redirect to: