BSD: Difference between revisions

From KVM
(FreeBSD KVM howto)
 
No edit summary
Line 31: Line 31:
'''Starting the vm'''
'''Starting the vm'''


  $ qemu -cdrom /dev/ad0s -hda kwinxp.img -m 512 -boot d -kernel-kqemu -localtime
  $ qemu -cdrom /dev/acd0 -hda kwinxp.img -m 512 -boot d -kernel-kqemu -localtime

Revision as of 05:56, 7 April 2009

KVM on BSD

FreeBSD

Updating Base System

$ freebsd-update fetch install

Updating Ports System

$ portsnap fetch extract

Installing kqemu-kmod

$ pkg_add -r kqemu-kmod

Intalling qemu

$ pkg_add -r qemu

Loading kernel modules

$ kldload kqemu
$ kldload aio

Creating the image file

$ qemu-img create -f qcow2 kwinxp.img 5G

Starting the vm

$ qemu -cdrom /dev/acd0 -hda kwinxp.img -m 512 -boot d -kernel-kqemu -localtime