Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update testing-guide.md #34

Merged
merged 2 commits into from
Nov 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions docs/testing-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,29 @@ qemu-img create -f qcow2 ~/.local/share/libvirt/images/eib-iso.qcow2 20G

The next time the VM is powered on, it will trigger the ISO installer.

### Testing using virt-install (CLI)

If you want to use the command line to deploy the VM and test it with your EIB generated image, you could use the following process:

- The first step is to create an empty disk for the VM:

`qemu-img create -f qcow2 example.img 6G`

- Next, use virt-install to define and run a VM using the EIB generated image:

```
virt-install --name testVM \
--memory 4096 \
--vcpus 4 \
--disk ./example.img \
--install no_install=yes \
--cdrom ./eib-image-generated.iso \
--network default \
--osinfo detect=on,name=sle-unknown
```

During the first boot, you'll need to install the OS following the instructions. After installation, a reboot will happen. Subsequent boots will use the "Boot From Disk" option to boot from the installed OS.

## Testing RAW Images

Using Virtual Machine Manager, select the option to create a new VM.
Expand Down