On Fri, Feb 06, 2015 at 12:13:38PM -0800,
goo...@mamawe.net wrote:
> Hi Marek,
>
> Am Freitag, 6. Februar 2015 20:11:21 UTC+1 schrieb ich:
> > Am Freitag, 6. Februar 2015 20:00:10 UTC+1 schrieb Marek Marczykowski-Górecki:
> > > On Fri, Feb 06, 2015 at 10:54:00AM -0800, I wrote:
> > [...]
> > > > Then I'll try to setup a paravirtual VM. At least I have something to start with.
> > >
> > > Currently there is no easy way to do that, but you can create some
> > > standalone VM based on existing template, then replace its root.img with
> > > openwrt. As there is no qrexec agent nor gui agent installed (or there
> > > is?), the only way to access the console is "sudo xl console VMNAME".
> >
> > Thanks for the hints, I'll try that.
>
> This worked somewhat. But when I start the console I could see that the kernel and ramdisk came from Fedora. The Xen VM config file is autogenerated by qubes tools. So I can't change it directly to use the kernel from OpenWrt and just the OpenWrt disk image.
>
> I assume some of the information is taken from /var/lib/qubes/qubes.xml and the kernel should be located at /var/lib/qubes/vm-kernels/some-dir/. Right?
Exactly, then set "some-dir" as a kernel for that VM (for example using
qvm-prefs).
> Is it enough just to leave the kernel without ramdisk and modules in that directory?
There must be such files, but I guess empty files will do (unless you
really need initramfs.
One more possible problem - Qubes passes root=/dev/mapper/dmroot option to the
kernel. So you need to either force some other value - most likely it
will be enough to set root=... in "kernelopts" VM property.
> How would I regenerate the Xen VM config after changing things in qubes.xml?
> Or should I leave this file as it is and use some other tool?
You can provide own config file using qvm-start --custom-config, but use
it as a last resort.