BSD: Difference between revisions

From KVM
No edit summary
(Note that the KVM module is no longer available for FreeBSD)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
== KVM on BSD ==
== kqemu on BSD ==




== FreeBSD ==
== FreeBSD ==
Note: the kqemu-kmod port was removed in 2016 with the following comment:
> The are broken on recent FreeBSD, they are not supported by any qemu version, they do not build with recent binutils (2.27)


'''Updating Base System'''
'''Updating Base System'''
Line 32: Line 36:


  $ qemu -cdrom /dev/acd0 -hda kwinxp.img -m 512 -boot d -kernel-kqemu -localtime
  $ 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
[[Category:HowTo]][[Category:FreeBSD]]

Latest revision as of 13:59, 24 June 2018

kqemu on BSD

FreeBSD

Note: the kqemu-kmod port was removed in 2016 with the following comment:

> The are broken on recent FreeBSD, they are not supported by any qemu version, they do not build with recent binutils (2.27)

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