It's UWAweek 16 (1st semester, week 7)

help3007

This forum is provided to promote discussion amongst students enrolled in CITS3007 Secure Coding. If posting a question, it's suggested you check first whether your question is answered in the unit Frequently Asked Questions (FAQ) list, and use the search box (on the right) to see if an answer to your question has already been posted.

Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.

Note that any posts must comply with the UWA Code of Conduct and the UWA Academic Conduct Policy. That means you should (a) treat everyone with respect and courtesy, and (b) not post your solutions to an assessment that's in progress.

If asking a programming question, it's recommended you read How do I ask a good question? If reporting or troubleshooting a bug in software used in the unit, it's recommend you read How to report bugs effectively.
Displaying selected article
Showing 1 of 40 articles.
Currently no other people reading this forum.


 UWA week 11 (1st semester, week 3) ↓
SVG not supported

Login to reply

👍x1
helpful
5:13pm Tue 12th Mar, Arran S.

"Henuka Daluwatta" [email protected] wrote:

  • a Qcow2 file extracted from the CITS3007 vagrant image

I've tried doing numerous times this but had no success. It's a shame as I have successfully done this extraction before, though it has always been a hit-or-miss.

Going into ~/.vagrant.d/boxes/arranstewart-VAGRANTSLASH-cits3007-ubuntu2004/0.1.4/virtualbox and using ls reveals a packer-cits3007-1659682974-disk001.vmdk.

I used scp to copy it over to an AMD64 virtual machine for Kali Linux and tried to use qemu-img with the command: qemu-img convert -O qcow2 packer-cits3007-1659682974-disk001.vmdk cits3007.qcow2

Putting this into UTM and disabling UEFI boot in the system settings for the VM in UTM didn't do anything. 😭

Thanks for letting me know. Just to clarify: the lab worksheet "Using UTM on M-series Mac laptops" suggests a different process to the one you seem to have used. You've extracted a .vmdk file from your ~/.vagrant.d directory, then used qemu-img to convert it to Qcow2 format. But a Qcow2 disk for the CITS3007 SDE already exists, and can be obtained by following the lab worksheet instructions. (The "Vagrant hub" can store images for multiple providers – if you look at the entry for the CITS3007 Vagrant image here, you'll see that entries are listed for both VMware and Libvirt, and Libvirt is the underlying library used by UTM.)

Since I don't have a Mac, I'm afraid I can't reproduce your issue, but you might try using the Qcow2 file suggested by the lab worksheet. Usually, conversion between VMDK and Qcow2 is fairly lossless, but virtual machines are complex and it wouldn't hurt to try the original file.

If any other students have successfully used a Qcow2 file on a Mac laptop, do feel free to post here and explain what you did. Failing that, I'd suggest just using the ARM64 Ubuntu 22.04 image, as suggested by the lab sheet.

(You could also try importing a smaller and simpler x86-64 image, and see if that works – if you look at the Vagrant hub page here, then under "libvirt" you should be able to find VM images of only 300MB in size for Alpine Linux. If those work, but the CITS3007 image doesn't, then that might help me pinpoint exactly what the problem is.)

Cheers,

Arran

p.s. The qemu tools should be obtainable on a Mac just by running brew install qemu (see here), if you use Brew. I don't think there's any need to copy files back and forth from Kali Linux.

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  5:07AM Sep 06 2023
Privacy policy