BSD: Difference between revisions

From KVM
m (This howto describes installing kqemu on freebsd, not linux KVM on freebsd)
m (Add categories)
Line 42: Line 42:


  $ qemu -cdrom /dev/acd0 -hda kwinxp.img -m 512 -boot d -kernel-kqemu -vnc :0 -localtime
  $ qemu -cdrom /dev/acd0 -hda kwinxp.img -m 512 -boot d -kernel-kqemu -vnc :0 -localtime
[[Category:HowTo]][[Category:FreeBSD]]

Revision as of 15:35, 16 May 2015

kqemu 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

Troubleshooting

If you run into problems installing W2K or XP Os, run qemu without acpi and kqemu.

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

If you are running a server without X, access your VM through VNC

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