Add xen-image build

This commit is contained in:
Arne Fitzenreiter
2009-08-08 00:33:33 +02:00
parent 0bc239b968
commit bada0832c1
5 changed files with 196 additions and 2 deletions

View File

@@ -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
View 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

View 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'