File tree Expand file tree Collapse file tree 1 file changed +13
-26
lines changed Expand file tree Collapse file tree 1 file changed +13
-26
lines changed Original file line number Diff line number Diff line change 1
- Use the debian 10 in the docker to deploy cloud-init qemu image
2
- ``` shell
3
- docker run --rm -it --privileged -v $( pwd) :/cloud-init -w /cloud-init debian:10 bash
4
- ```
5
- In the container:
6
- ``` shell
7
- apt -y update
8
- apt install -y mc python3 ansible git
9
- ```
10
- Clone repo:
11
- ```
12
- git clone https://github.com/vyos/vyos-vm-images && cd vyos-vm-images
13
- ```
14
-
15
- Generate qemu image based on local ISO
16
- ``` shell
17
- ansible-playbook qemu.yml -e disk_size=2 -e iso_local=./vyos-1.4.iso -e cloud_init=true -e cloud_init_ds=NoCloud -e grub_console=serial -e vyos_version=1.4.0 -e guest_agent=qemu -e enable_ssh=true
18
- ```
19
1
20
- Make ISO
21
- ``` shell
22
- mkisofs -joliet -rock -volid " cidata" -output seed.iso meta-data user-data
23
- or
24
- genisoimage -output seed.iso -volid cidata -joliet -r user-data meta-data
25
- ```
26
-
27
- ## Docker
2
+ # Docker
28
3
The Dockerfile has all required dependencies.
29
4
1 . Download the ` Dockerfile `
30
5
```
@@ -43,3 +18,15 @@ docker run --rm -it --privileged -v $(pwd):/vm-build -v $(pwd)/images:/tmp -w /v
43
18
git clone https://github.com/vyos/vyos-vm-images.git && cd vyos-vm-images
44
19
```
45
20
21
+ # Generate qemu image
22
+ Generate qemu image based on local ISO
23
+ ``` shell
24
+ ansible-playbook qemu.yml -e disk_size=2 -e iso_local=./vyos-1.4.iso -e cloud_init=true -e cloud_init_ds=NoCloud -e grub_console=serial -e vyos_version=1.4.0 -e guest_agent=qemu -e enable_ssh=true
25
+ ```
26
+
27
+ ## Make seed ISO
28
+ ``` shell
29
+ mkisofs -joliet -rock -volid " cidata" -output seed.iso meta-data user-data
30
+ or
31
+ genisoimage -output seed.iso -volid cidata -joliet -r user-data meta-data
32
+ ```
You can’t perform that action at this time.
0 commit comments