File size: 1,519 Bytes
806d4b5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42

                                  QEMU Install
QEMU works on Linux or Windows.
You can look at my QEMU Linux Bash Scripts.  You need 512+ Meg of RAM.

Use QEMU to run the ISO in a virtual machine.  Install QEMU-KVM.  Then, create a
virtual hard drive.

If you want to be like Terry A. Davis, this video shows how to make your QEMU
set-up pretty close.  Otherwise, use the standard /Home files.


Wiki on QEMU Images

You make a file for your guest hard disk image.
>qemu-img create -f qcow2 my_disk.img 3G

Then, boot the CD/DVD ISO and install TempleOS.  Type this command on one line,
with the number of cores you have:
>qemu-system-x86_64 -hda my_disk.img -machine kernel_irqchip=off -smp cores=1
-enable-kvm -cpu host -m 2048 -rtc base=localtime -soundhw pcspk -cdrom
TempleOSCD.ISO -boot d

After installing, boot the hard disk normally.  Type this with the number of
cores you have:
>qemu-system-x86_64 -hda my_disk.img -machine kernel_irqchip=off -smp cores=1
-enable-kvm -cpu host -m 2048 -rtc base=localtime -soundhw pcspk

To access the guest hard drivbe, use this to connect the guest image to
/dev/nbd0.  It acts like any other block device.  This will mount it to mount
point, /mnt/my_disk.
>sudo modprobe nbd max_part=16
>sudo qemu-nbd -c /dev/nbd0 my_disk.img
>sudo partprobe /dev/nbd0
>sudo mkdir /mnt/my_disk
>sudo mount /dev/nbd0p1 /mnt/my_disk


* "Linux" is a trademark owned by Linus Torvalds.
* "QEMU" is a trademark owned by Fabrice Bellard.
* "Windows" is a trademarks owned by MicroSoft Corp.