Skip to content

Commit

Permalink
git push uuuuMerge branch 'main' of https://github.com/amargaritov/PT…
Browse files Browse the repository at this point in the history
…EMagnet_AE into main
  • Loading branch information
amargaritov committed Dec 22, 2020
2 parents af8cbb6 + ed12d78 commit 5621b43
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ ssh-keygen -t rsa
```
* Boot a virtual machine with the provided disk image
```bash
KERNEL=clean; sudo qemu-system-x86_64 KERNEL=clean; sudo qemu-system-x86_64 -kernel $KERNEL_DIR/linux_$KERNEL/arch/x86/boot/bzImage -boot c -m 64G -hda $IMAGE_DIR/rootfs.img -append "root=/dev/sda rw" -device e1000,netdev=net0 -netdev user,id=net0,hostfwd=tcp::6666-:22 --enable-kvm -smp 20 -cpu host -nographic
KERNEL=clean; sudo qemu-system-x86_64 -kernel $KERNEL_DIR/linux_$KERNEL/arch/x86/boot/bzImage -boot c -m 64G -hda $IMAGE_DIR/rootfs.img -append "root=/dev/sda rw" -device e1000,netdev=net0 -netdev user,id=net0,hostfwd=tcp::6666-:22 --enable-kvm -smp 20 -cpu host -nographic
```
* Wait for machine to boot (login prompt should appear)
* Start a new shell on the host, upload the generated ssh key to a virtual machine
Expand Down
14 changes: 10 additions & 4 deletions install/install_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,12 @@ $SCRIPT_DIR/kernel/build_kernels.sh $KERNEL_DIR
export IMAGE_DIR="$INSTALL_PATH/vm_images"
echo "export IMAGE_DIR=\"$INSTALL_PATH/vm_images\"" >> $REPO_ROOT/source.sh

FAILED_DISK_DWNL=0
$SCRIPT_DIR/vm_disk_image/download_vm_disk_image.sh $IMAGE_DIR
if [ $? -eq 124 ]; then
# Timeout occurred
exit 124
if [ $? -ne 0 ]; then
#echo "It seems that something is wrong with the download source. Please sent a message to Artemiy <[email protected]>"
# Timeout occurred
FAILED_DISK_DWNL=1
fi

#echo "$REPO_ROOT/evaluation/disable_thp_no_drop.sh" >> $REPO_ROOT/source.sh
Expand All @@ -49,5 +51,9 @@ echo "source $REPO_ROOT/venv/bin/activate" >> $REPO_ROOT/source.sh

echo "cd $REPO_ROOT; source source.sh" >> ~/.bashrc


source $REPO_ROOT/source.sh

if [ $FAILED_DISK_DWNL -eq 1]; then
echo "It seems that something went wrong when download the VM image. Please sent a message to Artemiy <[email protected]>"
exit 101
fi

0 comments on commit 5621b43

Please sign in to comment.