Libvirt: Difference between revisions
imported>Onny Add section on file sharing (unfinished) |
imported>Onny Add section on file sharing (unfinished) |
||
| Line 110: | Line 110: | ||
In order to share files between host and guest, one recommended way of doing this is to use <code>spice-webdavd</code>. | In order to share files between host and guest, one recommended way of doing this is to use <code>spice-webdavd</code>. | ||
Shutdown the client, in this example named <code>my_guest</code>, and edit the libvirt XML file. | |||
<syntaxhighlight lang="bash"> | |||
virsh edit my_guest | |||
</syntaxhighlight> | |||
Add the following snippet after <code><channel type='unix'>[...]</channel></code> part inside the devices subsection: | |||
<syntaxhighlight lang="bash"> | |||
<channel type='spiceport'> | |||
<source channel='org.spice-space.webdav.0'/> | |||
<target type='virtio' name='org.spice-space.webdav.0'/> | |||
<address type='virtio-serial' controller='0' bus='0' port='3'/> | |||
</channel> | |||
</syntaxhighlight> | |||
Inside the client, add following part to your system configuration and apply it | |||
{{file|/etc/nixos/configuration.nix|nix|<nowiki> | |||
services.spice-webdavd.enable = true; | |||
</nowiki>}} | |||
== Clients == | == Clients == | ||