On Thu, 2012-08-02 at 19:21 -0700, Wei Xu wrote:
> My Dom0 is Oracle Linux(64bit too), Xen version is 4.0.2,  I installed
> FreeBSD with the official iso image, that's
> "FreeBSD-9.0-RELEASE-i386-dvd1.iso", I'm not sure if it was started as
> HVM by default, how can i check it?

If the VM started up at all, it had to be running via full hardware
virtualization.  :-)

> How to convert it to PV support, i just compiled and installed the src
> with the "XEN" config in the source tree, I think that will include PV
> support, since "XEN" is defined in the options, right? 

Correct.  You compile your i386 kernel with the XEN kernel config, then
you need to copy that kernel into your Dom0 and reconfigure the VM to be
PV and boot with no HVM options.  I'm not sure how to do that with the
tools that you have access to, but I did this by editing the xen domU
config file for the virtual machine.  Here's an example of my DomU
config for your reference.  Of course, this is a Xen 3 hypervisor, so
your changes might have to be different( xl create vs xm create).

# Python configuration setup for 'xm create'.
# This script sets the parameters used when a domain is created using
'xm create'.
# You use a separate script for each domain you want to create, or 
# you can set the parameters for the domain on the xm command line.

# Kernel image file.
#kernel = "/usr/lib/xen/boot/hvmloader"
kernel = "/var/virt/freebsd-9.current-i386-domu-kernel"

# device model to use: only qemu-dm available for now
#device_model = '/usr/lib64/xen/bin/qemu-dm'


# Initial memory allocation (in megabytes) for the new domain.
memory = 2048

# number of CPUS
vcpus = 1

# A name for your domain. All domains must have different names.
name = "ref9-xen32"
arch = "i386"

#Network interface. By default emules a realtek 8139. For a NetBSD guest
# have to disable re(4) and let rtk attach to use it.
# ne2k_pci emulates a pci ne2000 clone; this his cpu-hungry in dom0
# pcnet emulates a AMD PCnet-PCI controller; but it corrupts packets
# pcn(4) under NetBSD.
#vif = [ 'mac=00:16:3e:00:00:03, bridge=xenbr0, type=ioemu' ]
vif = [ 'mac=00:16:3e:00:00:03, bridge=xenbr0, type=vbd' ]

# Define the disk devices you want the domain to have access to, and
# what you want them accessible as.
# Each disk entry is of the form phy:UNAME,DEV,MODE
# where UNAME is the device, DEV is the device name the domain will see,
# and MODE is r for read-only, w for read-write.
# For hvm domains you can only use hda to hdd. You can set extra types
# (e.g. cdrom)

disk = [
# floppy images; this doesn't seem to work currently. Use a iso image
#fda = '/home/domains/boot1.fs'

extra = "vfs.root.mountfrom=ufs:/dev/ad0p2,kern.hz=100"

# boot device: a = floppy, c= hard drive, d= cdrom (with the disk entry
# before)
# boot CDROM image
# boot from DISK file
# boot from DHCP/PXE then DISK file

# By default, 'xm create' will try to open an X window on the current
# for the virtal framebuffer. You can have the virtal framebuffer in vnc
# instead, and connect using a vnc client (using localhost:$vncdisplay)
# If vncunused is set to 1 (this is the default value), vncdisplay
# will be set to the first unused port; so it's recommended to
#vnc = 1
#vncdisplay = 3
#vncunused = 1

#Xen emulates a PS/2 mouse, but the pointer in the guest has
# tracking the absolute position. Xen can emulate a USB tablet in
# to the mouse which will report the absolute position of the pointer,
# and make the mouse much easier to use. 

acpi = 1

freebsd-xen@freebsd.org mailing list
To unsubscribe, send any mail to "freebsd-xen-unsubscr...@freebsd.org"

Reply via email to