Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix libvirt issue while make init #258

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

5angjun
Copy link

@5angjun 5angjun commented Nov 7, 2023

Hi, i'm sangjun who is very interested in this project.

When i'm following kAFL windows tutorial, i found some problem.

libvirt issue

  1. I think you should change your ansible yaml like below: There is a libvirt issue in the make init step.
b@b:~/kAFL-patch$ git diff HEAD
diff --git a/deploy/intellabs/kafl/roles/examples/tasks/template_windows.yml b/deploy/intellabs/kafl/roles/examples/tasks/template_windows.yml
index 1338d39..4324f7d 100644
--- a/deploy/intellabs/kafl/roles/examples/tasks/template_windows.yml
+++ b/deploy/intellabs/kafl/roles/examples/tasks/template_windows.yml
@@ -76,3 +76,29 @@
     path: /usr/lib/qemu/qemu-bridge-helper
     mode: 'u+s'
   become: true
+
+
+- name: Install required for init
+  ansible.builtin.apt:
+    # https://askubuntu.com/questions/1225216/failed-to-connect-socket-to-var-run-libvirt-libvirt-sock
+    name: 
+      - pax-utils
+      - qemu
+      - qemu-kvm
+      - libvirt-clients
+      - libvirt-daemon-system
+      - virtinst
+      - bridge-utils
+    state: present
+  become: true
+  tags:
+    - virtualization_packages
+
+- name: Enable and start libvirtd service
+  ansible.builtin.systemd:
+    name: libvirtd
+    enabled: yes
+    state: started
+  become: true
+  tags:
+    - libvirtd_service

스크린샷, 2023-11-07 13-07-10

libvirt box name changed

When Windows was completely boxed using the make build command, the name of the output changed from packer_windows_libvirt.box to packer_windows_libvirt_amd64.box as shown in the picture below.

i think this caused by libvirt package ( i guess so )
스크린샷, 2023-11-07 14-18-54

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant