On Tue, Dec 29, 2020 at 15:21:23 -0600, Ryan Gahagan wrote: > Per Issue 90, Libvirt does not support attaching an NFS disk even though > QEMU has added support for it. This series of patches seeks to implement > this support in Libvirt and begins by adding in flags for an NFS disk. > > Signed-off-by: Ryan Gahagan <rgahagan@xxxxxxxxxxxxx> > --- > src/libxl/libxl_conf.c | 1 + > src/libxl/xen_xl.c | 1 + > src/qemu/qemu_block.c | 3 +++ > src/qemu/qemu_command.c | 1 + > src/qemu/qemu_domain.c | 2 ++ > src/qemu/qemu_snapshot.c | 3 +++ > src/util/virstoragefile.c | 6 ++++++ > src/util/virstoragefile.h | 1 + > 8 files changed, 18 insertions(+) [...] > diff --git a/src/util/virstoragefile.c b/src/util/virstoragefile.c > index fac93118fd..103dade0e7 100644 > --- a/src/util/virstoragefile.c > +++ b/src/util/virstoragefile.c [...] > @@ -4627,6 +4629,10 @@ virStorageSourceNetworkDefaultPort(virStorageNetProtocol protocol) > case VIR_STORAGE_NET_PROTOCOL_VXHS: > return 9999; > > + case VIR_STORAGE_NET_PROTOCOL_NFS: > + /* Per https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/4/html/reference_guide/ch-nfs */ > + return 2049; I don't think we want to add a default port since the qemu code will not accept it at all.