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

Error building win2k8 qemu #605

Open
Mario156090 opened this issue Aug 19, 2023 · 0 comments
Open

Error building win2k8 qemu #605

Mario156090 opened this issue Aug 19, 2023 · 0 comments

Comments

@Mario156090
Copy link

Hello, I'm triying to build a machine for qemu but Appears me this error:

image

Attach log:

2023/08/19 08:29:10 packer-builder-qemu plugin: Initializing block device backed by temporary file
2023/08/19 08:29:10 packer-builder-qemu plugin: Formatting the block device with a FAT filesystem...
2023/08/19 08:29:10 packer-builder-qemu plugin: Initializing FAT filesystem on block device
qemu: Copying files flatly from floppy_files
2023/08/19 08:29:10 packer-builder-qemu plugin: Reading the root directory from the filesystem
qemu: Copying file: /home/mario/Escritorio/metasploitable3-master/packer/templates/../answer_files/2008_r2/Autounattend.xml
qemu: Copying file: /home/mario/Escritorio/metasploitable3-master/packer/templates/../../scripts/configs/microsoft-updates.bat
qemu: Copying file: /home/mario/Escritorio/metasploitable3-master/packer/templates/../../scripts/configs/win-updates.ps1
qemu: Copying file: /home/mario/Escritorio/metasploitable3-master/packer/templates/../../scripts/installs/openssh.ps1
qemu: Copying file: /home/mario/Escritorio/metasploitable3-master/packer/templates/../../resources/certs/oracle-cert.cer
qemu: Copying file: /home/mario/Escritorio/metasploitable3-master/packer/templates/../../resources/certs/gdig2.crt
qemu: Copying file: /home/mario/Escritorio/metasploitable3-master/packer/templates/../../resources/certs/comodorsadomainvalidationsecureserverca.crt
qemu: Copying file: /home/mario/Escritorio/metasploitable3-master/packer/templates/../../resources/certs/comodorsacertificationauthority.crt
qemu: Copying file: /home/mario/Escritorio/metasploitable3-master/packer/templates/../../resources/certs/addtrust_external_ca.cer
qemu: Copying file: /home/mario/Escritorio/metasploitable3-master/packer/templates/../../resources/certs/baltimore_ca.cer
qemu: Copying file: /home/mario/Escritorio/metasploitable3-master/packer/templates/../../resources/certs/digicert.cer
qemu: Copying file: /home/mario/Escritorio/metasploitable3-master/packer/templates/../../resources/certs/equifax.cer
qemu: Copying file: /home/mario/Escritorio/metasploitable3-master/packer/templates/../../resources/certs/globalsign.cer
qemu: Copying file: /home/mario/Escritorio/metasploitable3-master/packer/templates/../../resources/certs/gte_cybertrust.cer
qemu: Copying file: /home/mario/Escritorio/metasploitable3-master/packer/templates/../../resources/certs/microsoft_root_2011.cer
qemu: Copying file: /home/mario/Escritorio/metasploitable3-master/packer/templates/../../resources/certs/thawte_primary_root.cer
qemu: Copying file: /home/mario/Escritorio/metasploitable3-master/packer/templates/../../resources/certs/utn-userfirst.cer
qemu: Done copying files from floppy_files
qemu: Collecting paths from floppy_dirs
qemu: Resulting paths from floppy_dirs : []
qemu: Done copying paths from floppy_dirs
qemu: Copying files from floppy_content
qemu: Done copying files from floppy_content
2023/08/19 08:29:10 packer-builder-qemu plugin: No CD files specified. CD disk will not be made.
2023/08/19 08:29:10 packer-builder-qemu plugin: [INFO] Creating disk with Path: output-qemu/metasploitable3-win2k8 and Size: 61440M
2023/08/19 08:29:10 packer-builder-qemu plugin: Executing qemu-img: []string{"create", "-f", "qcow2", "output-qemu/metasploitable3-win2k8", "61440M"}
2023/08/19 08:29:10 packer-builder-qemu plugin: stdout: Formatting 'output-qemu/metasploitable3-win2k8', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=64424509440 lazy_refcounts=off refcount_bits=16
2023/08/19 08:29:10 packer-builder-qemu plugin: stderr:
2023/08/19 08:29:10 packer-builder-qemu plugin: Looking for available communicator (SSH, WinRM, etc) port between 2222 and 4444
2023/08/19 08:29:10 packer-builder-qemu plugin: Found available port: 2443 on IP: 127.0.0.1
==> qemu: Found port for communicator (SSH, WinRM, etc): 2443.
==> qemu: Looking for available port between 5900 and 6000 on 127.0.0.1
2023/08/19 08:29:10 packer-builder-qemu plugin: Looking for available port between 5900 and 6000 on 127.0.0.1
2023/08/19 08:29:10 packer-builder-qemu plugin: Found available port: 5949 on IP: 127.0.0.1
2023/08/19 08:29:10 packer-builder-qemu plugin: Found available VNC port: 5949 on IP: 127.0.0.1
2023/08/19 08:29:10 packer-builder-qemu plugin: Qemu --version output: QEMU emulator version 8.0.3
2023/08/19 08:29:10 packer-builder-qemu plugin: Copyright (c) 2003-2022 Fabrice Bellard and the QEMU Project developers
2023/08/19 08:29:10 packer-builder-qemu plugin: Qemu version: 8.0.3
==> qemu: Starting VM, booting from CD-ROM
==> qemu: Overriding default Qemu arguments with qemuargs template option...
2023/08/19 08:29:10 packer-builder-qemu plugin: Executing /usr/bin/qemu-system-x86_64: []string{"-smp", "2", "-display", "gtk", "-machine", "type=pc,accel=kvm", "-netdev", "user,id=user.0,hostfwd=tcp::2443-:22", "-fda", "/tmp/packer2843758226", "-name", "metasploitable3-win2k8", "-vnc", "127.0.0.1:49", "-m", "4096", "-device", "virtio-net,netdev=user.0", "-drive", "file=output-qemu/metasploitable3-win2k8,if=virtio,cache=writeback,discard=ignore,format=qcow2", "-drive", "file=/home/mario/.cache/packer/6a49219888284f0371f588f026e9ccf49f186c33.iso,media=cdrom", "-boot", "once=d"}
2023/08/19 08:29:10 packer-builder-qemu plugin: Started Qemu. Pid: 12421
2023/08/19 08:29:10 packer-builder-qemu plugin: Qemu stderr: WARNING: Image format was not specified for '/tmp/packer2843758226' and probing guessed raw.
2023/08/19 08:29:10 packer-builder-qemu plugin: Qemu stderr: Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
2023/08/19 08:29:10 packer-builder-qemu plugin: Qemu stderr: Specify the 'raw' format explicitly to remove the restrictions.
==> qemu: Waiting 10m0s for boot...

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

No branches or pull requests

2 participants
@Mario156090 and others