SUSE 环境下搭建monowall

1、SUSE下采用LVM管理硬盘的方式,创建一个10G大小的硬盘  lvcreate -n monowall -L 10G xen_suse

2、安装配置文件 cat monowall-pxe.cfg,COPY到安装的机器,执行xm  create  monowall-pxe.cfg

name = "monowall"
builder = "hvm"  #虚拟化方式
memory = "2048"  #内存最大只支持2G
disk = [ 'phy:/dev/xen_ovm/monowall,hda,w' , 'file:/soft/monowall/cdrom-1.34.iso,hdc:cdrom,r' , ] #以光盘方式安装
vif = [ 'mac=00:00:00:00:00:01,bridge=xenbr0' , ' mac=00:00:00:00:00:02,bridge=xenbr1' , ]  #配置2块虚拟网卡
device_model = " /usr/lib/xen/bin/qemu-dm "
kernel = " /usr/lib/xen/boot/hvmloader "
vnc=1   #开启VNC
vncunused=1 #VNC第一个端口
vncpasswd= 'password' #VNC密码
timer_mode=0
apic=1
acpi=1
pae=1
vcpus=2
serial = "pty" # enable serial console
on_reboot = 'restart'
on_crash = 'restart'

boot='d'  #从光盘启动

3、以VNC 5900端口打开图形化安装界面

(1)选择7,将镜像写入硬盘

wKiom1PslJyRedJ1AAIGOdZ5_Rs341.jpg

(2)写入完成,会自动重启,返回母机,通过xm destroy "ID",关闭monowall。

wKiom1PslLfwsL5uAAC86R7YkfI570.jpg

(3)运行启动配置文件 ,cat monowall-vm.cfg,COPY到母机,执行xm create monowall-vm.cfg

name = "monowall"
builder = "hvm"
memory = "2048"
disk = [ 'phy:/dev/xen_ovm/monowall,hda,w' ,]
vif = [ 'mac=00:00:00:00:00:01,bridge=xenbr0' , ' mac=00:00:00:00:00:02,bridge=xenbr1' , ]
device_model = " /usr/lib/xen/bin/qemu-dm "
kernel = " /usr/lib/xen/boot/hvmloader "
vnc=1
vncunused=1
vncpasswd= 'password'
timer_mode=0
apic=1
acpi=1
pae=1
vcpus=2
serial = "pty" # enable serial console
on_reboot = 'restart'
on_crash = 'restart'

(4),执行完成后,通过VNC远程,此时即可配置了;

绑定内外网网卡

wKiom1PslhrwFPE3AAJsj6kwKGA544.jpg

wKiom1PsllXS4jCtAAIz51184G0374.jpg

(3)配置内网IP(DHCP根据需要是否配置)

wKioL1Psl5HhtxP_AAGglE3ZxRQ931.jpg

配置完成,可以正常访问了

wKiom1PslryB-HRLAALWKgzMkQw288.jpg

你可能感兴趣的:(linux,防火墙)