On Thu, 20 Jan 2011, Martin Cracauer wrote:

> Just to be clear: the disk file has to be a whole disk, with
> partitions, right? hvmloader would then proceed through the regular
> bootloaders in the boot sector?

Short answer: yes.

Anything that should work on a real machine should work as the disk
image of a Xen HVM instance. The simplest way is to run the sysinstall
tool from an installation ISO that you attach to your virtual
machine. It will create MBR partition table and BSD disklabel for
you as well as install the required boot blocks/loaders.

You could alternatively do the same steps manually, using mdconfig
to attach your (empty) disk image file to an existing FreeBSD box
as a virtual disk and do the required steps with tools such as
fdisk, gpart, boot0cfg, disklabel, newfs, etc. and then move that
image file to your Xen machine.

You could also use a hard disk from an existing FreeBSD machine (a
real one), attach that disk to another machine (or boot from USB
stick) and read the whole hard disk image with dd or similar tool
and use that as the virtual disk for the Xen HVM instance.

--
Janne Snabb / EPIPE Communications
sn...@epipe.com - http://epipe.com/
_______________________________________________
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to "freebsd-xen-unsubscr...@freebsd.org"

Reply via email to