Re: Including standard stanzas in new libvirt domain definitions

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

 



I had to use the upstream qemu to get the filesystem passthrough to be enabled.

I have another question:  I would like to always  include and automate  a standard stanza in newly created libvirt  XML domain definition of a VM.
For example, 

<filesystem type='mount' accessmode='passthrough'>
   <source dir='/var/tmp/shareme1'/>
   <target dir='hostshare1'/>
   <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
</filesystem>

Is there a way, a qemu configuration or a libvirt config, to automate  including this stanza in all newly created VMs?

~Lawrence

-----Original Message-----
From: Cole Robinson [mailto:crobinso@xxxxxxxxxx] 
Sent: Thursday, September 03, 2015 1:36 PM
To: Sorrillo, Lawrence; 'virt-tools-list@xxxxxxxxxx'
Subject: Re:  "Grey-out" Filesystem add hardware option in virt-manager in RHEL7.1 - kernel 3.10.0-229.11.1.el7.x86_64

On 09/02/2015 01:53 PM, Sorrillo, Lawrence wrote:
> Hello,
> 
>  
> 
> I was wondering about virt-manager support for the file-sharing option between
> host and guest in RedHat, CentOS and Fedora.
> 
>  
> 
> This appears to be grey out and a complaint about the inability of the
> installed combination of
> 
> libvirt and qemu to support this option is displayed. The link below shows the
> virt-manager screen 
> 
> WITHOUT the grey-out filesystem option.
> 
>  
> 
> http://www.linux-kvm.org/page/9p_virtio
> 
>  
> 
> For redhat based linuxes though this appears to be always greyed out in stock
> builds(even without 9p
> 
> and even when Qemu supports the file sharing option). Why is this?
> 
>  
> 
> [root@xxx tmp]# qemu-kvm --version
> 
> *QEMU emulator version 1.5.3 (qemu-kvm-1.5.3-86.el7_1.5), Copyright (c)
> 2003-2008 Fabrice Bellard*
> 
> [root@xxx tmp]# qemu-kvm --help | grep fsdev
> 
> *-fsdev
> fsdriver,id=id[,path=path,][security_model={mapped-xattr|mapped-file|passthrough|none}]*
> 
> [root@xxx tmp]#  tmp]#
> 
> root@xxx   tmp]#
> 
> [root@xxx    tmp]# rpm -qa | grep libvirt-1.2.8
> 
> *libvirt-1.2.8-16.el7_1.3.x86_64*
> 
> [root@xxx  tmp]#

It's likely disabled/greyed-out on RHEL because on RHEL Red Hat explicitly
doesn't support filesystem passthrough for various maintenance and business
reasons. I think even if you attached the XML to your libvirt config, qemu
would fail to start because it's compiled out, but I haven't verified.

- Cole



_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list



[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux