version 1.187, 2020/11/15 15:31:47
|
version 1.189, 2020/11/19 13:55:58
|
Line 459 down cleanly on dom0 shutdown, add the f
|
Line 459 down cleanly on dom0 shutdown, add the f
|
xendomains="domU-netbsd domU-linux" |
xendomains="domU-netbsd domU-linux" |
"""]] |
"""]] |
|
|
# Creating a domU |
# domU setup for specific systems |
|
|
Creating domUs is almost entirely independent of operating system. We |
Creating domUs is almost entirely independent of operating system. We |
have already presented the basics of config files. Note that you must |
have already presented the basics of config files in the previous system. |
have already completed the dom0 setup so that "xl list" works. |
|
|
|
## Creating a NetBSD PV domU |
Of course, this section presumes that you have a working dom0. |
|
|
|
## Creating a NetBSD PV domU |
|
|
See the earlier config file, and adjust memory. Decide on how much |
See the earlier config file, and adjust memory. Decide on how much |
storage you will provide, and prepare it (file or LVM). |
storage you will provide, and prepare it (file or LVM). |
Line 475 While the kernel will be obtained from t
|
Line 475 While the kernel will be obtained from t
|
file should be present in the domU as /netbsd so that tools like |
file should be present in the domU as /netbsd so that tools like |
savecore(8) can work. (This is helpful but not necessary.) |
savecore(8) can work. (This is helpful but not necessary.) |
|
|
The kernel must be specifically for Xen and for use as a domU. The |
The kernel must be specifically built for Xen, to use PV interfacesas |
i386 and amd64 provide the following kernels: |
a domU. NetBSD release builds provide the following kernels: |
|
|
i386 XEN3PAE_DOMU |
i386 XEN3PAE_DOMU |
amd64 XEN3_DOMU |
amd64 XEN3_DOMU |
|
|
This will boot NetBSD, but this is not that useful if the disk is |
This will boot NetBSD, but this is not that useful if the disk is |
empty. One approach is to unpack sets onto the disk outside of xen |
empty. One approach is to unpack sets onto the disk outside of Xen |
(by mounting it, just as you would prepare a physical disk for a |
(by mounting it, just as you would prepare a physical disk for a |
system you can't run the installer on). |
system you can't run the installer on). |
|
|
Line 502 line should be used in the config file.
|
Line 502 line should be used in the config file.
|
After booting the domain, the option to install via CDROM may be |
After booting the domain, the option to install via CDROM may be |
selected. The CDROM device should be changed to `xbd1d`. |
selected. The CDROM device should be changed to `xbd1d`. |
|
|
Once done installing, "halt -p" the new domain (don't reboot or halt, |
Once done installing, "halt -p" the new domain (don't reboot or halt: |
it would reload the INSTALL_XEN3_DOMU kernel even if you changed the |
it would reload the INSTALL_XEN3_DOMU kernel even if you changed the |
config file), switch the config file back to the XEN3_DOMU kernel, |
config file), switch the config file back to the XEN3_DOMU kernel, |
and start the new domain again. Now it should be able to use "root on |
and start the new domain again. Now it should be able to use "root on |
xbd0a" and you should have a, functional NetBSD domU. |
xbd0a" and you should have a functional NetBSD domU. |
|
|
TODO: check if this is still accurate. |
TODO: check if this is still accurate. |
When the new domain is booting you'll see some warnings about *wscons* |
When the new domain is booting you'll see some warnings about *wscons* |
Line 674 note that only the "xpci" lines are unus
|
Line 674 note that only the "xpci" lines are unus
|
cd* at scsibus? target ? lun ? # SCSI CD-ROM drives |
cd* at scsibus? target ? lun ? # SCSI CD-ROM drives |
|
|
|
|
# Specific Issues |
# Miscellaneous Information |
|
|
|
## Nesting under Linux KVM |
|
|
|
It is possible to run a Xen and a NetBSD dom0 under Linux KVM. One |
|
can enable virtio in the dom0 for greater speed. |
|
|
|
## Other nesting |
|
|
|
In theory, any full emulation should be able to run Xen and a NetBSD |
|
dom0. The HOWTO does not currently have information about Xen XVM |
|
mode, nvmm, qemu, Virtualbox, etc. |
|
|
## domU |
## NetBSD 5 as domU |
|
|
[NetBSD 5 is known to panic.](http://mail-index.netbsd.org/port-xen/2018/04/17/msg009181.html) |
[NetBSD 5 is known to panic.](http://mail-index.netbsd.org/port-xen/2018/04/17/msg009181.html) |
(However, NetBSD 5 systems should be updated to a supported version.) |
(However, NetBSD 5 systems should be updated to a supported version.) |