mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 19:23:24 +02:00
Add xen-image build
This commit is contained in:
@@ -46,7 +46,7 @@ etc/xen/xend-pci-permissive.sxp
|
||||
etc/xen/xend-pci-quirks.sxp
|
||||
etc/xen/xm-config.xml
|
||||
etc/xen/xmexample.hvm
|
||||
etc/xen/xmexample.hvm-dm
|
||||
#etc/xen/xmexample.hvm-dm
|
||||
etc/xen/xmexample.hvm-stubdom
|
||||
etc/xen/xmexample.nbd
|
||||
etc/xen/xmexample.pv-grub
|
||||
|
||||
25
config/xen-image/README
Normal file
25
config/xen-image/README
Normal file
@@ -0,0 +1,25 @@
|
||||
Howto install Ipfire as a paravirtualized DomU:
|
||||
|
||||
- download image
|
||||
- extract the downloaded file, be careful, you need at least 4gb
|
||||
- edit the file ipfire.cfg
|
||||
- start ipfire: "xm create -c ipfire.cfg"
|
||||
- go to console: "xm console ipfire-xen"
|
||||
- after booting, the setup will started to do basic settings and reboot
|
||||
|
||||
This setup is for 2 interfaces (green and red). if you want more, like orange and blue, edit the ipfire.cfg and execute "setup" to adjust yout config.
|
||||
|
||||
other usefull commands from the Dom0:
|
||||
- shutdown the fire: "xm shutdown ipfire-xen"
|
||||
- reset the fire: "xm destroy ipfire-xen"
|
||||
- look what is going on: "xm top" or "xm list"
|
||||
|
||||
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
+ This is image is build with the normal build environment and not tested yet +
|
||||
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
Todo:
|
||||
- prevent loading some modules like ac, battery and so on
|
||||
- remove setclock initscript
|
||||
- remove keymap initscript
|
||||
- add hvc0 to /etc/securetty
|
||||
25
config/xen-image/ipfire.cfg
Normal file
25
config/xen-image/ipfire.cfg
Normal file
@@ -0,0 +1,25 @@
|
||||
kernel = "/mnt/test/boot/vmlinuz-KVER-ipfire-xen" #### change path
|
||||
ramdisk ="/mnt/test/boot/ipfirerd-KVER-xen.img" #### change path
|
||||
|
||||
memory = 128
|
||||
name = "ipfire-xen"
|
||||
|
||||
acpi=1
|
||||
apic=1
|
||||
|
||||
### network: do not change the mac adresses and never use your real mac adresse of your hardware here!! ###
|
||||
vif = [
|
||||
'mac=00:17:3E:BE:A1:1A, bridge=xenbrI', ## Green
|
||||
'mac=00:17:3E:BE:A1:1B, bridge=xenbrE', ## Red
|
||||
# 'mac=00:17:3E:BE:A1:1C, bridge=xenbrW', ## Blue (currently disabled, uncomment it if neede)
|
||||
# 'mac=00:17:3E:BE:A1:1D, bridge=xenbrD' ## Orange (currently disabled, uncomment it if neede)
|
||||
]
|
||||
|
||||
|
||||
disk = [
|
||||
'file:/mnt/test/ipfire.img,xvda1,w',
|
||||
'file:/mnt/test/swap.img,xvdb1,w'
|
||||
] #### Change path
|
||||
|
||||
root = "/dev/xvda1"
|
||||
extra = 'xencons=tty console=hvc0 clocksource=jiffies'
|
||||
Reference in New Issue
Block a user