198
edits
Changes
→Boot Pidora in QEMU
== Pidora Graphical Boot ==
Run the commands below.
OR
Copy the commands below to a file called: start_pidora_graphical
And execute the file: bash start_pidora_graphical
<pre>
#!/bin/bash
# Choose the directory for the compiled QEMU software
pidora_dir=/data/pidora-qemu
== Pidora Multi-user Boot ==
Run the commands below
OR
Copy the commands below to a file called: start_pidora_multi_user
And execute the file: bash start_pidora_multi_user
<pre>
#!/bin/bash
# Choose the directory for the compiled QEMU software
pidora_dir=/data/pidora-qemu
</pre>
== Boot with SSH Enabled ==
There is a option you can specify in the boot command that will allow a port to be forwarded from a localhost to the port on the pidora machine. For example, to connect to the raspberry pi qemu environment with ssh you would add this line:
<pre>
-redir tcp:2222::22
</pre>
This will redirect all traffic from localhost on your main machine through the port 2222 to the raspberry pi qemu machine port 22. Make sure ssh is running on the qemu machine:
<pre>
systemctl enable sshd # To make sshd start at boot time
systemctl start sshd # To start sshd
</pre>
So you can connect with ssh by running the following command:
<pre>
ssh -p 2222 root@localhost # Connect to raspberry pi qemu over ssh
</pre>
=== Multi-User Boot With SSH ===
This is an example of the above multi user boot with the added redirect option to enable ssh.
<pre>
#!/bin/bash
# Choose the directory for the compiled QEMU software
pidora_dir=/data/pidora-qemu
# This is the command to boot the Pidora Image using the compiled version of QEMU
${pidora_dir}/raspidev/qemu/arm-softmmu/qemu-system-arm -redir tcp:2222::22 -kernel ${pidora_dir}/kernel-qemu -cpu arm1176 -m 256 -M versatilepb -no-reboot -serial stdio -append "root=/dev/sda2 panic=1 rootfstype=ext4 rw 3" -hda ${pidora_dir}/Pidora-2014-R1.img
</pre>
=== Graphical Boot With SSH ===
This is an example of the above graphical boot with the added redirect option to enable ssh.
<pre>
#!/bin/bash
# Choose the directory for the compiled QEMU software
pidora_dir=/data/pidora-qemu
# This is the command to boot the Pidora Image using the compiled version of QEMU
${pidora_dir}/raspidev/qemu/arm-softmmu/qemu-system-arm -redir tcp:2222::22 -kernel ${pidora_dir}/kernel-qemu -cpu arm1176 -m 256 -M versatilepb -no-reboot -serial stdio -append "root=/dev/sda2 panic=1 rootfstype=ext4 rw" -hda ${pidora_dir}/Pidora-2014-R1.img
</pre>
= Issues =