代码拉取完成,页面将自动刷新
---
dist: focal
language: minimal
git:
depth: 1
addons:
apt:
sources:
- sourceline: 'deb [arch=amd64] https://apt.releases.hashicorp.com focal main'
key_url: 'https://apt.releases.hashicorp.com/gpg'
packages:
- bridge-utils
- dnsmasq-base
- ebtables
- libvirt-daemon-system
- libvirt-dev
- qemu-kvm
- qemu-utils
- ruby-dev
- ansible
- vagrant
# Cache the big Vagrant boxes
cache:
directories:
- /home/travis/.vagrant.d/boxes
install:
- vagrant --version
- vagrant plugin install vagrant-libvirt
- vagrant plugin install vagrant-reload
script:
- pushd vagrant
# use rsync since NFS doesn't work
- sed -i -E "s:^(\s*)libvirt_sync_folder_type =.*:\1libvirt_sync_folder_type = 'rsync':" Vagrantfile
# enable winxp
- sed -i -E "s/^(\s*'winxp'\:\s).*/\1true,/g" Vagrantfile
# disable ubuntu
- sed -i -E "s/^(\s*'ubuntu'\:\s).*/\1false,/g" Vagrantfile
# disable win7
- sed -i -E "s/^(\s*'win7'\:\s).*/\1false,/g" Vagrantfile
# enable downloading VM images instead of building them
- sed -i -E "s/^(\s*download_vm_image\:\s).*/\1true/" ansible/playbook_2.yml
# we are not in libvirt group, so use sudo
- while sleep 9m; do echo "=====[ $SECONDS seconds still running ]====="; done &
- sudo -E vagrant up --provider=libvirt
- kill %1
# start winxp VM
- sudo -E vagrant ssh -c 'virsh -c qemu:///system start winxp'
# wait a few minutes until the VM boots
- sleep 9m
# run vmi-process-list
- sudo -E vagrant ssh -c 'LIBVMI_DEBUG=1 vmi-process-list -n winxp -j /etc/libvmi/winxp-profile.json -s /tmp/introspector'
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。