Displaying 3 results from an estimated 3 matches for "enum_scsi".
2013 Nov 06
3
Calling 'virsh' from within a hook script - avoid deadlock?
...nters a deadlock while attempting to do so.
Is there any workaround around this? Any better way, forking virsh execution somehow?
Could anyone explain why this is creating a deadlock in 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....
2013 Nov 06
0
Re: Calling 'virsh' from within a hook script - avoid deadlock?
...>
> Could anyone explain why this is creating a deadlock in 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...
2013 Nov 06
1
Re: Calling 'virsh' from within a hook script - avoid deadlock?
...>
> Could anyone explain why this is creating a deadlock in 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...