mirror of
https://github.com/clearlinux/clear-linux-documentation.git
synced 2026-08-26 10:28:24 +00:00
updating with proposed fix for CLR-1382 JIRA doc bug
Signed-off-by: Leona <leonax.cook@intel.com>
This commit is contained in:
+2
-25
@@ -11,31 +11,8 @@ image file, the UEFI firmware helper, and the KVM start helper script.
|
||||
Starter script
|
||||
==============
|
||||
|
||||
To start the image, run the `qemu shell script`_ script available in the
|
||||
`images`_ directory, or modify the following script for your needs and run it
|
||||
from the command line with ``$ [script name] clr_image``
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
#!/bin/bash
|
||||
if [ $# -eq 0 ] ; then
|
||||
echo "Please provide an image to emulate as first argument"
|
||||
exit 1
|
||||
fi
|
||||
image=$1
|
||||
shift
|
||||
# FIXME: Add a proper MAC address
|
||||
macaddr=XX:XX:XX:XX:XX:XX
|
||||
qemu-system-x86_64 \
|
||||
-usb -device usb-kbd \
|
||||
-cpu qemu64,+vmx \
|
||||
-enable-kvm \
|
||||
-m 512m -bios OVMF.fd \
|
||||
-drive file="$image",index=0,if=ide \
|
||||
-net nic,model=e1000,macaddr=$macaddr \
|
||||
-net user,hostfwd=tcp::2223-:22 \
|
||||
-monitor stdio "$@"
|
||||
|
||||
To start the image, run the `qemu shell script`_ available in the
|
||||
`images`_ directory.
|
||||
|
||||
SSH is needed for remote logins; however, SSH not enabled by default. To enable
|
||||
it, log in through serial console with the username ``root``. After setting the
|
||||
|
||||
Reference in New Issue
Block a user