[lxc-devel] [lxd/master] lxd/instance/drivers: Add trans=virtio to 9p mount

monstermunchkin on Github lxc-bot at linuxcontainers.org
Wed Mar 4 15:50:33 UTC 2020


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 355 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20200304/05570629/attachment-0001.bin>
-------------- next part --------------
From 3b5c6a248959cfe923582ae81b9f942f60c5f81a Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.hipp at canonical.com>
Date: Wed, 4 Mar 2020 16:49:11 +0100
Subject: [PATCH] lxd/instance/drivers: Add trans=virtio to 9p mount

Signed-off-by: Thomas Hipp <thomas.hipp at canonical.com>
---
 lxd/instance/drivers/driver_qemu.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lxd/instance/drivers/driver_qemu.go b/lxd/instance/drivers/driver_qemu.go
index c2186dc9fe..d0aedaa732 100644
--- a/lxd/instance/drivers/driver_qemu.go
+++ b/lxd/instance/drivers/driver_qemu.go
@@ -1292,7 +1292,7 @@ RemainAfterExit=yes
 ExecStartPre=-/sbin/modprobe 9pnet_virtio
 ExecStartPre=/bin/mkdir -p /run/lxd_config/9p
 ExecStartPre=/bin/chmod 0700 /run/lxd_config/
-ExecStart=/bin/mount -t 9p config /run/lxd_config/9p -o access=0
+ExecStart=/bin/mount -t 9p config /run/lxd_config/9p -o access=0,trans=virtio
 
 [Install]
 WantedBy=multi-user.target


More information about the lxc-devel mailing list