【发布时间】:2015-06-28 08:33:55
【问题描述】:
我在使用 libvirt 的虚拟机中有一个 ubuntu。我将访客配置为创建管道和 unix 通道以用于 trace-virtio:
<channel type='unix'>
<source mode='connect' path='path/to/socket'/>
<target type='virtio' name='unix-name'/>
<address type='virtio-serial' controller='0' bus='0' port='1'/>
</channel>
<channel type='pipe'>
<source path='path/to/pipe'/>
<target type='virtio' name='pipe-name'/>
<address type='virtio-serial' controller='0' bus='0' port='2'/>
</channel>
在我的客人中一切正常,我的频道在我的虚拟机内的 /dev 中,我可以使用这些频道向主机发送数据。但是当我编译内核并将其安装在我的 vm 中并从 grub 中选择它时,这些通道就会消失。当我重新启动并选择原始内核时,它具有通道并且可以正常工作。如何告诉 kvm 在我的虚拟机内的已编译内核中创建通道?
【问题讨论】:
标签: linux linux-kernel kvm