Hi all .

i manage to work qemu .
all i do by root user .

my situation
------------------------------

internet
|
router(dhcpd server)
|
sis0
openbsd



$ cat
/etc/hostname.tun0
link0
up

$ cat
/etc/hostname.vether0
inet inet 192.168.1.194 255.255.255.0 NONE


cat
/etc/hostname.bridge0
add vether0
add vio0
up




lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 32768
        priority: 0
        groups: lo
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000

sis0:
flags=8b43<UP,BROADCAST,RUNNING,PROMISC,ALLMULTI,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:0d:9d:83:1b:92
        priority: 0
        groups: egress
        media: Ethernet autoselect (100baseTX full-duplex)
        status: active
        inet 192.168.1.194 netmask 0xffffff00 broadcast 192.168.1.255
        ^^^^^^^^^^^^^^^^^^

enc0: flags=0<>
        priority: 0
        groups: enc
        status: active

pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33192
        priority: 0
        groups: pflog

vether0: flags=8902<BROADCAST,PROMISC,SIMPLEX,MULTICAST> mtu 1500
        lladdr fe:e1:ba:d0:9c:4b
        priority: 0
        groups: vether
        media: Ethernet autoselect
        status: active


tun0: flags=9943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,LINK0,MULTICAST> mtu
1500
        lladdr fe:e1:ba:d2:eb:15
        priority: 0
        groups: tun
        status: active

bridge0: flags=41<UP,RUNNING>
        groups: bridge
        priority 32768 hellotime 2 fwddelay 15 maxage 20 holdcnt 6 proto
rstp
        vether0 flags=3<LEARNING,DISCOVER>
                port 6 ifpriority 0 ifcost 0
        sis0 flags=3<LEARNING,DISCOVER>
                port 1 ifpriority 0 ifcost 0
        tun0 flags=3<LEARNING,DISCOVER>
                port 8 ifpriority 0 ifcost 0



#qemu-image create Q.img 1G


step1) intall openbsd into qemu
 cat
qemu-1.bat
qemu-system-i386 \
-m 256M \
-net nic,vlan=1,model=e1000,macaddr=fe:e1:ba:d3:e7:11 \
-net tap,vlan=1 \
-boot d \
-cdrom /dev/rcd0c \
Q.img


and

########################
2)run openbsd in qemu
 cat qemu-2.bat
qemu-system-i386 \
-m 256M \
-net nic,vlan=1,model=e1000,macaddr=fe:e1:ba:d3:e7:11 \
-net tap,vlan=1 \
Q.img

and qemu openbsd's addss is 192.168.1.223 .
                            ^^^^^^^^^^^^^
so i ' ssh -l root 192.168.1.223'.

then ifconfig -a show
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 32768
        priority: 0
        groups: lo
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr fe:e1:ba:d3:e7:11
        priority: 0
        groups: egress
        media: Ethernet autoselect (1000baseT full-duplex)
        status: active
        inet 192.168.1.223 netmask 0xffffff00 broadcast 192.168.1.255
enc0: flags=0<>
        priority: 0
        groups: enc
        status: active
pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33192
        priority: 0
        groups: pflog


####################################

linux may also run in openbsd's qemu.


on rental sever , it's dhcpd server give only one address ,
this method is not good .
does any one know how to do in only one adress ?


in mint linux , see
http://sakurapup.browserloadofcoolness.com/viewtopic.php?f=13&t=2955.
i run both puppy linux and openbsd on mint linux.
we make more information about defense by mutual attack .
but this site is japanese .
please use translaion site , for example google.

and qemu is slow , kvm is fast .
at present , it is comforatable to run 'openbsd qemu' in linux ,

---------
regards

Reply via email to