Port-xen archive

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

Re: hvm domus on netbsd-10 dom0 zvol



"Hauke Fath (SPG)" <hf%spg.tu-darmstadt.de@localhost> writes:

> I am trying to launch a hvm DomU from a zvol on a netbsd-10 Dom0, and
> it doesn't.
>
> The zvol was created from a USB stick live system; I tried this with
> both a freebsd 13 and an arch linux installation.

I am not understanding what you are doing.

I am running multipe PV domUs.   Each has two logical disks.  From a
config:

  disk = [
          'phy:/dev/zvol/dsk/tank0/vm/n9-amd64,0x0,w',
          'phy:/dev/zvol/dsk/tank0/vm/n9-amd64.swap,0x1,w'
          ]

and they show up as xbd0/1 in the domU.  The zvols are in a zfs pool that
exists on the dom0 (and is backed by a sata ssd).

I made the zvols via

  zfs create -p -V 32G tank0/vm/n9-amd64
  zfs create -p -V 8G tank0/vm/n9-amd64.swap

(and then did
  newfs -O2 /dev/zvol/rdsk/tank0/vm/n9-amd64
and rsynced an old laptop's filesystem, to it to a domU for package
building, but that I think is not relevant.) 

My system works well except when the kernel locks up under heavy zfs
usage.

Are you saying that the netbsd-10 system is running from live USB image,
and not using the system's real disks?  Did you create a pool and then a
zvol while the dom0 was booted live?  Where is the storage for the pool?

> Booting from the image file on the Dom0 filesystem works just file.

Is this disk image in a zfs filesystem using the same pool, or in ufs?
If ufs, is it using the same backing hardware storage?

What happens when you dd the zvol to /dev/null, in the dom0?
Any logs from dom0/xen?



Home | Main Index | Thread Index | Old Index