在一台机器上起多个 osv,需要注意的是为虚拟机设置 mac 地址,要不然每次起虚拟机的时候都是相同的默认 mac,造成获取的 IP 地址相同
root@bamboo-VirtualBox:~/osv#./scripts/run.py-nv--novnc--nogdb--verboseOSvv0.24-90-gabf49c04CPUsdetectedFirmwarevendor:Bochsbsd:initializing-doneVFS:mountingramfsat/VFS:mountingdevfsat/devnet:initializing-donevga:AddVGAdeviceinstanceeth0:ethernetaddress:52:54:00:12:34:56virtio-blk:Addblkdeviceinstances0asvblk0,devsize=10737418240random:virtio-rngregisteredasasource.random:<Software,Yarrow>initializedVFS:unmounting/devVFS:mountingzfsat/zfszfs:mountingosv/zfsfromdevice/dev/vblk0.1VFS:mountingdevfsat/devVFS:mountingprocfsat/procrandom:deviceunblocked.programzpool.soreturned1BSDshrinker:eventhandlerlistfound:0xffffa00001bd3580BSDshrinkerfound:1BSDshrinker:unlocked,running[I/42 dhcp]: Waiting for IP...[I/245 dhcp]: Server acknowledged IP for interface eth0eth0:192.168.122.89[I/245 dhcp]: Configuring eth0: ip 192.168.122.89 subnet mask 255.255.255.0 gateway 192.168.122.1 MTU 1500helloworld!Uncaughtsignal2 ("Interrupt"). Powering off.
root@bamboo-VirtualBox:~/osv#vimcore/dhcp.cc^Croot@bamboo-VirtualBox:~/osv#./scripts/run.py-nv--novnc--nogdb--mac"52:54:00:12:34:5D"--verboseOSvv0.24-90-gabf49c04CPUsdetectedFirmwarevendor:Bochsbsd:initializing-doneVFS:mountingramfsat/VFS:mountingdevfsat/devnet:initializing-donevga:AddVGAdeviceinstanceeth0:ethernetaddress:52:54:00:12:34:5dvirtio-blk:Addblkdeviceinstances0asvblk0,devsize=10737418240random:virtio-rngregisteredasasource.random:<Software,Yarrow>initializedVFS:unmounting/devVFS:mountingzfsat/zfszfs:mountingosv/zfsfromdevice/dev/vblk0.1VFS:mountingdevfsat/devVFS:mountingprocfsat/procprogramzpool.soreturned1BSDshrinker:eventhandlerlistfound:0xffffa00001bd3580BSDshrinkerfound:1BSDshrinker:unlocked,running[I/42 dhcp]: Waiting for IP...[I/245 dhcp]: Server acknowledged IP for interface eth0eth0:192.168.122.96[I/245 dhcp]: Configuring eth0: ip 192.168.122.96 subnet mask 255.255.255.0 gateway 192.168.122.1 MTU 1500helloworld!