dimanche 28 juin 2015

Channels missing in compiled kernel in kvm

I have a ubuntu in virtual machine using libvirt. I configured my guest to create pipe and unix channels for trace-virtio purpose:

<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>

Everything works fine in my guest and I have my channel in /dev inside my virtual machine and I can send data to host using these channels. But when I compile kernel and install it inside my vm and select it from grub, these channels disappear. When I reboot and select the original kernel, it has the channels and works correctly. How can I tell kvm to create channels in compiled kernel inside my virtual machine?

Aucun commentaire:

Enregistrer un commentaire