Port-xen archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: How to get xenconsole working on freeBSD-12 without burning up vnc ports or extra tty ports



	Hello Greg.  If you don't edit /etc/ttys as shown in my original e-mail, you won't get a
login prompt when the system comes up multiuser.

	Also, The kernel = line in the conf file refers to a file on the dom0 filesystem, not the
guest host, so  you'll need to copy the kernel tree from the fbsd system into the place where
you store such things.  I usually make a directory for each guest and put anything specific to
that guest in that directory.  My config file is shown below, for reference.  Although my dom0
in this case is FreeBSD, I've used similar configs for years with NetBSD as the dom0.

Hope this helps.
-Brian


<cut here for sample config>

# Kernel image file.
kernel = "/var/xen/nfbcal/fbsd_dev/boot/kernel/kernel"

type='pvh'

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

vcpus = 2

# A name for your domain. All domains must have different names.
name = "fbsd_dev"

#Network interface. By default emules a realtek 8139. For a NetBSD guest you
# 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 with
# pcn(4) under NetBSD.
vif = [  'mac=00:4e:46:4e:43:cb,bridge=bridge0' ]

# 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 = [ '/dev/zvol/xendisks/fbsd_dev,raw,hda,w', ]

# Put root on the actual hard disk (BB 11/10/2020)
# the virtual disk is partitioned as a gpt disk with the root partitioned labeled as "root"
# One could use any label and it would show up in /dev/gpt/<label> for use by this line.
extra= "vfs.root.mountfrom=ufs:/dev/gpt/root"

on_poweroff="restart"


Home | Main Index | Thread Index | Old Index