Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- DO NOT COPY ANY OF THE LINES DIRECTLY (may not work) Also, use the proper undercase capitalization, word just capitalized the first letter of each line. NEVER try to boot/mount a mounted/booted filesystem, it will corrupt the file.
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ssh -X root@10.50.XX.XX
- mkdir tmp
- mkdir tmp/<last name here>
- apt install p7zip-full
- 7z x fun.vdi.7z
- cp fun.vdi /root/tmp/
- modprobe nbd max_part=15
- ls -l /dev/nbd*
- ^ That command should return a list of NBDs. Check for nbd existence if getting end of file errors.
- apt install qemu-utils
- alias c='qemu-nbd -c /dev/nbd0 /root/tmp/fun.vdi'
- type the command <c>
- alias m='mount /dev/nbd0p1 /root/tmp/<last name here>'
- type the command <m>
- ls /root/tmp/<last name here>
- ^ there should be a filesystem there.
- alias u='umount /root/tmp/roper'
- type the command <u>
- alias d='qemu-nbd -d /dev/nbd0'
- type the command <d>
- alias b='qemu-system-i386 /root/tmp/fun.vdi -m 512'
- apt install qemu-system-x86
- type the command <b>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement