Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

Commit

Permalink
Fix qemu-guest-agent image for Promox VE
Browse files Browse the repository at this point in the history
  • Loading branch information
kingsd041 authored and niusmallnan committed Jan 21, 2019
1 parent 0e3bf0f commit 4db6e41
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
1 change: 1 addition & 0 deletions images/10-qemuguestagent/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ RUN apt-get update \
&& apt-get install --no-install-recommends --no-install-suggests -y qemu-guest-agent \
&& apt-get clean \
&& rm -rf /var/lib/apt/*
ADD run /usr/local/bin/

ENTRYPOINT ["/usr/bin/ros", "entrypoint"]

Expand Down
14 changes: 14 additions & 0 deletions images/10-qemuguestagent/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash
for _ in {1..10}; do
if [[ -f /run/console-done ]]; then
docker_passwd=`system-docker exec console cat /etc/shadow | grep docker | awk -F ":" '{print $2}'`
if [[ $docker_passwd == "*" ]]; then
system-docker exec console sh -c 'echo "docker:tcuser" | chpasswd' > /dev/null 2>&1
fi
break
else
sleep 2
fi
done

qemu-ga
5 changes: 3 additions & 2 deletions q/qemu-guest-agent.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
qemu-guest-agent:
image: ${REGISTRY_DOMAIN}/rancher/os-qemuguestagent:v2.8.1-1
command: qemu-ga
image: ${REGISTRY_DOMAIN}/rancher/os-qemuguestagent:v2.8.1-2
command: /usr/local/bin/run
privileged: true
restart: always
labels:
io.rancher.os.scope: system
io.rancher.os.after: console
pid: host
ipc: host
net: host
Expand Down

0 comments on commit 4db6e41

Please sign in to comment.