1 Star 0 Fork 0

runzhe.wrz/kvm-vmi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.travis.yml 1.61 KB
一键复制 编辑 原始数据 按行查看 历史
Mathieu Tarral 提交于 2021-08-02 11:28 . ci: bump dist to focal
---
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'
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/runzhe-wrz/kvm-vmi.git
git@gitee.com:runzhe-wrz/kvm-vmi.git
runzhe-wrz
kvm-vmi
kvm-vmi
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385