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

Re: documentation on using 9pfs in xen


  • To: xen-users@xxxxxxxxxxxxxxxxxxxx
  • From: Paul Leiber <paul@xxxxxxxxxxxxxxxx>
  • Date: Wed, 14 Feb 2024 21:17:32 +0100
  • Arc-authentication-results: i=1; strato.com; arc=none; dkim=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1707941860; s=strato-dkim-0002; d=strato.com; h=In-Reply-To:From:References:To:Subject:Date:Message-ID:Cc:Date:From: Subject:Sender; bh=ro27W5bSQz2LGOOUJRvnl8ZdvUkAFQsmWADys7vLHlw=; b=F2vksuT3+WefVMAY1AJgPYJ/ztt15uva9yEZ+58dMdtff3M2B32VoZmxP534zx1iUD 8350sM+R4iMvYfCAV52lDS4ycLR4xQ5V53ZWL0zlC8SBFMwzWvBOXe8lhMZv2soQwCrJ gFHjVxxlO12tRhUFIIAKeOC+0dzuHlhJNkE6aWk/KSfXJcyjUdLcF0BiAhFWHqzm5ozZ 2JJAfx/Ftiyfzti77urLeHgVsL+WhAio92e7fVLVMHklVFJRKtvVP2U6Ejxdzq82XXHp erZJZn8CzOqC6SnaRB15xUiU2RoX/LA/q4vLr0OLW2htccwi7ka2cr9bDs1c/bwtuZTP QOLg==
  • Arc-seal: i=1; a=rsa-sha256; t=1707941860; cv=none; d=strato.com; s=strato-dkim-0002; b=P98+TRqS1S26IAfGckXY186NZKYY+nc1sK7455wrHK7TdoDZGEE18xcfDKEANhLMi/ JcZlD747hxYGM0xnp0DINM8BcQ2uSQL5PLPvKAy6VTe7pQZrZk/pI8zoqjV1lg9LvJbB KMm/QhFFnb9W5LfNj6rgrAF4ux6lmNGOGrOb+FxAL7wjCDB1b6pd/2RqYLxgTahicGWx iziidfcnro+0b18TiLhCaEQ9Ly0KjW9z2srmyR8wLEVPaOBajEFm70huWCaC2aZosHJj bs6cp8drP2PoiaZelaBkmUJcyzn+/6JwB/pJ2r7uJPg5RU9i9/m44/J0xESfafBPXCNF So1Q==
  • Delivery-date: Wed, 14 Feb 2024 20:18:26 +0000
  • List-id: Xen user discussion <xen-users.lists.xenproject.org>

Am 20.01.2024 um 01:19 schrieb Sam Mulvey:
Hello!

I'm seeing a lot of documentation online about the *development* of 9pfs in Xen going back quite a while.  I'm not finding any documentation about using 9pfs in xen.  Is there anyone using it out there?   I'm using PVH domUs.


This message didn't let me go. I was also interested in learning how to use 9pfs, and I also didn't find documentation. While procrastinating, I found out how to use 9pfs in Xen.

In the guest config, you need to enter a line like this (see [1]):

p9      = ['tag=test,security_model=none,path=/tmp/mnt']

In the DomU, you need to mount the file system with a mount command (see [2]):

mount -t 9p test /tmp/mnt/

The path for the directory to be mounted in Dom0 and the mount point in DomU don't need to be the same, of course. Then, you can find the content of the directory in Dom0 in the mount point in Dom0 and vice versa.

I didn't test this very thoroughly, but it seems be working. I hope this helps others.

Best regards,

Paul


[1] https://xenbits.xen.org/docs/unstable/man/xl.cfg.5.html
[2] https://wiki.qemu.org/Documentation/9psetup




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.