summaryrefslogtreecommitdiff
path: root/md/writeup/qemu_usage.md
blob: 38fc3e0337850aaf1c488385979369c44b32d6eb (plain) (blame)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75

# QEMU

## Create image

```bash
qemu-img create -f raw image_file 4G
```

Run iso with image

```bash
qemu-system-i386 -cdrom _iso_image_ -boot order=d _qemu_image_ 
```


### Setting up memory

> -m 512

### Setting up network card

-net nic

### Lunching image 

If everything installed then image could be runed just with

```bash
qemu-system-i386 _options_ _disk_image_
```

<!--## Lunching self compiled kernel-->


## Compile qemu

To get qemu you can download file or just clone git repo here is page to 
download files [http://wiki.qemu.org/Download](http://wiki.qemu.org/Download)
and git repo located at

```bash
git clone git://git.qemu-project.org/qemu.git
```

To see avaliable targets run 
```bash
./configure --help
```
there alos many different options and targets just choose one that you need 
most  

Configure targets:

```bash
./configure --target-list=arm-softmmu,arm-linux-user
```

or could be choosen to compile all targets

```bash
./configure --enable-system
```

Compile

```bash
make
```

## Reference

1. [https://wiki.archlinux.org/index.php/QEMU](https://wiki.archlinux.org/index.php/QEMU)
2. [http://www.cnx-software.com/2012/03/08/how-to-build-qemu-system-arm-in-linux/](http://www.cnx-software.com/2012/03/08/how-to-build-qemu-system-arm-in-linux/)
3. [https://wiki.linaro.org/PeterMaydell/KVM/HowTo/BuildQEMU](https://wiki.linaro.org/PeterMaydell/KVM/HowTo/BuildQEMU)