diff options
author | Fathi Boudra <fathi.boudra@linaro.org> | 2016-06-17 12:48:25 +0300 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2016-06-17 12:48:25 +0300 |
commit | f3b53ecc78f777e2f2060dd818afa2b257baf8fc (patch) | |
tree | 43bdb489326df014577d5fc34eceb34eb030b3b4 /leg-cloud-image-centos.yaml | |
parent | 36f8acf48b13ba142a09a54fe6cbf88883b69df5 (diff) |
leg-cloud-image-centos: remove libvirt daemon
Running the daemon in the container makes the setup complex to maintain.
It's now setup once on the host.
Change-Id: Ib57dadec66add9cb04329f50337ed8d508f2fe86
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'leg-cloud-image-centos.yaml')
-rw-r--r-- | leg-cloud-image-centos.yaml | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/leg-cloud-image-centos.yaml b/leg-cloud-image-centos.yaml index f8915e2fc9..a329ba69c5 100644 --- a/leg-cloud-image-centos.yaml +++ b/leg-cloud-image-centos.yaml @@ -15,7 +15,7 @@ - build-discarder: days-to-keep: 30 num-to-keep: 30 - disabled: true + disabled: false node: docker-centos7-aarch64 display-name: 'LEG Cloud image CentOS' wrappers: @@ -31,15 +31,12 @@ sudo yum install -y \ AAVMF \ ebtables \ - libvirt-daemon-config-network \ - libvirt-daemon-driver-* \ qemu-kvm \ virt-install - sudo systemctl start virtlockd - sudo systemctl start libvirtd - sudo virsh --connect=qemu:///system capabilities - sudo virsh --connect=qemu:///system pool-list --all - sudo virsh --connect=qemu:///system net-list --all + + sudo virsh capabilities + sudo virsh pool-list --all + sudo virsh net-list --all cat > kickstart.cfg << EOF reboot @@ -76,11 +73,15 @@ --name ${IMAGE_NAME} \ --initrd-inject kickstart.cfg \ --extra-args "ks=file:/kickstart.cfg" \ - --connect=qemu:///system \ --disk=pool=default,size=10,format=qcow2,bus=virtio \ --memory 2048 \ --location http://mirror.centos.org/altarch/7/os/aarch64/ \ - --noreboot + --noreboot \ + --noautoconsole + + sudo virsh list --all + sudo virsh pool-list --all + sudo virsh net-list --all # Publish test -d ${HOME}/bin || mkdir ${HOME}/bin |