您的位置:首页 > 运维架构 > Linux

如何在一台机器上起多个osv vm

2016-06-06 16:35 405 查看
在一台机器上起多个osv,需要注意的是为虚拟机设置mac地址,要不然每次起虚拟机的时候都是相同的默认mac,造成获取的IP地址相同

root@bamboo-VirtualBox:~/osv# ./scripts/run.py -nv --novnc --nogdb --verbose

OSv v0.24-90-gabf49c0

4 CPUs detected

Firmware vendor: Bochs

bsd: initializing - done

VFS: mounting ramfs at /

VFS: mounting devfs at /dev

net: initializing - done

vga: Add VGA device instance

eth0: ethernet address: 52:54:00:12:34:56

virtio-blk: Add blk device instances 0 as vblk0, devsize=10737418240

random: virtio-rng registered as a source.

random: <Software, Yarrow> initialized

VFS: unmounting /dev

VFS: mounting zfs at /zfs

zfs: mounting osv/zfs from device /dev/vblk0.1

VFS: mounting devfs at /dev

VFS: mounting procfs at /proc

random: device unblocked.

program zpool.so returned 1

BSD shrinker: event handler list found: 0xffffa00001bd3580

        BSD shrinker found: 1

BSD shrinker: unlocked, running

[I/42 dhcp]: Waiting for IP...

[I/245 dhcp]: Server acknowledged IP for interface eth0

eth0: 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 1500

hello world!

Uncaught signal 2 ("Interrupt"). Powering off.

root@bamboo-VirtualBox:~/osv# vim core/dhcp.cc ^C
root@bamboo-VirtualBox:~/osv# ./scripts/run.py -nv --novnc --nogdb --mac "52:54:00:12:34:5D" --verbose

OSv v0.24-90-gabf49c0

4 CPUs detected

Firmware vendor: Bochs

bsd: initializing - done

VFS: mounting ramfs at /

VFS: mounting devfs at /dev

net: initializing - done

vga: Add VGA device instance

eth0: ethernet address: 52:54:00:12:34:5d

virtio-blk: Add blk device instances 0 as vblk0, devsize=10737418240

random: virtio-rng registered as a source.

random: <Software, Yarrow> initialized

VFS: unmounting /dev

VFS: mounting zfs at /zfs

zfs: mounting osv/zfs from device /dev/vblk0.1

VFS: mounting devfs at /dev

VFS: mounting procfs at /proc

program zpool.so returned 1

BSD shrinker: event handler list found: 0xffffa00001bd3580

        BSD shrinker found: 1

BSD shrinker: unlocked, running

[I/42 dhcp]: Waiting for IP...

[I/245 dhcp]: Server acknowledged IP for interface eth0

eth0: 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 1500

hello world!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息