Skip to content

Commit

Permalink
New drivers added (vioinput, vioscsi). Enable Administrator account f…
Browse files Browse the repository at this point in the history
…or Win10 + EnableLUA.
  • Loading branch information
ruzickap committed Jan 28, 2017
1 parent 835594d commit fb11405
Show file tree
Hide file tree
Showing 17 changed files with 311 additions and 248 deletions.
22 changes: 11 additions & 11 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ packer_build() {
rm -v ${NAME}-libvirt.box
}

build_ubuntu_16_10() {
build_ubuntu_16_10_desktop() {
export UBUNTU_VERSION="16.10"
export UBUNTU_ARCH="amd64"
export UBUNTU_TYPE="desktop"
Expand All @@ -81,7 +81,7 @@ build_ubuntu_16_10() {
packer_build ubuntu-${UBUNTU_TYPE}.json
}

build_ubuntu_16_04() {
build_ubuntu_16_04_server() {
export UBUNTU_VERSION="16.04.1"
export UBUNTU_ARCH="amd64"
export UBUNTU_TYPE="server"
Expand All @@ -92,7 +92,7 @@ build_ubuntu_16_04() {
packer_build ubuntu-${UBUNTU_TYPE}.json
}

build_ubuntu_14_04() {
build_ubuntu_14_04_server() {
export UBUNTU_VERSION="14.04.5"
export UBUNTU_ARCH="amd64"
export UBUNTU_TYPE="server"
Expand All @@ -103,7 +103,7 @@ build_ubuntu_14_04() {
packer_build ubuntu-${UBUNTU_TYPE}.json
}

build_my_ubuntu_14_04() {
build_my_ubuntu_14_04_server() {
export UBUNTU_VERSION="14.04.5"
export UBUNTU_ARCH="amd64"
export UBUNTU_TYPE="server"
Expand All @@ -114,7 +114,7 @@ build_my_ubuntu_14_04() {
packer_build my-ubuntu-${UBUNTU_TYPE}.json
}

build_my_ubuntu_16_04() {
build_my_ubuntu_16_04_server() {
export UBUNTU_VERSION="16.04.1"
export UBUNTU_ARCH="amd64"
export UBUNTU_TYPE="server"
Expand Down Expand Up @@ -184,7 +184,7 @@ build_windows_10() {
export SHORT_DESCRIPTION="Windows $WINDOWS_VERSION ${WINDOWS_EDITION^} ($WINDOWS_ARCH) Evaluation for libvirt"
export DESCRIPTION=$(render_template windows-${WINDOWS_VERSION}-${WINDOWS_EDITION}-eval.md)

wget -c $VIRTIO_WIN_ISO_URL -P $TMPDIR
wget -c -q $VIRTIO_WIN_ISO_URL -P $TMPDIR
export VIRTIO_WIN_ISO_DIR=$(mktemp -d --suffix=${NAME}-iso --tmpdir=$TMPDIR)
sudo mount -o loop $TMPDIR/$VIRTIO_WIN_ISO $VIRTIO_WIN_ISO_DIR
packer_build windows-${WINDOWS_VERSION}-${WINDOWS_EDITION}-eval.json
Expand All @@ -203,11 +203,11 @@ main() {
build_windows_2012_r2
build_windows_2016
build_my_centos7
build_my_ubuntu_16_04
build_my_ubuntu_14_04
build_ubuntu_16_04
build_ubuntu_14_04
build_ubuntu_16_10
build_my_ubuntu_16_04_server
build_my_ubuntu_14_04_server
build_ubuntu_16_04_server
build_ubuntu_14_04_server
build_ubuntu_16_10_desktop
}

main
47 changes: 9 additions & 38 deletions build_logs/my-centos-7-x86_64-packer.log
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ my-centos-7-x86_64 output will be in this color.
==> my-centos-7-x86_64: Downloading or copying ISO
my-centos-7-x86_64: Downloading or copying: http://ftp.linux.cz/pub/linux/centos/7/isos/x86_64/CentOS-7-x86_64-NetInstall-1611.iso
==> my-centos-7-x86_64: Creating hard drive...
==> my-centos-7-x86_64: Starting HTTP server on port 8268
==> my-centos-7-x86_64: Found port for communicator (SSH, WinRM, etc): 3716.
==> my-centos-7-x86_64: Looking for available port between 5900 and 6000
==> my-centos-7-x86_64: Found available VNC port: 5978
==> my-centos-7-x86_64: Starting HTTP server on port 8337
==> my-centos-7-x86_64: Found port for communicator (SSH, WinRM, etc): 2397.
==> my-centos-7-x86_64: Looking for available port between 5900 and 6000 on 127.0.0.1
==> my-centos-7-x86_64: Starting VM, booting from CD-ROM
==> my-centos-7-x86_64: Overriding defaults Qemu arguments with QemuArgs...
==> my-centos-7-x86_64: Waiting 2s for boot...
Expand All @@ -16,11 +15,11 @@ my-centos-7-x86_64 output will be in this color.
==> my-centos-7-x86_64: Connected to SSH!
==> my-centos-7-x86_64: Provisioning with shell script: scripts/linux-common/vagrant.sh
my-centos-7-x86_64: + date
my-centos-7-x86_64: ==> Giving vagrant sudo powers
my-centos-7-x86_64: + SSH_USER=vagrant
my-centos-7-x86_64: + SSH_USER_HOME=/home/vagrant
my-centos-7-x86_64: ==> Giving vagrant sudo powers
my-centos-7-x86_64: + VAGRANT_INSECURE_KEY='ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6NF8iallvQVp22WDkTkyrtvp9eWW6A8YVr+kz4TjGYe7gHzIw+niNltGEFHzD8+v1I2YJ6oXevct1YeS0o9HZyN1Q9qgCgzUFtdOKLv6IedplqoPkcmF0aYet2PkEDo3MlTBckFXPITAMzF8dJSIFo9D8HfdOV0IAdx4O7PtixWKn5y2hMNG0zQPyUecp4pzC6kivAIhyfHilFR61RGL+GPXQ2MWZWFYbAGjyiYJnAmCP3NOTd0jMZEnDkbUvxhMmBYSdETk1rRgm+R4LOzFUGaHqHDLKLX+FIPKcF96hrucXzcWyLbIbEgE98OHlnVYCzRdK8jlqm8tehUc9c9WhQ== vagrant insecure public key'
my-centos-7-x86_64: ==> Installing vagrant key
my-centos-7-x86_64: + VAGRANT_INSECURE_KEY='ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6NF8iallvQVp22WDkTkyrtvp9eWW6A8YVr+kz4TjGYe7gHzIw+niNltGEFHzD8+v1I2YJ6oXevct1YeS0o9HZyN1Q9qgCgzUFtdOKLv6IedplqoPkcmF0aYet2PkEDo3MlTBckFXPITAMzF8dJSIFo9D8HfdOV0IAdx4O7PtixWKn5y2hMNG0zQPyUecp4pzC6kivAIhyfHilFR61RGL+GPXQ2MWZWFYbAGjyiYJnAmCP3NOTd0jMZEnDkbUvxhMmBYSdETk1rRgm+R4LOzFUGaHqHDLKLX+FIPKcF96hrucXzcWyLbIbEgE98OHlnVYCzRdK8jlqm8tehUc9c9WhQ== vagrant insecure public key'
my-centos-7-x86_64: + echo '==> Giving vagrant sudo powers'
my-centos-7-x86_64: + echo 'vagrant ALL=(ALL) NOPASSWD: ALL'
my-centos-7-x86_64: + echo '==> Installing vagrant key'
Expand All @@ -31,25 +30,10 @@ my-centos-7-x86_64 output will be in this color.
my-centos-7-x86_64: + chmod 600 /home/vagrant/.ssh/authorized_keys
my-centos-7-x86_64: + chown -R vagrant:vagrant /home/vagrant/.ssh
==> my-centos-7-x86_64: Provisioning with Ansible...
==> my-centos-7-x86_64: SSH proxy: serving on 127.0.0.1:38615
==> my-centos-7-x86_64: Executing Ansible: ansible-playbook /home/ruzickap/data/github/packer-templates/ansible/site.yml -i /var/tmp/packer-provisioner-ansible059896561 --private-key /var/tmp/ansible-key246971738
my-centos-7-x86_64:
my-centos-7-x86_64: PLAY [all] *********************************************************************
my-centos-7-x86_64:
my-centos-7-x86_64: TASK [setup] *******************************************************************
my-centos-7-x86_64: SSH proxy: accepted connection
==> my-centos-7-x86_64: authentication attempt from 127.0.0.1:52480 to 127.0.0.1:38615 as vagrant using none
==> my-centos-7-x86_64: unauthorized key
==> my-centos-7-x86_64: authentication attempt from 127.0.0.1:52480 to 127.0.0.1:38615 as vagrant using publickey
==> my-centos-7-x86_64: unauthorized key
==> my-centos-7-x86_64: authentication attempt from 127.0.0.1:52480 to 127.0.0.1:38615 as vagrant using publickey
==> my-centos-7-x86_64: unauthorized key
==> my-centos-7-x86_64: authentication attempt from 127.0.0.1:52480 to 127.0.0.1:38615 as vagrant using publickey
==> my-centos-7-x86_64: unauthorized key
==> my-centos-7-x86_64: authentication attempt from 127.0.0.1:52480 to 127.0.0.1:38615 as vagrant using publickey
==> my-centos-7-x86_64: unauthorized key
==> my-centos-7-x86_64: authentication attempt from 127.0.0.1:52480 to 127.0.0.1:38615 as vagrant using publickey
==> my-centos-7-x86_64: authentication attempt from 127.0.0.1:52480 to 127.0.0.1:38615 as vagrant using publickey
my-centos-7-x86_64: ok: [default]
my-centos-7-x86_64:
my-centos-7-x86_64: TASK [common_defaults : Include OS-specific variables] *************************
Expand All @@ -71,14 +55,12 @@ my-centos-7-x86_64 output will be in this color.
my-centos-7-x86_64: changed: [default]
my-centos-7-x86_64:
my-centos-7-x86_64: TASK [common_defaults : Disable mouse in mc (/etc/profile.d/mc.sh)] ************
==> my-centos-7-x86_64: starting sftp subsystem
my-centos-7-x86_64: changed: [default]
my-centos-7-x86_64:
my-centos-7-x86_64: TASK [common_defaults : Create directory "/etc/skel/.config/mc"] ***************
my-centos-7-x86_64: changed: [default]
my-centos-7-x86_64:
my-centos-7-x86_64: TASK [common_defaults : Create directory for mc inside /etc/skel] **************
==> my-centos-7-x86_64: starting sftp subsystem
my-centos-7-x86_64: changed: [default]
my-centos-7-x86_64:
my-centos-7-x86_64: TASK [common_defaults : Check if user dirctory exists] *************************
Expand Down Expand Up @@ -106,7 +88,6 @@ my-centos-7-x86_64 output will be in this color.
my-centos-7-x86_64: changed: [default] => (item=/root)
my-centos-7-x86_64:
my-centos-7-x86_64: TASK [common_defaults : Set format for history command (/etc/profile.d/history_format.sh)] ***
==> my-centos-7-x86_64: starting sftp subsystem
my-centos-7-x86_64: changed: [default]
my-centos-7-x86_64:
my-centos-7-x86_64: TASK [common_defaults : Add sar alias (/etc/bashrc)] ***************************
Expand All @@ -128,7 +109,6 @@ my-centos-7-x86_64 output will be in this color.
my-centos-7-x86_64: changed: [default]
my-centos-7-x86_64:
my-centos-7-x86_64: TASK [common_defaults : Place snmpd.conf file to the /etc/snmp/] ***************
==> my-centos-7-x86_64: starting sftp subsystem
my-centos-7-x86_64: changed: [default]
my-centos-7-x86_64:
my-centos-7-x86_64: TASK [common_defaults : Configure sshd] ****************************************
Expand All @@ -145,7 +125,6 @@ my-centos-7-x86_64 output will be in this color.
my-centos-7-x86_64: changed: [default]
my-centos-7-x86_64:
my-centos-7-x86_64: TASK [common_defaults : Configure cloud-init] **********************************
==> my-centos-7-x86_64: starting sftp subsystem
my-centos-7-x86_64: changed: [default]
my-centos-7-x86_64:
my-centos-7-x86_64: TASK [common_defaults : Remove /dev/fd0 (floppy) from /etc/fstab (floppy is presend by default when using KVM provisioner)] ***
Expand Down Expand Up @@ -192,7 +171,6 @@ my-centos-7-x86_64 output will be in this color.
my-centos-7-x86_64: changed: [default]
my-centos-7-x86_64:
my-centos-7-x86_64: TASK [common_defaults : Set NTP step stickers] *********************************
==> my-centos-7-x86_64: starting sftp subsystem
my-centos-7-x86_64: changed: [default]
my-centos-7-x86_64:
my-centos-7-x86_64: TASK [common_defaults : Backup original /etc/yum/yum-cron.conf] ****************
Expand All @@ -209,14 +187,12 @@ my-centos-7-x86_64 output will be in this color.
my-centos-7-x86_64: changed: [default] => (item={u'regexp': u'^download_updates.*', u'replace': u'download_updates = yes'})
my-centos-7-x86_64:
my-centos-7-x86_64: TASK [common_defaults : Add /usr/local/bin/etc_issue.sh script] ****************
==> my-centos-7-x86_64: starting sftp subsystem
my-centos-7-x86_64: changed: [default]
my-centos-7-x86_64:
my-centos-7-x86_64: TASK [common_defaults : Create link /usr/local/bin/etc_issue.sh /etc/profile.d/etc_issue.sh] ***
my-centos-7-x86_64: changed: [default]
my-centos-7-x86_64:
my-centos-7-x86_64: TASK [common_defaults : Prevent systemd to log too many messages like "Starting Session 1398 of user root."] ***
==> my-centos-7-x86_64: starting sftp subsystem
my-centos-7-x86_64: changed: [default]
my-centos-7-x86_64:
my-centos-7-x86_64: TASK [common_defaults : Disable and stop services during boot] *****************
Expand Down Expand Up @@ -249,11 +225,10 @@ my-centos-7-x86_64 output will be in this color.
my-centos-7-x86_64: PLAY RECAP *********************************************************************
my-centos-7-x86_64: default : ok=51 changed=42 unreachable=0 failed=0
my-centos-7-x86_64:
==> my-centos-7-x86_64: shutting down the SSH proxy
==> my-centos-7-x86_64: Provisioning with shell script: scripts/linux-common/cleanup.sh
my-centos-7-x86_64: + SSH_USER=vagrant
my-centos-7-x86_64: + echo '==> Cleaning up udev rules'
my-centos-7-x86_64: ==> Cleaning up udev rules
my-centos-7-x86_64: + echo '==> Cleaning up udev rules'
my-centos-7-x86_64: + rm -rf /dev/.udev/ /lib/udev/rules.d/75-persistent-net-generator.rules
my-centos-7-x86_64: + service rsyslog stop
my-centos-7-x86_64: Redirecting to /bin/systemctl stop rsyslog.service
Expand All @@ -269,18 +244,18 @@ my-centos-7-x86_64 output will be in this color.
my-centos-7-x86_64: Cleaning up list of fastest mirrors
my-centos-7-x86_64: + echo '==> Cleaning up tmp'
my-centos-7-x86_64: ==> Cleaning up tmp
my-centos-7-x86_64: + rm -rf /tmp/ks-script-1PsDNk /tmp/ks-script-L3lFrp /tmp/script_1911.sh /tmp/ssh-i73seWphLT /tmp/tmpiP4YJP /tmp/yum.log
my-centos-7-x86_64: + rm -rf /tmp/ks-script-4dFmsa /tmp/ks-script-WlLMyj /tmp/script_5195.sh /tmp/ssh-eG9nJa9XS0 /tmp/tmprJeRNL /tmp/yum.log
my-centos-7-x86_64: + unset HISTFILE
my-centos-7-x86_64: + rm -f /root/.bash_history
my-centos-7-x86_64: + rm -f /home/vagrant/.bash_history
my-centos-7-x86_64: + find /var/log -type f
my-centos-7-x86_64: + read f
my-centos-7-x86_64: + echo -ne ''
my-centos-7-x86_64: ==> Clearing last login information
my-centos-7-x86_64: + read f
my-centos-7-x86_64: + echo -ne ''
my-centos-7-x86_64: + read f
my-centos-7-x86_64: + echo -ne ''
my-centos-7-x86_64: ==> Clearing last login information
my-centos-7-x86_64: + read f
my-centos-7-x86_64: + echo -ne ''
my-centos-7-x86_64: + read f
Expand Down Expand Up @@ -326,13 +301,9 @@ my-centos-7-x86_64 output will be in this color.
my-centos-7-x86_64: + read f
my-centos-7-x86_64: + echo '==> Clearing last login information'
my-centos-7-x86_64: + dd if=/dev/zero of=/EMPTY_FILE bs=1M
my-centos-7-x86_64: dd: error writing ‘/EMPTY_FILE’: No space left on device
my-centos-7-x86_64: dd exit code 1 is suppressed
my-centos-7-x86_64: 101131+0 records in
my-centos-7-x86_64: 101130+0 records out
my-centos-7-x86_64: 106043052032 bytes (106 GB) copied, 3122.29 s, 34.0 MB/s
my-centos-7-x86_64: + echo 'dd exit code 1 is suppressed'
my-centos-7-x86_64: + rm -f /EMPTY_FILE
my-centos-7-x86_64: dd exit code 1 is suppressed
my-centos-7-x86_64: + sync
==> my-centos-7-x86_64: Gracefully halting virtual machine...
==> my-centos-7-x86_64: Converting hard drive...
Expand Down
Loading

0 comments on commit fb11405

Please sign in to comment.