mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-25 20:22:37 +01:00
15 lines
226 B
Plaintext
15 lines
226 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
DOMAIN="${PBOTVM_DOMAIN:-pbot-vm}"
|
||
|
CID="${PBOTVM_CID:-7}"
|
||
|
|
||
|
cat > vsock.xml <<EOF
|
||
|
<vsock model='virtio'>
|
||
|
<cid auto='no' address='$CID'/>
|
||
|
</vsock>
|
||
|
EOF
|
||
|
|
||
|
virsh attach-device --config $DOMAIN vsock.xml
|
||
|
|
||
|
rm vsock.xml
|