11-RELEASE acting as vbd backend

Roger Pau Monné roger.pau at citrix.com
Fri Dec 9 14:46:45 UTC 2016


On Tue, Dec 06, 2016 at 10:53:18PM -0700, Nathan Friess wrote:
> On 12/6/2016 3:04 AM, Roger Pau Monné wrote:
> > 
> > Hello,
> > 
> > There have been some blkback changes in FreeBSD 11.0 in order to support using
> > more disk types from blkback (like iSCSI). In order to achieve this, if you want
> > to use blkback from a driver domain you will have to install the xen-tools
> > package in the driver domain, and execute the xendriverdomain at domain startup
> > (add xendriverdomain_enable="YES" to your rc.conf). After that, everything
> > should work as expected.
> 
> 
> Hi Roger,
> 
> I installed xen-tools and added xendriverdomain_enable="YES" to rc.conf.
> After rebooting this is what I see:
> 
> Dec  6 19:14:20 host xenstored: Checking store ...
> Dec  6 19:14:20 host xenstored: Checking store complete.
> Dec  6 19:14:20 host xenstored: Checking store ...
> Dec  6 19:14:20 host xenstored: Checking store complete.
> Dec  6 19:14:21 host kernel: Failed to initialize dom0 state: No such file
> or directory
> Dec  6 19:14:22 host kernel: .
> Dec  6 19:14:51 host last message repeated 28 times
> Dec  6 19:14:52 host xenconsoled: Failed to contact xenstore (No such file
> or directory).  Is it running?
> 
> 
> Trying to start xenstoredomain manually results in:
> 
> Starting xenservices: xl devd.libxl: error: libxl.c:124:libxl_ctx_alloc:
> cannot connect to xenstore: No such file or directory
> cannot init xl context
> 
> 
> The kernel is showing a xenstore device on boot
> 
> ... kernel: xenstore0: <XenStore> on xenpv0
> 
> 
> I see that there is a xencommons rc script too so I also tried to add
> xencommons_enable="YES" and start that first.  No luck.
> 
> I must still be missing a step...

Hello,

Sorry for the delay, there was a huge can of worms behind this. I have a 
solution, but it requires patching both Xen and the FreeBSD kernel. Please bear 
with me, I will send those patches once ready.

Roger.


More information about the freebsd-xen mailing list