search for: passthrough_start

Displaying 3 results from an estimated 3 matches for "passthrough_start".

2013 Nov 06
3
Calling 'virsh' from within a hook script - avoid deadlock?
...n the first place? Isn't libvirt multithreaded? Thanks for the help! Shlomi ### hook script: #!/bin/bash enum_scsi() { scsi_devices=`cd /dev;ls sd[^a]*` } gen_hba_xml() { cat > ./hba.xml << EOF <controller type='scsi' model='virtio-scsi'/> EOF } passthrough_start() { # create virtio-scsi HBA gen_hba_xml virsh attach-device --persistent $domain_name ./hba.xml rm -f ./hba.xml # attache scsi devices to guest enum_scsi for sd in ${scsi_devices[@]} do virsh attach-disk --persistent $domain_name /dev/${sd} ${sd} done }...
2013 Nov 06
0
Re: Calling 'virsh' from within a hook script - avoid deadlock?
...; enum_scsi() { > > scsi_devices=`cd /dev;ls sd[^a]*` > > } > > > > gen_hba_xml() { > > cat > ./hba.xml << EOF > > <controller type='scsi' model='virtio-scsi'/> > > EOF > > } > > > > passthrough_start() { > > # create virtio-scsi HBA > > gen_hba_xml > > virsh attach-device --persistent $domain_name ./hba.xml > > rm -f ./hba.xml http://libvirt.org/hooks.html#recursive Do not do this. Michal
2013 Nov 06
1
Re: Calling 'virsh' from within a hook script - avoid deadlock?
...; enum_scsi() { > > scsi_devices=`cd /dev;ls sd[^a]*` > > } > > > > gen_hba_xml() { > > cat > ./hba.xml << EOF > > <controller type='scsi' model='virtio-scsi'/> > > EOF > > } > > > > passthrough_start() { > > # create virtio-scsi HBA > > gen_hba_xml > > virsh attach-device --persistent $domain_name ./hba.xml > > rm -f ./hba.xml http://libvirt.org/hooks.html#recursive Do not do this. Michal