Networking - KVMを参考にしました。
sudo kvm -hda vm10.qcow2 -m 256 -curses -net nic,00:23:7d:29:e1:02 -net tap,script=/etc/kvm/kvm-ifup
メモ
- 00:23:7d:29:e1:02はランダムなMACアドレスです。ifconfigで表示された他のアドレスを変更してでっちあげました。
- tunctlは無くてもいけました。ちなみにuml-utilitiesパッケージに含まれているらしい。
$ sudo aptitude show uml-utilities Package: uml-utilities State: not installed Version: 20070815-1.1ubuntu2 Priority: extra Section: universe/otherosfs Maintainer: Ubuntu MOTU DevelopersUncompressed Size: 336k Depends: adduser, libc6 (>= 2.4), libfuse2 (>= 2.6), libncurses5 (>= 5.6+20071006-3), libreadline5 (>= 5.2), lsb-base (>= 3.0-10) Suggests: user-mode-linux Description: User-mode Linux (utility programs) User-mode Linux is a port of the Linux kernel to its own system call interface. It provides a kind of virtual machine, which runs Linux as a user process under another Linux kernel. This is useful for kernel development, sandboxing, jailing, experimentation, and many other things. This package contains userspace utilities for use with User-mode Linux, including uml_mconsole, uml_moo, uml_switch, uml_net and tunctl.
0 件のコメント:
コメントを投稿