search for: virt_image_t

Displaying 10 results from an estimated 10 matches for "virt_image_t".

Did you mean: svirt_image_t
2010 Oct 15
1
NFS4 + SELinux
All test machines are CentOS 5.5 (RHEL subscriptions purchased). We've had NFS3 storage working fine and decided to try NFS4. We can mount an NFS4 share on our KVM host, but the SELinux file context on the mountpoint directory is magically changed from virt_image_t to nfs_t. Restorecon refuses to change it back. Adding the mount option context=system_u:object_r:virt_image_t on either server or client doesn't help (option not recognised). What could we be doing wrong? Does NFS4 + KVM work? Are there any 'best practices' references around for usi...
2019 Aug 19
2
Starting VM fails with: "Setting different DAC user or group on /path... which is already in use" after upgrading to libvirt 5.6.0-1
...<address type='pci' domain='0x0000' bus='0x07' slot='0x00' function='0x0'/> </rng> </devices> </domain> ls -lhZ /home/libvirt/images/voodoo4* # ls -lhZ /home/libvirt/images/voodoo4* -rw-------. 1 root root system_u:object_r:virt_image_t:s0 20G Aug 17 03:55 /home/libvirt/images/voodoo4-gv0.img -rw-------. 1 root root system_u:object_r:virt_image_t:s0 20G Aug 17 03:55 /home/libvirt/images/voodoo4-gv1.img -rw-------. 1 root root system_u:object_r:virt_image_t:s0 50G Aug 17 03:52 /home/libvirt/images/voodoo4-os.img cat /etc/libvirt/...
2013 Apr 08
1
libvirt, selinux, moving images to ~/images does not work
.../lib/libvirt/images/. http://libvirt.org/drvqemu.html#securityselinux is saying that "If attempting to use disk images in another location, the user/administrator must ensure the directory has be given this requisite label. Likewise physical block devices must be labelled system_u:object_r:virt_image_t.". So did I: [root at vpl2 ~]# ls -dlZ /home/aik/virtimg /var/lib/libvirt/images drwxr-xr-x. root root system_u:object_r:virt_image_t:s0 /home/aik/virtimg drwxr-xr-x. root root system_u:object_r:virt_image_t:s0 /var/lib/libvirt/images [root at vpl2 ~]# ls -lZ /home/aik/virtimg /var/lib/libv...
2016 Feb 19
2
problem cloning storage pool volume
...uot;"".qcow2</path> <format type='qcow2'/> <permissions> <owner>-1</owner> <group>-1</group> <mode>0644</mode> <label>virt_image_t</label> </permissions> </target> </volume>""" srcDisk = tmpPool.storageVolLookupByName(vDisk) newVol = sp.createXMLFrom(destXML,srcDisk, 0) According to the steps described in the link, this should be it; but I can...
2016 Feb 19
2
Re: problem cloning storage pool volume
...<format type='qcow2'/> >> <permissions> >> <owner>-1</owner> >> <group>-1</group> >> <mode>0644</mode> >> <label>virt_image_t</label> >> </permissions> >> </target> >> </volume>""" >> >> srcDisk = tmpPool.storageVolLookupByName(vDisk) >> newVol = sp.createXMLFrom(destXML,srcDisk, 0) >> >> According...
2011 Oct 15
2
SELinux triggered during Libvirt snapshots
...m "getattr" access from the directory I store all my virtual machines for KVM. All VMs are stored under /vmstore , which is it's own mount point, and every file and folder under /vmstore currently has the correct context that was set by doing the following: semanage fcontext -a -t virt_image_t "/vmstore(/.*)?" restorecon -R /vmstore So far I've noticed then when taking snapshots and also when using virsh to make changes to a domain's XML file. I haven't had any problems for the 3 or 4 months I've run this KVM server using SELinux on Enforcing, and so I'm n...
2016 Feb 19
0
Re: problem cloning storage pool volume
...t;/path> > <format type='qcow2'/> > <permissions> > <owner>-1</owner> > <group>-1</group> > <mode>0644</mode> > <label>virt_image_t</label> > </permissions> > </target> > </volume>""" > >srcDisk = tmpPool.storageVolLookupByName(vDisk) >newVol = sp.createXMLFrom(destXML,srcDisk, 0) > >According to the steps described in the link...
2016 Feb 22
0
Re: problem cloning storage pool volume
...at type='qcow2'/> >>> <permissions> >>> <owner>-1</owner> >>> <group>-1</group> >>> <mode>0644</mode> >>> <label>virt_image_t</label> >>> </permissions> >>> </target> >>> </volume>""" >>> >>> srcDisk = tmpPool.storageVolLookupByName(vDisk) >>> newVol = sp.createXMLFrom(destXML,srcDisk, 0) &gt...
2011 Sep 22
2
Centos 6 First Install, gripes - cool things- tips/help
Finally got a new server the other day. You know I had to try out centos 6 with this one. dual quad cores, 24 gb ram (12 for each cpu) 6 working drives bays. My first big surprise was the partition system with anaconda. It is a lot different than the centos 5.x version. I am sure it is a bug that it has options for hot spares but does not allow it to be ungreyed out. I think in the end I will
2010 Mar 26
3
[PATCH node] Update autobuild and autotest scripts for new build structure
...ename for disk file +# $2 - size (##M or ##G) +create_hard_disk () { + local filename=$1 + local size=$2 + + debug "Creating hard disk: filename=${filename} size=${size}" + sudo qemu-img create -f raw $filename "${size}M" > /dev/null 2>&1 + sudo chcon -t virt_image_t $filename > /dev/null 2>&1 +} + +# Creates the XML for a virtual machine. +# $1 - the file to write the xml +# $2 - the node name +# $3 - memory size (in kb) +# $4 - boot device +# $5 - the local hard disk (if blank then no disk is used) +# $6 - the cdrom disk (if blank then no cdrom is u...