I have a computer with Ubuntu operating system. I want to install OpenWRT in it. No ethernet cable, router, modem etc. Is this possible ?
All you need is to write the x86/x86_64 image to some form of storage you can boot from (USB stick, SSD, hard disk) and boot off it.
qemu-system-x86_64 is your friend. You can have as many network interfaces as you want. The setup is complex if you are not familiar with QEMU command line interfaces. There are many outdated tutorial on the net.
Since you've got two very different answers:
- Run OpenWrt natively, i.e. replacing your Ubuntu installation completely, this is @Borromini's answer
- Run OpenWrt in a virtual machine like Qemu or VirtualBox on top of your existing Ubuntu installation, this is @Livy's answer.
What exactly do you want to achieve?
or install it in parallell to your Ubuntu, in a separate partition
or boot it from a flash drive, or some other storage attached via USB.
Thank you for all the replies. I will try the suggestions and share my experiences.
how can ı download OpenWRT source code ?
there are premade images available https://openwrt.org/docs/guide-user/installation/openwrt_x86